SnakeScan 1.8.3__tar.gz → 1.8.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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: SnakeScan
3
- Version: 1.8.3
3
+ Version: 1.8.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
@@ -50,7 +50,7 @@ A versatile and efficient Python library designed for comprehensive network port
50
50
 
51
51
  Install SnakeScan using pip:
52
52
 
53
-
53
+
54
54
 
55
55
  bash
56
56
 
@@ -106,6 +106,8 @@ pip install SnakeScan
106
106
 
107
107
  * **-dr**: Reset custom port dictionaries to their default state and revert to the standard SnakeScan port definitions. This functionality relies on internal mechanisms that are still under development. Functionality is present, has narrowly specialized implementations. See details below. Example: `snake -dr`
108
108
 
109
+ **-ds**: Display the paths to the currently used custom port dictionaries (TCP and UDP). This is useful to verify which custom definitions are loaded. Example: `snake -ds`
110
+
109
111
  ## 💻 Python Code Integration:
110
112
 
111
113
  ### ⏱️ Watcher class: Real-time port status
@@ -128,14 +130,12 @@ watcher.start() # Start monitoring!
128
130
 
129
131
  ---
130
132
 
131
- **Last updated:** 1.8.1 (Added initial support for custom port dictionaries and standard SnakeScan ports. Note: This functionality is still under development and may exhibit unexpected behavior.) *Functionality is present, has narrowly specialized implementations. See details below.*
133
+ **Last updated:** 1.8.4 (Added `-ds` attribute to display paths to custom port dictionaries.) *Functionality is present, has narrowly specialized implementations. See details below.*
132
134
 
133
135
  ***
134
136
 
135
137
  **Details on the narrowly specialized functionality of custom port dictionaries:**
136
138
 
137
139
  * The `-d` flag can load port definitions from a JSON file.
138
-
140
+ * The `-ds` flag can show where the current `-d` is pointed.
139
141
  * The `-dr` flag attempts to revert to the default port definitions.
140
-
141
-
@@ -37,7 +37,7 @@ A versatile and efficient Python library designed for comprehensive network port
37
37
 
38
38
  Install SnakeScan using pip:
39
39
 
40
-
40
+
41
41
 
42
42
  bash
43
43
 
@@ -93,6 +93,8 @@ pip install SnakeScan
93
93
 
94
94
  * **-dr**: Reset custom port dictionaries to their default state and revert to the standard SnakeScan port definitions. This functionality relies on internal mechanisms that are still under development. Functionality is present, has narrowly specialized implementations. See details below. Example: `snake -dr`
95
95
 
96
+ **-ds**: Display the paths to the currently used custom port dictionaries (TCP and UDP). This is useful to verify which custom definitions are loaded. Example: `snake -ds`
97
+
96
98
  ## 💻 Python Code Integration:
97
99
 
98
100
  ### ⏱️ Watcher class: Real-time port status
@@ -115,13 +117,12 @@ watcher.start() # Start monitoring!
115
117
 
116
118
  ---
117
119
 
118
- **Last updated:** 1.8.1 (Added initial support for custom port dictionaries and standard SnakeScan ports. Note: This functionality is still under development and may exhibit unexpected behavior.) *Functionality is present, has narrowly specialized implementations. See details below.*
120
+ **Last updated:** 1.8.4 (Added `-ds` attribute to display paths to custom port dictionaries.) *Functionality is present, has narrowly specialized implementations. See details below.*
119
121
 
120
122
  ***
121
123
 
122
124
  **Details on the narrowly specialized functionality of custom port dictionaries:**
123
125
 
124
126
  * The `-d` flag can load port definitions from a JSON file.
125
-
126
- * The `-dr` flag attempts to revert to the default port definitions.
127
-
127
+ * The `-ds` flag can show where the current `-d` is pointed.
128
+ * The `-dr` flag attempts to revert to the default port definitions.
@@ -164,7 +164,7 @@ else:
164
164
  if __name__ == "__main__":
165
165
  main()
166
166
 
167
- version = "1.8.3"
167
+ version = "1.8.4"
168
168
 
169
169
 
170
170
  def is_port_open(host, port):
@@ -238,6 +238,12 @@ def SnakeArgs():
238
238
  parser.add_argument(
239
239
  "-u", "--udp", action="store_true", help="Use UDP ports for scanning"
240
240
  )
241
+ parser.add_argument(
242
+ "-ds",
243
+ "--dictshow",
244
+ action="store_true",
245
+ help="Shows paths to port dictionaries",
246
+ )
241
247
  parser.add_argument(
242
248
  "-dr",
243
249
  "--dictremove",
@@ -667,3 +673,12 @@ if SnakeArgs().getssl:
667
673
  print(f"|{host[n]}|".center(60, "—"))
668
674
  Get_ssl(host[n])
669
675
  print("".center(60, "—"))
676
+ if SnakeArgs().dictshow:
677
+ if path_tcp:
678
+ print(f"TCP:{path_tcp}")
679
+ else:
680
+ print("TCP:path not specified")
681
+ if path_udp:
682
+ print(f"UDP:{path_udp}")
683
+ else:
684
+ print("UDP:path not specified")
@@ -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.8.3"
3
+ __version__ = "1.8.4"
4
4
  import socket
5
5
  from time import sleep
6
6
  from termcolor import colored
File without changes
File without changes