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

0

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
Posted by: Guest on April-26-2021

Code answers related to "Now, we will first look at the simplest way to scan ports with Python"

Browse Popular Code Answers by Language