SnakeScan 1.9.1__tar.gz → 1.9.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.
- {snakescan-1.9.1 → snakescan-1.9.4}/PKG-INFO +2 -2
- {snakescan-1.9.1 → snakescan-1.9.4}/README.md +1 -1
- {snakescan-1.9.1 → snakescan-1.9.4}/SnakeScan/CLI.py +9 -13
- {snakescan-1.9.1 → snakescan-1.9.4}/SnakeScan/Get_ssl.py +3 -0
- {snakescan-1.9.1 → snakescan-1.9.4}/SnakeScan/__init__.py +1 -1
- {snakescan-1.9.1 → snakescan-1.9.4}/pyproject.toml +2 -5
- {snakescan-1.9.1 → snakescan-1.9.4}/LICENSE +0 -0
- {snakescan-1.9.1 → snakescan-1.9.4}/SnakeScan/Check_subnet.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: SnakeScan
|
|
3
|
-
Version: 1.9.
|
|
3
|
+
Version: 1.9.4
|
|
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
|
|
@@ -139,5 +139,5 @@ watcher.start() # Start monitoring!
|
|
|
139
139
|
|
|
140
140
|
---
|
|
141
141
|
|
|
142
|
-
**Last Updated:** 1.9.
|
|
142
|
+
**Last Updated:** 1.9.4 (Bugs fix)
|
|
143
143
|
|
|
@@ -10,6 +10,7 @@ import socket
|
|
|
10
10
|
import ipaddress
|
|
11
11
|
from art import tprint
|
|
12
12
|
from termcolor import colored
|
|
13
|
+
from concurrent.futures import ThreadPoolExecutor
|
|
13
14
|
from threading import Thread
|
|
14
15
|
from tqdm import tqdm
|
|
15
16
|
from SnakeScan.Check_subnet import Check_network
|
|
@@ -216,7 +217,7 @@ else:
|
|
|
216
217
|
if __name__ == "__main__":
|
|
217
218
|
main()
|
|
218
219
|
|
|
219
|
-
version = "1.9.
|
|
220
|
+
version = "1.9.4"
|
|
220
221
|
|
|
221
222
|
|
|
222
223
|
def is_port_open(host, port):
|
|
@@ -705,19 +706,14 @@ if SnakeArgs().info:
|
|
|
705
706
|
|
|
706
707
|
|
|
707
708
|
if SnakeArgs().thread:
|
|
708
|
-
|
|
709
|
+
with ThreadPoolExecutor(max_workers=None) as executor:
|
|
709
710
|
try:
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
)
|
|
717
|
-
threads.append(t)
|
|
718
|
-
t.start()
|
|
719
|
-
for t in threads:
|
|
720
|
-
t.join()
|
|
711
|
+
for n in range(len(host)):
|
|
712
|
+
socket.gethostbyname(host[n])
|
|
713
|
+
print(f"|{host[n]}|".center(60, "—"))
|
|
714
|
+
for port in ports.keys():
|
|
715
|
+
future = executor.submit(is_port_open_threads, host[n], port)
|
|
716
|
+
future.result()
|
|
721
717
|
except Exception as e:
|
|
722
718
|
print(f"|{host[n]}|".center(60, "—"))
|
|
723
719
|
print(e)
|
|
@@ -6,8 +6,11 @@ import sys
|
|
|
6
6
|
def Get_ssl(host, port=443, timeout=2, protocol="HTTP/1.0"):
|
|
7
7
|
try:
|
|
8
8
|
sock = socket.create_connection((host, port), timeout)
|
|
9
|
+
# Create Connection for host and port with use timeout
|
|
9
10
|
context = ssl.create_default_context()
|
|
11
|
+
# Create Context with using defaut setting
|
|
10
12
|
ssock = context.wrap_socket(sock, server_hostname=host)
|
|
13
|
+
# Wrap Socket to server host name
|
|
11
14
|
ssock.sendall(f"GET / {protocol}\r\nHost:{host}\r\n\r\n".encode("utf-8"))
|
|
12
15
|
data = ssock.recv(4096)
|
|
13
16
|
print(data.decode(errors="replace"))
|
|
@@ -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.9.
|
|
3
|
+
__version__ = "1.9.4"
|
|
4
4
|
import socket
|
|
5
5
|
from time import sleep
|
|
6
6
|
from termcolor import colored
|
|
@@ -19,10 +19,7 @@ dependencies = [
|
|
|
19
19
|
[project.scripts]
|
|
20
20
|
Snake = "SnakeScan.CLI:main"
|
|
21
21
|
snake = "SnakeScan.CLI:main"
|
|
22
|
+
SNAKE = "SnakeScan.CLI:main"
|
|
22
23
|
[tool.flit.module]
|
|
23
24
|
|
|
24
|
-
name = "SnakeScan"
|
|
25
|
-
|
|
26
|
-
[tool.flit.sdist]
|
|
27
|
-
|
|
28
|
-
include = ["SnakeScan/config.ini"]
|
|
25
|
+
name = "SnakeScan"
|
|
File without changes
|
|
File without changes
|