diff --git a/Intersect-2.0/Intersect2-Beta.py b/Intersect-2.0/Intersect2-Beta.py index 794ae51..0b0f157 100755 --- a/Intersect-2.0/Intersect2-Beta.py +++ b/Intersect-2.0/Intersect2-Beta.py @@ -39,6 +39,8 @@ import getpass import pwd +conf = object() +conf.verb = 1 cut = lambda s: str(s).split("\0",1)[0] logging.getLogger("scapy.runtime").setLevel(logging.ERROR) diff --git a/tcpscan2.py b/tcpscan2.py index 72f1f05..4588f6d 100755 --- a/tcpscan2.py +++ b/tcpscan2.py @@ -11,11 +11,14 @@ import socket import getopt -def detect_port(host, port): +def detect_port(host, port, connect_only = False): s = socket.socket() s.settimeout(1) try: s.connect((host, port)) + if connect_only: + print port + return s.send('GET / HTTP/1.0\n\n') buf = s.recv(1024) print port, buf[:buf.find('\n')] @@ -26,7 +29,7 @@ def detect_port(host, port): s.close() -ports = (21, 22, 23, 25, 53, 69, 80, 110, 135, 137, 139, 445, 1025, +ports = (21, 22, 23, 25, 53, 69, 80, 110, 135, 137, 139, 445, 1025, 1080 1194, 1433, 1521, 3306, 3389, 5900, 8000, 8080) for port in ports: detect_port(sys.argv[1], port)