SnakeScan 1.9.4__tar.gz → 1.9.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.
- {snakescan-1.9.4 → snakescan-1.9.7}/PKG-INFO +22 -17
- {snakescan-1.9.4 → snakescan-1.9.7}/README.md +21 -15
- snakescan-1.9.7/SnakeScan/CLI.py +879 -0
- {snakescan-1.9.4 → snakescan-1.9.7}/SnakeScan/Check_subnet.py +3 -3
- {snakescan-1.9.4 → snakescan-1.9.7}/SnakeScan/__init__.py +1 -1
- {snakescan-1.9.4 → snakescan-1.9.7}/pyproject.toml +0 -1
- snakescan-1.9.4/SnakeScan/CLI.py +0 -753
- {snakescan-1.9.4 → snakescan-1.9.7}/LICENSE +0 -0
- {snakescan-1.9.4 → snakescan-1.9.7}/SnakeScan/Get_ssl.py +0 -0
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: SnakeScan
|
|
3
|
-
Version: 1.9.
|
|
3
|
+
Version: 1.9.7
|
|
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
|
|
7
7
|
Description-Content-Type: text/markdown
|
|
8
8
|
License-Expression: MIT
|
|
9
9
|
License-File: LICENSE
|
|
10
|
-
Requires-Dist: art
|
|
11
10
|
Requires-Dist: tqdm
|
|
12
11
|
Requires-Dist: termcolor
|
|
13
12
|
|
|
@@ -27,6 +26,8 @@ A versatile and efficient Python library designed for comprehensive network port
|
|
|
27
26
|
|
|
28
27
|
**SnakeScan** provides a flexible and powerful solution for network administrators, security professionals, and developers who need reliable port scanning capabilities. From simple port checks to advanced, multi-threaded subnet analysis, SnakeScan provides the tools necessary for effective network assessment.
|
|
29
28
|
|
|
29
|
+
Attention: A large number of bugs were found, so the use of several subcommands is not possible at the moment, and this will be corrected after 3 days. Because of this, it is recommended to use version 1.9.5 and below. Version 1.9.7 must be fixed.
|
|
30
|
+
|
|
30
31
|
## ⚙️ Key Features:
|
|
31
32
|
|
|
32
33
|
* **Flexible Port Specification:** Define target ports as individual values, ranges, or through preconfigured sets.
|
|
@@ -72,34 +73,38 @@ flit install
|
|
|
72
73
|
## ⌨️ Command Line Usage:
|
|
73
74
|
|
|
74
75
|
### 💡 Attribute Reference:
|
|
76
|
+
|
|
77
|
+
* * Commands for individual actions (Updating 1.9.6): scan, info, dict, save
|
|
78
|
+
|
|
79
|
+
* **-time**: Sets a timeout for each port. Examples: `snake scan -time 4`
|
|
75
80
|
|
|
76
|
-
* **-p**: Specify target ports to scan (single port or range). Examples: `snake -p 80,443` or `snake -p 80,3437,8080,20-30,79-443`
|
|
81
|
+
* **-p**: Specify target ports to scan (single port or range). Examples: `snake scan -p 80,443` or `snake scan -p 80,3437,8080,20-30,79-443`
|
|
77
82
|
|
|
78
|
-
* **-u**: Enable scanning of UDP ports. Example: `snake -p 53 -u`
|
|
83
|
+
* **-u**: Enable scanning of UDP ports. Example: `snake scan -p 53 -u`
|
|
79
84
|
|
|
80
85
|
* **-h**: Show the full list of available command-line attributes and their descriptions. Example: `snake -h` or `snake -help`
|
|
81
86
|
|
|
82
|
-
* **-v**: Display the current version of the SnakeScan library. Example: `snake -v`
|
|
87
|
+
* **-v**: Display the current version of the SnakeScan library. Example: `snake info -v`
|
|
83
88
|
|
|
84
|
-
* **-gs**: Retrieve an SSL/TLS certificate from a specified web server. Example: `snake www.google.com -gs` (Requires a valid hostname to avoid connection errors.)
|
|
89
|
+
* **-gs**: Retrieve an SSL/TLS certificate from a specified web server. Example: `snake www.google.com info -gs` (Requires a valid hostname to avoid connection errors.)
|
|
85
90
|
|
|
86
|
-
* **-t**: Enable multithreading for improved scanning performance. Example: `snake -t`
|
|
91
|
+
* **-t**: Enable multithreading for improved scanning performance. Example: `snake scan -t`
|
|
87
92
|
|
|
88
|
-
* **-ch**: Scan the subnet for active IP addresses within the network. Example: `snake -ch`
|
|
93
|
+
* **-ch**: Scan the subnet for active IP addresses within the network. Example: `snake info -ch`
|
|
89
94
|
|
|
90
|
-
* **-l**: Display your public IP address (requires an active internet connection). Example: `snake -l`
|
|
95
|
+
* **-l**: Display your public IP address (requires an active internet connection). Example: `snake info -l`
|
|
91
96
|
|
|
92
|
-
* **-i**: Show detailed information about a specific IP address (supports both IPv4 and IPv6). Example: `snake www.google.com -i`
|
|
97
|
+
* **-i**: Show detailed information about a specific IP address (supports both IPv4 and IPv6). Example: `snake www.google.com info -i`
|
|
93
98
|
|
|
94
|
-
* **-a --asynchronous**: Uses all ports from the predefined dictionary for asynchronous port scanning. Example: `snake -a`. If you want to scan all ports using your own port file, use the `-d` argument to specify the path to that file.
|
|
99
|
+
* **-a --asynchronous**: Uses all ports from the predefined dictionary for asynchronous port scanning. Example: `snake scan -a`. If you want to scan all ports using your own port file, use the `-d` argument to specify the path to that file.
|
|
95
100
|
|
|
96
101
|
* **-d**: Specify the path to a JSON file containing TCP port definitions and optionally, a second JSON file containing UDP port definitions. **Note:** Upon the first use of this argument, the paths to the JSON files must be provided with each command execution and separated by a comma. After the initial use, SnakeScan can remember these paths for subsequent scans.
|
|
97
102
|
|
|
98
|
-
Example: `snake -d /path/to/tcp_ports.json,/path/to/udp_ports.json` (if you want to specify both TCP and UDP, if only TCP: `snake -d /path/to/tcp_ports.json`)
|
|
103
|
+
Example: `snake dict -d /path/to/tcp_ports.json,/path/to/udp_ports.json` (if you want to specify both TCP and UDP, if only TCP: `snake dict -d /path/to/tcp_ports.json`)
|
|
99
104
|
|
|
100
105
|
**Subsequent Use**: After the initial setup, you can simply use the `-d` flag without the file paths, and SnakeScan can utilize the previously defined JSON files.
|
|
101
106
|
|
|
102
|
-
Example (after initial setup): `snake -d` (may use previously stored paths)
|
|
107
|
+
Example (after initial setup): `snake dict -d` (may use previously stored paths)
|
|
103
108
|
|
|
104
109
|
**JSON File Format:** The JSON file should be formatted as a dictionary where the keys are port numbers (as strings), and the values are the corresponding service names or descriptions.
|
|
105
110
|
|
|
@@ -111,11 +116,11 @@ flit install
|
|
|
111
116
|
}
|
|
112
117
|
```
|
|
113
118
|
|
|
114
|
-
* **-dr**: Reset custom port dictionaries to their default state and revert to standard SnakeScan port definitions. Example: `snake -dr`
|
|
119
|
+
* **-dr**: Reset custom port dictionaries to their default state and revert to standard SnakeScan port definitions. Example: `snake dict -dr`
|
|
115
120
|
|
|
116
|
-
* **-ds**: Display the paths to the currently used custom port dictionaries (TCP and UDP). This is useful for verifying which custom definitions are loaded. Example: `snake -ds`
|
|
121
|
+
* **-ds**: Display the paths to the currently used custom port dictionaries (TCP and UDP). This is useful for verifying which custom definitions are loaded. Example: `snake dict -ds`
|
|
117
122
|
|
|
118
|
-
* **-home --homedir**: Display the user's home directory and the location of the `config.ini` file. The home directory is determined automatically using the `pathlib` library. Example: `snake -home`, `snake --homedir`
|
|
123
|
+
* **-home --homedir**: Display the user's home directory and the location of the `config.ini` file. The home directory is determined automatically using the `pathlib` library. Example: `snake info -home`, `snake info --homedir`
|
|
119
124
|
|
|
120
125
|
## 💻 Python Code Integration:
|
|
121
126
|
|
|
@@ -139,5 +144,5 @@ watcher.start() # Start monitoring!
|
|
|
139
144
|
|
|
140
145
|
---
|
|
141
146
|
|
|
142
|
-
**Last Updated:** 1.9.
|
|
147
|
+
**Last Updated:** 1.9.7 (Added a new argument -time, --timeout, and also added commands for individual actions: scan, info, dict, save)
|
|
143
148
|
|
|
@@ -14,6 +14,8 @@ A versatile and efficient Python library designed for comprehensive network port
|
|
|
14
14
|
|
|
15
15
|
**SnakeScan** provides a flexible and powerful solution for network administrators, security professionals, and developers who need reliable port scanning capabilities. From simple port checks to advanced, multi-threaded subnet analysis, SnakeScan provides the tools necessary for effective network assessment.
|
|
16
16
|
|
|
17
|
+
Attention: A large number of bugs were found, so the use of several subcommands is not possible at the moment, and this will be corrected after 3 days. Because of this, it is recommended to use version 1.9.5 and below. Version 1.9.7 must be fixed.
|
|
18
|
+
|
|
17
19
|
## ⚙️ Key Features:
|
|
18
20
|
|
|
19
21
|
* **Flexible Port Specification:** Define target ports as individual values, ranges, or through preconfigured sets.
|
|
@@ -59,34 +61,38 @@ flit install
|
|
|
59
61
|
## ⌨️ Command Line Usage:
|
|
60
62
|
|
|
61
63
|
### 💡 Attribute Reference:
|
|
64
|
+
|
|
65
|
+
* * Commands for individual actions (Updating 1.9.6): scan, info, dict, save
|
|
66
|
+
|
|
67
|
+
* **-time**: Sets a timeout for each port. Examples: `snake scan -time 4`
|
|
62
68
|
|
|
63
|
-
* **-p**: Specify target ports to scan (single port or range). Examples: `snake -p 80,443` or `snake -p 80,3437,8080,20-30,79-443`
|
|
69
|
+
* **-p**: Specify target ports to scan (single port or range). Examples: `snake scan -p 80,443` or `snake scan -p 80,3437,8080,20-30,79-443`
|
|
64
70
|
|
|
65
|
-
* **-u**: Enable scanning of UDP ports. Example: `snake -p 53 -u`
|
|
71
|
+
* **-u**: Enable scanning of UDP ports. Example: `snake scan -p 53 -u`
|
|
66
72
|
|
|
67
73
|
* **-h**: Show the full list of available command-line attributes and their descriptions. Example: `snake -h` or `snake -help`
|
|
68
74
|
|
|
69
|
-
* **-v**: Display the current version of the SnakeScan library. Example: `snake -v`
|
|
75
|
+
* **-v**: Display the current version of the SnakeScan library. Example: `snake info -v`
|
|
70
76
|
|
|
71
|
-
* **-gs**: Retrieve an SSL/TLS certificate from a specified web server. Example: `snake www.google.com -gs` (Requires a valid hostname to avoid connection errors.)
|
|
77
|
+
* **-gs**: Retrieve an SSL/TLS certificate from a specified web server. Example: `snake www.google.com info -gs` (Requires a valid hostname to avoid connection errors.)
|
|
72
78
|
|
|
73
|
-
* **-t**: Enable multithreading for improved scanning performance. Example: `snake -t`
|
|
79
|
+
* **-t**: Enable multithreading for improved scanning performance. Example: `snake scan -t`
|
|
74
80
|
|
|
75
|
-
* **-ch**: Scan the subnet for active IP addresses within the network. Example: `snake -ch`
|
|
81
|
+
* **-ch**: Scan the subnet for active IP addresses within the network. Example: `snake info -ch`
|
|
76
82
|
|
|
77
|
-
* **-l**: Display your public IP address (requires an active internet connection). Example: `snake -l`
|
|
83
|
+
* **-l**: Display your public IP address (requires an active internet connection). Example: `snake info -l`
|
|
78
84
|
|
|
79
|
-
* **-i**: Show detailed information about a specific IP address (supports both IPv4 and IPv6). Example: `snake www.google.com -i`
|
|
85
|
+
* **-i**: Show detailed information about a specific IP address (supports both IPv4 and IPv6). Example: `snake www.google.com info -i`
|
|
80
86
|
|
|
81
|
-
* **-a --asynchronous**: Uses all ports from the predefined dictionary for asynchronous port scanning. Example: `snake -a`. If you want to scan all ports using your own port file, use the `-d` argument to specify the path to that file.
|
|
87
|
+
* **-a --asynchronous**: Uses all ports from the predefined dictionary for asynchronous port scanning. Example: `snake scan -a`. If you want to scan all ports using your own port file, use the `-d` argument to specify the path to that file.
|
|
82
88
|
|
|
83
89
|
* **-d**: Specify the path to a JSON file containing TCP port definitions and optionally, a second JSON file containing UDP port definitions. **Note:** Upon the first use of this argument, the paths to the JSON files must be provided with each command execution and separated by a comma. After the initial use, SnakeScan can remember these paths for subsequent scans.
|
|
84
90
|
|
|
85
|
-
Example: `snake -d /path/to/tcp_ports.json,/path/to/udp_ports.json` (if you want to specify both TCP and UDP, if only TCP: `snake -d /path/to/tcp_ports.json`)
|
|
91
|
+
Example: `snake dict -d /path/to/tcp_ports.json,/path/to/udp_ports.json` (if you want to specify both TCP and UDP, if only TCP: `snake dict -d /path/to/tcp_ports.json`)
|
|
86
92
|
|
|
87
93
|
**Subsequent Use**: After the initial setup, you can simply use the `-d` flag without the file paths, and SnakeScan can utilize the previously defined JSON files.
|
|
88
94
|
|
|
89
|
-
Example (after initial setup): `snake -d` (may use previously stored paths)
|
|
95
|
+
Example (after initial setup): `snake dict -d` (may use previously stored paths)
|
|
90
96
|
|
|
91
97
|
**JSON File Format:** The JSON file should be formatted as a dictionary where the keys are port numbers (as strings), and the values are the corresponding service names or descriptions.
|
|
92
98
|
|
|
@@ -98,11 +104,11 @@ flit install
|
|
|
98
104
|
}
|
|
99
105
|
```
|
|
100
106
|
|
|
101
|
-
* **-dr**: Reset custom port dictionaries to their default state and revert to standard SnakeScan port definitions. Example: `snake -dr`
|
|
107
|
+
* **-dr**: Reset custom port dictionaries to their default state and revert to standard SnakeScan port definitions. Example: `snake dict -dr`
|
|
102
108
|
|
|
103
|
-
* **-ds**: Display the paths to the currently used custom port dictionaries (TCP and UDP). This is useful for verifying which custom definitions are loaded. Example: `snake -ds`
|
|
109
|
+
* **-ds**: Display the paths to the currently used custom port dictionaries (TCP and UDP). This is useful for verifying which custom definitions are loaded. Example: `snake dict -ds`
|
|
104
110
|
|
|
105
|
-
* **-home --homedir**: Display the user's home directory and the location of the `config.ini` file. The home directory is determined automatically using the `pathlib` library. Example: `snake -home`, `snake --homedir`
|
|
111
|
+
* **-home --homedir**: Display the user's home directory and the location of the `config.ini` file. The home directory is determined automatically using the `pathlib` library. Example: `snake info -home`, `snake info --homedir`
|
|
106
112
|
|
|
107
113
|
## 💻 Python Code Integration:
|
|
108
114
|
|
|
@@ -126,4 +132,4 @@ watcher.start() # Start monitoring!
|
|
|
126
132
|
|
|
127
133
|
---
|
|
128
134
|
|
|
129
|
-
**Last Updated:** 1.9.
|
|
135
|
+
**Last Updated:** 1.9.7 (Added a new argument -time, --timeout, and also added commands for individual actions: scan, info, dict, save)
|