Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Now, we will first look at the simplest way to scan ports with Python

def portscan(port):
    try:
        sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
        sock.connect((target, port))
        return True
    except:
        return False
Source by www.neuralnine.com #
 
PREVIOUS NEXT
Tagged: #simplest #scan #ports #Python
ADD COMMENT
Topic
Name
9+2 =