SnakeScan 1.7.2__tar.gz → 1.7.3__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.
- {snakescan-1.7.2 → snakescan-1.7.3}/PKG-INFO +3 -5
- {snakescan-1.7.2 → snakescan-1.7.3}/README.md +2 -4
- {snakescan-1.7.2 → snakescan-1.7.3}/SnakeScan/CLI.py +12 -10
- {snakescan-1.7.2 → snakescan-1.7.3}/SnakeScan/Check_subnet.py +1 -1
- {snakescan-1.7.2 → snakescan-1.7.3}/SnakeScan/Get_ssl.py +2 -2
- {snakescan-1.7.2 → snakescan-1.7.3}/SnakeScan/PoolExecutor.py +1 -2
- {snakescan-1.7.2 → snakescan-1.7.3}/SnakeScan/__init__.py +1 -1
- {snakescan-1.7.2 → snakescan-1.7.3}/LICENSE +0 -0
- {snakescan-1.7.2 → snakescan-1.7.3}/pyproject.toml +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: SnakeScan
|
|
3
|
-
Version: 1.7.
|
|
3
|
+
Version: 1.7.3
|
|
4
4
|
Summary: IPv4 address scanner for collecting address information.Scan or get the IPv4 address from the IPv6 host
|
|
5
5
|
Author: Den*Ram
|
|
6
6
|
Requires-Python: >=3.7
|
|
@@ -63,7 +63,5 @@ snake -l #Shows your public internet IP address. Internet connection required fo
|
|
|
63
63
|
-I:
|
|
64
64
|
snake www.google.com -i #Shows information about the IP address.Can receive information from IPV4 and IPV6
|
|
65
65
|
|
|
66
|
-
#Update in 1.7.
|
|
67
|
-
-
|
|
68
|
-
- Now SnakeScan run is deleted and run in code is now impossible.
|
|
69
|
-
- Fixed Several bugs.
|
|
66
|
+
#Update in 1.7.3
|
|
67
|
+
- The style of information presentation has been changed
|
|
@@ -50,7 +50,5 @@ snake -l #Shows your public internet IP address. Internet connection required fo
|
|
|
50
50
|
-I:
|
|
51
51
|
snake www.google.com -i #Shows information about the IP address.Can receive information from IPV4 and IPV6
|
|
52
52
|
|
|
53
|
-
#Update in 1.7.
|
|
54
|
-
-
|
|
55
|
-
- Now SnakeScan run is deleted and run in code is now impossible.
|
|
56
|
-
- Fixed Several bugs.
|
|
53
|
+
#Update in 1.7.3
|
|
54
|
+
- The style of information presentation has been changed
|
|
@@ -133,7 +133,7 @@ ports = {
|
|
|
133
133
|
10000: "Webmin",
|
|
134
134
|
}
|
|
135
135
|
|
|
136
|
-
version = "1.7.
|
|
136
|
+
version = "1.7.3"
|
|
137
137
|
|
|
138
138
|
|
|
139
139
|
def is_port_open(host, port):
|
|
@@ -208,7 +208,7 @@ def SnakeArgs():
|
|
|
208
208
|
)
|
|
209
209
|
parser.add_argument("-p", "--ports", help="Range ports to scan host")
|
|
210
210
|
parser.add_argument(
|
|
211
|
-
"-t", "--thread", action="store_true", help="Scan with using
|
|
211
|
+
"-t", "--thread", action="store_true", help="Scan with using ThreadPoolExecutor"
|
|
212
212
|
)
|
|
213
213
|
parser.add_argument("-ch", "--check", action="store_true", help="Scan ip subnet")
|
|
214
214
|
parser.add_argument(
|
|
@@ -286,19 +286,19 @@ if SnakeArgs().ports:
|
|
|
286
286
|
if OpenPorts:
|
|
287
287
|
for i in OpenPorts:
|
|
288
288
|
print(f"Open{colored('|√|','green')}-->{ports[i]}|{i}|")
|
|
289
|
-
print(f"{host[n]}".center(60, "
|
|
289
|
+
print(f"{host[n]}".center(60, "—"))
|
|
290
290
|
print(f"Closed{colored('|X|','red')}:{portsclosed}")
|
|
291
291
|
portsclosed = 0
|
|
292
292
|
print(f"Open{colored('|√|','green')}:{portsopen}")
|
|
293
293
|
portsopen = 0
|
|
294
|
-
print("
|
|
294
|
+
print("—" * 60)
|
|
295
295
|
else:
|
|
296
|
-
print(f"{host[n]}".center(60, "
|
|
296
|
+
print(f"{host[n]}".center(60, "—"))
|
|
297
297
|
print(f"Closed{colored('|X|','red')}:{portsclosed}")
|
|
298
298
|
portsclosed = 0
|
|
299
299
|
print(f"Open{colored('|√|','green')}:{portsopen}")
|
|
300
300
|
portsopen = 0
|
|
301
|
-
print("
|
|
301
|
+
print("—" * 60)
|
|
302
302
|
except Exception as e:
|
|
303
303
|
print(e)
|
|
304
304
|
sys.exit()
|
|
@@ -320,7 +320,7 @@ if SnakeArgs().info:
|
|
|
320
320
|
if host[0] == "None":
|
|
321
321
|
host[0] = "localhost"
|
|
322
322
|
for n in range(len(host)):
|
|
323
|
-
print("".center(60, "
|
|
323
|
+
print(f"{host[n]}".center(60, "—"))
|
|
324
324
|
try:
|
|
325
325
|
host[n] = socket.gethostbyname(host[n])
|
|
326
326
|
except Exception as e:
|
|
@@ -392,12 +392,12 @@ if SnakeArgs().info:
|
|
|
392
392
|
except:
|
|
393
393
|
pass
|
|
394
394
|
finally:
|
|
395
|
-
print("".center(60, "
|
|
395
|
+
print("".center(60, "—"))
|
|
396
396
|
|
|
397
397
|
|
|
398
398
|
if SnakeArgs().thread:
|
|
399
399
|
for n in range(len(host)):
|
|
400
|
-
print(f"{host[n]}".center(60, "
|
|
400
|
+
print(f"{host[n]}".center(60, "—"))
|
|
401
401
|
|
|
402
402
|
for port in ports.keys():
|
|
403
403
|
t = Thread(
|
|
@@ -412,8 +412,10 @@ if SnakeArgs().version:
|
|
|
412
412
|
print(f"SnakeScan_Build_{version}")
|
|
413
413
|
if SnakeArgs().speed:
|
|
414
414
|
for n in range(len(host)):
|
|
415
|
-
print(f"{host[n]}".center(60, "
|
|
415
|
+
print(f"{host[n]}".center(60, "—"))
|
|
416
416
|
PoolProcessExecutor(host[n])
|
|
417
417
|
if SnakeArgs().getssl:
|
|
418
418
|
for n in range(len(host)):
|
|
419
|
+
print(f"{host[n]}".center(60, "—"))
|
|
419
420
|
Get_ssl(host[n])
|
|
421
|
+
print("".center(60, "—"))
|
|
@@ -9,9 +9,9 @@ def Get_ssl(host, port=443, timeout=2, protocol="HTTP/1.0"):
|
|
|
9
9
|
context = ssl.create_default_context()
|
|
10
10
|
ssock = context.wrap_socket(sock, server_hostname=host)
|
|
11
11
|
ssock.sendall(f"GET / {protocol}\r\nHost:{host}\r\n\r\n".encode("utf-8"))
|
|
12
|
-
data = ssock.recv(
|
|
12
|
+
data = ssock.recv(8192)
|
|
13
13
|
print(data.decode(errors="replace"))
|
|
14
14
|
ssock.close()
|
|
15
15
|
except Exception as e:
|
|
16
16
|
print(e)
|
|
17
|
-
|
|
17
|
+
|
|
@@ -80,11 +80,10 @@ ports = {
|
|
|
80
80
|
8080: "HTTP alternate",
|
|
81
81
|
8443: "HTTPS alternate",
|
|
82
82
|
8888: "HTTP alternate",
|
|
83
|
-
10000: "Webmin"
|
|
83
|
+
10000: "Webmin",
|
|
84
84
|
}
|
|
85
85
|
|
|
86
86
|
|
|
87
|
-
|
|
88
87
|
def is_port_open_threads(host, port):
|
|
89
88
|
with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s:
|
|
90
89
|
try:
|
|
File without changes
|
|
File without changes
|