SnakeScan 1.2.9__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,14 +1,17 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: SnakeScan
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.3.1
|
|
4
4
|
Summary: Module SnakeScan
|
|
5
5
|
Author: Den*Ram
|
|
6
|
+
Requires-Python: >=3.9
|
|
6
7
|
Description-Content-Type: text/markdown
|
|
7
8
|
License-Expression: MIT
|
|
8
9
|
License-File: LICENSE
|
|
9
10
|
Requires-Dist: art
|
|
10
11
|
Requires-Dist: tqdm
|
|
11
12
|
Requires-Dist: termcolor
|
|
13
|
+
Project-URL: Homepage, https://github.com/Den-Ram/SnakeScan
|
|
14
|
+
Project-URL: Repository, https://github.com/Den-Ram/SnakeScan
|
|
12
15
|
|
|
13
16
|
Scanner to scan port
|
|
14
17
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"""Module SnakeScan"""
|
|
2
|
-
__version__="1.
|
|
2
|
+
__version__="1.3.1"
|
|
3
3
|
import socket
|
|
4
4
|
from art import tprint
|
|
5
5
|
from datetime import datetime
|
|
@@ -69,10 +69,28 @@ def is_port_open_threads(host,port):
|
|
|
69
69
|
print("–"*60)
|
|
70
70
|
tprint("SnakeScan")
|
|
71
71
|
print("–"*60)
|
|
72
|
-
print(f"
|
|
72
|
+
print(f"{__version__}".rjust(60))
|
|
73
73
|
print(f"Skip{colored('|*|','blue')}Error: {colored('Host','green')}{colored('[X]:Error','red')} {colored('|$|','green')} {colored('Port','green')}{colored('[X]:Error','red')}")
|
|
74
|
+
print("Host:[host --i,host --d] Port:[--s port,--a,--t]")
|
|
74
75
|
while Run_now:
|
|
75
76
|
host=input(f"{colored('[$]','green')}Host-->")
|
|
77
|
+
if "--i" in host:
|
|
78
|
+
host=host.strip("--i").strip()
|
|
79
|
+
print("".center(60,"-"))
|
|
80
|
+
try:
|
|
81
|
+
hostname=socket.gethostbyaddr(host)
|
|
82
|
+
print(f"Host:{hostname[0]}")
|
|
83
|
+
except:
|
|
84
|
+
hostname="None"
|
|
85
|
+
print(f"Host:{hostname}")
|
|
86
|
+
try:
|
|
87
|
+
print(f"IP:{socket.gethostbyname(host)}")
|
|
88
|
+
except Exception as e:
|
|
89
|
+
print(f"IP:{e}")
|
|
90
|
+
continue
|
|
91
|
+
finally:
|
|
92
|
+
print("".center(60,"-"))
|
|
93
|
+
continue
|
|
76
94
|
if "http://" in host and "--d" in host:
|
|
77
95
|
host=host.strip().strip("--d")
|
|
78
96
|
host=host.split("http:")
|
|
@@ -157,8 +175,18 @@ while Run_now:
|
|
|
157
175
|
host=input(f"{colored('[$]','green')}Host-->")
|
|
158
176
|
if host:
|
|
159
177
|
break
|
|
160
|
-
if
|
|
161
|
-
|
|
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
|
|
162
190
|
port_user=input(f"{colored('[$]','green')}Port-->")
|
|
163
191
|
if port_user == "":
|
|
164
192
|
while True:
|
|
@@ -11,6 +11,10 @@ dependencies = [
|
|
|
11
11
|
"termcolor",
|
|
12
12
|
]
|
|
13
13
|
readme = "README.md"
|
|
14
|
+
requires-python = ">=3.9"
|
|
14
15
|
license = "MIT"
|
|
15
16
|
license-files = ["LICENSE"]
|
|
16
17
|
dynamic = ["version", "description"]
|
|
18
|
+
[project.urls]
|
|
19
|
+
Homepage = "https://github.com/Den-Ram/SnakeScan"
|
|
20
|
+
Repository = "https://github.com/Den-Ram/SnakeScan"
|
|
File without changes
|
|
File without changes
|