SnakeScan 1.4.1__tar.gz → 1.4.4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: SnakeScan
|
|
3
|
-
Version: 1.4.
|
|
3
|
+
Version: 1.4.4
|
|
4
4
|
Summary: Module SnakeScan using to scan port or ports in you device or other devices
|
|
5
5
|
Author: Den*Ram
|
|
6
6
|
Description-Content-Type: text/markdown
|
|
@@ -12,26 +12,16 @@ Requires-Dist: termcolor
|
|
|
12
12
|
Project-URL: Homepage, https://github.com/Den-Ram/SnakeScan
|
|
13
13
|
Project-URL: Repository, https://github.com/Den-Ram/SnakeScan
|
|
14
14
|
|
|
15
|
-
Scanner to scan port
|
|
16
15
|
import SnakeScan
|
|
17
16
|
|
|
18
17
|
and use module to scan port
|
|
19
18
|
|
|
20
19
|
For full compatibility, I recommend using python 3.x.x
|
|
21
20
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
[*]added new dos attack:
|
|
29
|
-
|
|
30
|
-
[$]Host-->https://example.com --d
|
|
31
|
-
[*]added new check you ip:
|
|
32
|
-
|
|
33
|
-
--l and you need internet connection to use him
|
|
34
|
-
|
|
35
|
-
added new help information
|
|
36
|
-
|
|
21
|
+
--l need internet connection
|
|
22
|
+
--h help
|
|
23
|
+
--t threading port search
|
|
24
|
+
--d dos
|
|
25
|
+
--s single port search
|
|
26
|
+
--i information about host
|
|
37
27
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"""Module SnakeScan using to scan port or ports in you device or other devices"""
|
|
2
|
-
__version__="1.4.
|
|
2
|
+
__version__="1.4.4"
|
|
3
3
|
import socket
|
|
4
4
|
from art import tprint
|
|
5
5
|
from datetime import datetime
|
|
@@ -69,11 +69,14 @@ def is_port_open_threads(host,port):
|
|
|
69
69
|
print("–"*60)
|
|
70
70
|
tprint("SnakeScan")
|
|
71
71
|
print("–"*60)
|
|
72
|
-
print(f"{__version__}".rjust(60))
|
|
73
|
-
print(f"Skip{colored('|*|','blue')}Error: {colored('Host','green')}{colored('[X]:Error','red')} {colored('|$|','green')} {colored('Port','green')}{colored('[X]:Error','red')}")
|
|
74
|
-
print("Host:|--l,host --i,host --d| Port:|--s port,--a,--t|")
|
|
75
72
|
while Run_now:
|
|
76
73
|
host=input(f"{colored('[$]','green')}Host-->")
|
|
74
|
+
if "--v" in host:
|
|
75
|
+
print(f"Build_{__version__}")
|
|
76
|
+
continue
|
|
77
|
+
if "--h" in host:
|
|
78
|
+
print("Host:|--l,host --i,host --d|")
|
|
79
|
+
continue
|
|
77
80
|
if "--i" in host:
|
|
78
81
|
host=host.strip("--i").strip()
|
|
79
82
|
print("".center(60,"-"))
|
|
@@ -81,7 +84,7 @@ while Run_now:
|
|
|
81
84
|
hostname=socket.gethostbyaddr(host)
|
|
82
85
|
print(f"Host:{hostname[0]}")
|
|
83
86
|
except:
|
|
84
|
-
hostname="
|
|
87
|
+
hostname="Undefined"
|
|
85
88
|
print(f"Host:{hostname}")
|
|
86
89
|
try:
|
|
87
90
|
print(f"IP:{socket.gethostbyname(host)}")
|
|
@@ -188,6 +191,12 @@ while Run_now:
|
|
|
188
191
|
print(local)
|
|
189
192
|
continue
|
|
190
193
|
port_user=input(f"{colored('[$]','green')}Port-->")
|
|
194
|
+
if "--v" in port_user:
|
|
195
|
+
print(f"Build_{__version__}")
|
|
196
|
+
continue
|
|
197
|
+
if "--h" in port_user:
|
|
198
|
+
print("Port:|--s port,--t|")
|
|
199
|
+
continue
|
|
191
200
|
if port_user == "":
|
|
192
201
|
while True:
|
|
193
202
|
print(f"{colored('Port','green')}{colored('[X]:Empty value','red')}")
|
|
@@ -207,32 +216,25 @@ while Run_now:
|
|
|
207
216
|
t=Thread(target=is_port_open_threads,kwargs={"host":host,"port":all})
|
|
208
217
|
t.start()
|
|
209
218
|
t.join()
|
|
210
|
-
if "--a" in str(port_user):
|
|
211
|
-
print(f"Check All Ports".center(60,"-"))
|
|
212
|
-
for all in ports.keys():
|
|
213
|
-
if is_port_open(host,all):
|
|
214
|
-
print(f"Open{colored('|√|','green')}-->{ports[all]}|{all}|")
|
|
215
|
-
else:
|
|
216
|
-
try:
|
|
217
|
-
print(f"Closed{colored('|X|','red')}-->{ports[all]}|{all}|")
|
|
218
|
-
except:
|
|
219
|
-
print(f"Closed{colored('|X|','red')}-->|{all}|")
|
|
220
|
-
continue
|
|
221
219
|
if "--s" in str(port_user):
|
|
222
220
|
port_user=port_single.strip("--s")
|
|
223
221
|
port_user=port_user.split()
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
222
|
+
port_list=port_user
|
|
223
|
+
port_user=[]
|
|
224
|
+
for i in range(len(port_list)):
|
|
225
|
+
try:
|
|
226
|
+
port_user.append(int(port_list[i]))
|
|
227
|
+
except:
|
|
228
|
+
print(f"{port_list[i]}-->Invalid value")
|
|
229
|
+
break
|
|
230
|
+
for port in range(len(port_user)):
|
|
231
|
+
if is_port_open(host,port_user[port]):
|
|
232
|
+
print(f"Open{colored('|√|','green')}{host}-->{ports[port_user[port]]}|{port_user[port]}|")
|
|
231
233
|
else:
|
|
232
234
|
try:
|
|
233
|
-
print(f"Closed{colored('|X|','red')}-->{ports[port_user]}|{port_user}|")
|
|
235
|
+
print(f"Closed{colored('|X|','red')}{host}-->{ports[port_user[port]]}|{port_user[port]}|")
|
|
234
236
|
except:
|
|
235
|
-
print(f"Closed{colored('|X|','red')}-->|{port_user}|")
|
|
237
|
+
print(f"Closed{colored('|X|','red')}{host}-->|{port_user[port]}|")
|
|
236
238
|
|
|
237
239
|
continue
|
|
238
240
|
|
snakescan-1.4.1/README.md
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
Scanner to scan port
|
|
2
|
-
import SnakeScan
|
|
3
|
-
|
|
4
|
-
and use module to scan port
|
|
5
|
-
|
|
6
|
-
For full compatibility, I recommend using python 3.x.x
|
|
7
|
-
|
|
8
|
-
[*]added new check all port search:
|
|
9
|
-
[$]Port--> --a
|
|
10
|
-
|
|
11
|
-
[*]added new check all port using thread:
|
|
12
|
-
[$]Port--> --t
|
|
13
|
-
|
|
14
|
-
[*]added new dos attack:
|
|
15
|
-
|
|
16
|
-
[$]Host-->https://example.com --d
|
|
17
|
-
[*]added new check you ip:
|
|
18
|
-
|
|
19
|
-
--l and you need internet connection to use him
|
|
20
|
-
|
|
21
|
-
added new help information
|
|
22
|
-
|
|
23
|
-
|
|
File without changes
|
|
File without changes
|