May 2018
Beginner
230 pages
4h 49m
English
TCP's three-way handshake serves as logic for the port scanner; in the TCP/IP scanner, you have seen that the port (137 or 135) is one in which IP addresses are in a range. However, in the port scanner, the IP is only one port in a range. Take one IP and try to connect each port as a range given by the user. If the connection is successful, the port opens; otherwise, the port remains closed.
I have written some very simple code for port scanning:
import socket, subprocess,sys from datetime import datetime subprocess.call('clear',shell=True) rmip = raw_input("t Enter the remote host IP to scan:") r1 = int(raw_input("t Enter the start port numbert")) r2 = int (raw_input("t Enter the last port numbert")) print "*"*40 ...Read now
Unlock full access