Buna sunt andrei sunt nou in aceasta comunitate , sunt un skiddie I kw dar totus nu inteleg unde am gresit in acest cod ?
#!/usr/bin/python
import socket
def scan(host,port):
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
try:
s.connect((host,port))
print ("open :"+str(port))
s.close()
except:
pass
for port in range(1024):
scan("192.168.0.1",port)
putin ajutor va rog ?