├── BannerGrabber.py ├── PortScanner.py └── README.md /BannerGrabber.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/python3 2 | 3 | import socket 4 | 5 | def banner(ip, port): 6 | s = socket.socket() 7 | s.connect((ip, int(port))) 8 | s.settimeout(5) 9 | print(s.recv(1024)) 10 | 11 | def main(): 12 | ip = input("Please enter the IP: ") 13 | port = str(input("Please enter the port: ")) 14 | banner(ip, port) 15 | 16 | main() 17 | -------------------------------------------------------------------------------- /PortScanner.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/python3 2 | 3 | import socket 4 | 5 | s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) 6 | s.settimeout(5) 7 | 8 | host = input("Please enter the IP you want to scan: ") 9 | port = int(input("Please enter the port you want to scan: ")) 10 | 11 | 12 | def portScanner(port): 13 | if s.connect_ex((host, port)): 14 | print("The port is closed") 15 | else: 16 | print("The port is open") 17 | 18 | portScanner(port) -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Python3PentestingTools 2 | A group of Pentesting tools developed in Python 3 3 | --------------------------------------------------------------------------------