Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/python
- import socket
- print"""
- _____ ___ _____
- / ___| / || ___|
- \ `--. / /| || |__
- `--. \/ /_| || __|
- /\__/ /\___ || |___
- \____/ |_/\____/
- [+]Simple Port Scanner (Python)
- [+]Coded by miutex(TUNISIAN CYBER)
- [+]Sites:sec4ever.com,exploit4arab.net
- """
- sec4 =raw_input('IP Address:')
- for port in range(1,400):
- s0ck = socket.socket()
- s0ck.settimeout(0.5)
- ip = sec4
- response = s0ck.connect_ex((ip, port))
- if response:
- print ("%d\tclose" %port)
- else:
- print ("%d\topen" %port)
- s0ck.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement