-
Notifications
You must be signed in to change notification settings - Fork 0
/
portscanner2.py
36 lines (24 loc) · 934 Bytes
/
portscanner2.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/usr/bin/python3
import socket
print('''
_ _ ____ _ _ _
| |__ __ _ ___| | _____ _ __/ ___| _ __ | | ___ (_) |_
| '_ \ / _` |/ __| |/ / _ \ '__\___ \| '_ \| |/ _ \| | __|
| | | | (_| | (__| < __/ | ___) | |_) | | (_) | | |_
|_| |_|\__,_|\___|_|\_\___|_| |____/| .__/|_|\___/|_|\__|
|_|
contact me: hackersploit22@gmail.com
liyabonasaki@gmail.com
version: 1.0
Evil Port Scanner
''')
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.settimeout(5)
host = input("Please enter the host you want to scann : ")
port = int(input("Please enter the port you want to scann : "))
def portscanner(port):
if s.connect_ex((host , port)):
print("The port is closed")
else:
print("The port is open")
portscanner(port)