'i have failed to run my port scanner script in python, the program doesn't return anything not even an error
import socket
target ='192.168.0.103'
def port_scarn(port): try: sock=socket.socket(socket.AF_INET, socket.SOCK_STREAM) sock.connect((target, port)) return True
except:
return False
print(port_scarn(21))
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
