SnakeScan 1.3.0__tar.gz → 1.3.1__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,5 +1,5 @@
|
|
|
1
1
|
"""Module SnakeScan"""
|
|
2
|
-
__version__="1.3.
|
|
2
|
+
__version__="1.3.1"
|
|
3
3
|
import socket
|
|
4
4
|
from art import tprint
|
|
5
5
|
from datetime import datetime
|
|
@@ -175,8 +175,18 @@ while Run_now:
|
|
|
175
175
|
host=input(f"{colored('[$]','green')}Host-->")
|
|
176
176
|
if host:
|
|
177
177
|
break
|
|
178
|
-
if
|
|
179
|
-
|
|
178
|
+
if "--l" in host:
|
|
179
|
+
local=""
|
|
180
|
+
s=socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
|
|
181
|
+
try:
|
|
182
|
+
s.connect(('10.255.255.255',1))
|
|
183
|
+
local=s.getsockname()[0]
|
|
184
|
+
except Exception as e:
|
|
185
|
+
local=f"127.0.0.1:{e}"
|
|
186
|
+
finally:
|
|
187
|
+
s.close()
|
|
188
|
+
print(local)
|
|
189
|
+
continue
|
|
180
190
|
port_user=input(f"{colored('[$]','green')}Port-->")
|
|
181
191
|
if port_user == "":
|
|
182
192
|
while True:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|