SnakeScan 1.8.9__tar.gz → 1.9.0__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.8.9 → snakescan-1.9.0}/PKG-INFO +4 -2
- {snakescan-1.8.9 → snakescan-1.9.0}/README.md +3 -1
- {snakescan-1.8.9 → snakescan-1.9.0}/SnakeScan/CLI.py +26 -20
- {snakescan-1.8.9 → snakescan-1.9.0}/SnakeScan/__init__.py +1 -1
- {snakescan-1.8.9 → snakescan-1.9.0}/LICENSE +0 -0
- {snakescan-1.8.9 → snakescan-1.9.0}/SnakeScan/Check_subnet.py +0 -0
- {snakescan-1.8.9 → snakescan-1.9.0}/SnakeScan/Get_ssl.py +0 -0
- {snakescan-1.8.9 → snakescan-1.9.0}/pyproject.toml +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: SnakeScan
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.9.0
|
|
4
4
|
Summary: Unlock the potential of your network with this powerful IPv4 address scanner. Easily scan IP address ranges, identify active hosts, and even extract IPv4 addresses from IPv6 environments. Enhance your network monitoring, troubleshooting, and security analysis!
|
|
5
5
|
Author: Den*Ram
|
|
6
6
|
Requires-Python: >=3.7
|
|
@@ -20,6 +20,8 @@ This documentation was created with GeekBot Language Model and Den*Ram
|
|
|
20
20
|
|
|
21
21
|
A versatile and efficient Python library designed for comprehensive network port scanning.
|
|
22
22
|
|
|
23
|
+
This version has been improved and some minor bugs have been fixed and now scanning is supported -p argument if the host is not available then it will not be scanned and now when using ranges from the initial to the final number then it will now be taken into account, for example, as if you entered 80-100 then 21 ports will be scanned, of which there will be one additional one, that is, 80-101, and there is no need to write 79-100, because the initial one will now be taken into account.
|
|
24
|
+
|
|
23
25
|
[](https://pypi.org/project/SnakeScan/)
|
|
24
26
|
[](https://opensource.org/licenses/MIT)
|
|
25
27
|
[](https://www.python.org/)
|
|
@@ -139,5 +141,5 @@ watcher.start() # Start monitoring!
|
|
|
139
141
|
|
|
140
142
|
---
|
|
141
143
|
|
|
142
|
-
**Last Updated:** 1.
|
|
144
|
+
**Last Updated:** 1.9.0 (Automatic Home Directory Detection, Added `-home` and `--homedir` arguments. Added `-a` or `--asynchronous` arguments for scan allports from dictionaries. All config files are stored outside the installed library for permanent and secure customization.)
|
|
143
145
|
|
|
@@ -7,6 +7,8 @@ This documentation was created with GeekBot Language Model and Den*Ram
|
|
|
7
7
|
|
|
8
8
|
A versatile and efficient Python library designed for comprehensive network port scanning.
|
|
9
9
|
|
|
10
|
+
This version has been improved and some minor bugs have been fixed and now scanning is supported -p argument if the host is not available then it will not be scanned and now when using ranges from the initial to the final number then it will now be taken into account, for example, as if you entered 80-100 then 21 ports will be scanned, of which there will be one additional one, that is, 80-101, and there is no need to write 79-100, because the initial one will now be taken into account.
|
|
11
|
+
|
|
10
12
|
[](https://pypi.org/project/SnakeScan/)
|
|
11
13
|
[](https://opensource.org/licenses/MIT)
|
|
12
14
|
[](https://www.python.org/)
|
|
@@ -126,4 +128,4 @@ watcher.start() # Start monitoring!
|
|
|
126
128
|
|
|
127
129
|
---
|
|
128
130
|
|
|
129
|
-
**Last Updated:** 1.
|
|
131
|
+
**Last Updated:** 1.9.0 (Automatic Home Directory Detection, Added `-home` and `--homedir` arguments. Added `-a` or `--asynchronous` arguments for scan allports from dictionaries. All config files are stored outside the installed library for permanent and secure customization.)
|
|
@@ -15,7 +15,7 @@ from tqdm import tqdm
|
|
|
15
15
|
from SnakeScan.Check_subnet import Check_network
|
|
16
16
|
from SnakeScan.Get_ssl import Get_ssl
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
excepthost = []
|
|
19
19
|
OpenPorts = []
|
|
20
20
|
threads = []
|
|
21
21
|
portsopen = 0
|
|
@@ -216,7 +216,7 @@ else:
|
|
|
216
216
|
if __name__ == "__main__":
|
|
217
217
|
main()
|
|
218
218
|
|
|
219
|
-
version = "1.
|
|
219
|
+
version = "1.9.0"
|
|
220
220
|
|
|
221
221
|
|
|
222
222
|
def is_port_open(host, port):
|
|
@@ -549,7 +549,20 @@ if SnakeArgs().ports:
|
|
|
549
549
|
except Exception as e:
|
|
550
550
|
print(f"Incorrect input,please check the help documentation:{e}")
|
|
551
551
|
sys.exit()
|
|
552
|
+
for n in host:
|
|
553
|
+
try:
|
|
554
|
+
socket.gethostbyname(n)
|
|
555
|
+
except Exception as e:
|
|
556
|
+
excepthost.append(n)
|
|
557
|
+
print(f"|{n}|".center(60, "—"))
|
|
558
|
+
print(e)
|
|
559
|
+
print(f"".center(60, "—"))
|
|
560
|
+
if excepthost:
|
|
561
|
+
bad_hosts = set(excepthost)
|
|
562
|
+
host = [n for n in host if n not in bad_hosts]
|
|
563
|
+
excepthost = []
|
|
552
564
|
for n in range(len(host)):
|
|
565
|
+
OpenPorts = []
|
|
553
566
|
for port in range(len(port_user)):
|
|
554
567
|
if is_port_open(host[n], port_user[port]):
|
|
555
568
|
print(
|
|
@@ -574,30 +587,23 @@ if SnakeArgs().ports:
|
|
|
574
587
|
second[i] = first[i]
|
|
575
588
|
first[i] = number
|
|
576
589
|
for i in range(minimal):
|
|
577
|
-
for port in tqdm(range(int(first[i])
|
|
590
|
+
for port in tqdm(range(int(first[i]), int(second[i]) + 1)):
|
|
578
591
|
if is_port_open(host[n], port):
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
portsopen += 1
|
|
592
|
+
if port in ports:
|
|
593
|
+
OpenPorts.append(port)
|
|
594
|
+
portsopen += 1
|
|
583
595
|
else:
|
|
584
596
|
portsclosed += 1
|
|
585
597
|
if OpenPorts:
|
|
586
598
|
for i in OpenPorts:
|
|
587
599
|
print(f"Open{colored('|√|','green')}-->{ports[i]}|{i}|")
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
print(f"|{host[n]}|".center(60, "—"))
|
|
596
|
-
print(f"Closed{colored('|X|','red')}:{portsclosed}")
|
|
597
|
-
portsclosed = 0
|
|
598
|
-
print(f"Open{colored('|√|','green')}:{portsopen}")
|
|
599
|
-
portsopen = 0
|
|
600
|
-
print("—" * 60)
|
|
600
|
+
print(f"|{host[n]}|".center(60, "—"))
|
|
601
|
+
print(f"Closed{colored('|X|','red')}:{max(0,portsclosed - 1)}")
|
|
602
|
+
print(f"Open{colored('|√|','green')}:{portsopen}")
|
|
603
|
+
portsopen = 0
|
|
604
|
+
portsclosed = 0
|
|
605
|
+
OpenPorts = []
|
|
606
|
+
print("—" * 60)
|
|
601
607
|
except Exception as e:
|
|
602
608
|
print(e)
|
|
603
609
|
print("".center(60, "—"))
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"""Unlock the potential of your network with this powerful IPv4 address scanner. Easily scan IP address ranges, identify active hosts, and even extract IPv4 addresses from IPv6 environments. Enhance your network monitoring, troubleshooting, and security analysis!"""
|
|
2
2
|
|
|
3
|
-
__version__ = "1.
|
|
3
|
+
__version__ = "1.9.0"
|
|
4
4
|
import socket
|
|
5
5
|
from time import sleep
|
|
6
6
|
from termcolor import colored
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|