SnakeScan 1.0.5__tar.gz → 1.2.0__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.2.0/PKG-INFO +21 -0
- snakescan-1.2.0/README.md +9 -0
- {snakescan-1.0.5 → snakescan-1.2.0}/SnakeScan/__init__.py +41 -29
- {snakescan-1.0.5 → snakescan-1.2.0}/pyproject.toml +6 -1
- snakescan-1.0.5/PKG-INFO +0 -15
- snakescan-1.0.5/README.md +0 -6
- {snakescan-1.0.5 → snakescan-1.2.0}/LICENSE +0 -0
snakescan-1.2.0/PKG-INFO
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: SnakeScan
|
|
3
|
+
Version: 1.2.0
|
|
4
|
+
Summary: Module SnakeScan
|
|
5
|
+
Author: Den*Ram
|
|
6
|
+
Description-Content-Type: text/markdown
|
|
7
|
+
License-Expression: MIT
|
|
8
|
+
License-File: LICENSE
|
|
9
|
+
Requires-Dist: art
|
|
10
|
+
Requires-Dist: tqdm
|
|
11
|
+
Requires-Dist: termcolor
|
|
12
|
+
|
|
13
|
+
Description
|
|
14
|
+
-------------------
|
|
15
|
+
Simple Scanner to scan port.Example:import SnakeScan
|
|
16
|
+
and use module to scan port
|
|
17
|
+
if him not run install in pip art,tqdm,termcolor and run.
|
|
18
|
+
added new single search example:
|
|
19
|
+
[$]Port/Skip--> --s 50
|
|
20
|
+
requires-python=>3.1.1
|
|
21
|
+
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
Description
|
|
2
|
+
-------------------
|
|
3
|
+
Simple Scanner to scan port.Example:import SnakeScan
|
|
4
|
+
and use module to scan port
|
|
5
|
+
if him not run install in pip art,tqdm,termcolor and run.
|
|
6
|
+
added new single search example:
|
|
7
|
+
[$]Port/Skip--> --s 50
|
|
8
|
+
requires-python=>3.1.1
|
|
9
|
+
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"""Module SnakeScan"""
|
|
2
|
-
__version__="1.0
|
|
2
|
+
__version__="1.2.0"
|
|
3
3
|
import socket
|
|
4
4
|
from art import tprint
|
|
5
5
|
from datetime import datetime
|
|
6
6
|
from tqdm import tqdm
|
|
7
|
+
from termcolor import colored
|
|
7
8
|
portsopen=0
|
|
8
9
|
portsclosed=0
|
|
9
10
|
Run_now=True
|
|
10
11
|
Bool=True
|
|
11
12
|
boolean=0
|
|
12
|
-
#PORT-LIST(ALL-PORTS)
|
|
13
13
|
OpenPorts=[]
|
|
14
14
|
ports = {
|
|
15
15
|
20: "FTP-DATA", 21: "FTP", 22: "SSH", 23: "Telnet",
|
|
@@ -35,39 +35,58 @@ def is_port_open(host,port):
|
|
|
35
35
|
return True
|
|
36
36
|
print("–"*60)
|
|
37
37
|
tprint("SnakeScan")
|
|
38
|
-
print(" \033[1;32;1m Made by DEN*RAM\033[0;0m".rjust(50))
|
|
39
38
|
print("–"*60)
|
|
40
|
-
print("
|
|
41
|
-
print("
|
|
42
|
-
print("Skip/Error:|Host:localhost Port:4000 ports|")
|
|
39
|
+
print(f"{__version__}".rjust(60))
|
|
40
|
+
print(f"Skip{colored('|*|','blue')}Error: Host:localhost{colored('|$|','green')}Port:4000 ports")
|
|
43
41
|
while Run_now:
|
|
44
|
-
host=input("[$]Host/Skip-->")
|
|
42
|
+
host=input(f"{colored('[$]','green')}Host/Skip-->")
|
|
45
43
|
if host == "Exit" or host == "exit":
|
|
46
44
|
break
|
|
47
45
|
if host == "":
|
|
46
|
+
print(f"{colored('|*|','blue')}localhost")
|
|
48
47
|
host=socket.gethostbyname(socket.gethostname())
|
|
49
|
-
port_user=input("[$]Port/
|
|
48
|
+
port_user=input(f"{colored('[$]','green')}Port/Skip-->")
|
|
49
|
+
port_single=port_user
|
|
50
50
|
if port_user == "Exit" or port_user == "Exit":
|
|
51
51
|
break
|
|
52
52
|
if port_user:
|
|
53
53
|
try:
|
|
54
54
|
length=int(port_user)
|
|
55
55
|
except:
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
56
|
+
if "--s" in str(port_user):
|
|
57
|
+
port_user=port_single.strip().strip("--s")[1:len(port_user)]
|
|
58
|
+
for i in range(len(port_user)):
|
|
59
|
+
if port_user[i] == " ":
|
|
60
|
+
port_user=port_user[0:i]
|
|
61
|
+
break
|
|
62
|
+
port_user=int(port_user)
|
|
63
|
+
for single in range(1):
|
|
64
|
+
if is_port_open(host,port_user):
|
|
65
|
+
print(f"Open{colored('|√|','green')}-->{ports[port_user]}|{port_user}|")
|
|
66
|
+
else:
|
|
67
|
+
try:
|
|
68
|
+
print(f"Closed{colored('|X|','red')}-->{ports[port_user]}|{port_user}|")
|
|
69
|
+
except:
|
|
70
|
+
print(f"Closed{colored('|X|','red')}-->|{port_user}|")
|
|
71
|
+
|
|
72
|
+
continue
|
|
73
|
+
|
|
74
|
+
else:
|
|
75
|
+
port_user="4000"
|
|
76
|
+
print(f"{colored('[!]','red')}Port:invalid value")
|
|
77
|
+
for i in range(0,len(port_user)):
|
|
78
|
+
if port_user[i] == " ":
|
|
79
|
+
port_user=4000
|
|
80
|
+
break
|
|
81
|
+
port_user=int(port_user)
|
|
82
|
+
length=port_user
|
|
63
83
|
else:
|
|
84
|
+
print(f"{colored('|*|','blue')}4000")
|
|
64
85
|
port_user=4000
|
|
65
86
|
length=port_user
|
|
66
|
-
print(f"
|
|
87
|
+
print(f"{colored('|!|','red')}Listening {host} please wait...")
|
|
67
88
|
#|-----------------Starting---------------------|
|
|
68
89
|
length=int(length)+1
|
|
69
|
-
is_port_open(host,port_user)
|
|
70
|
-
start=datetime.now()
|
|
71
90
|
for port in tqdm(range(1,length)):
|
|
72
91
|
if is_port_open(host,port):
|
|
73
92
|
for name in ports:
|
|
@@ -88,18 +107,11 @@ while Run_now:
|
|
|
88
107
|
Bool=False
|
|
89
108
|
if boolean == 1:
|
|
90
109
|
pass
|
|
91
|
-
print("".center(60,"-"))
|
|
92
110
|
for i in OpenPorts:
|
|
93
|
-
print(f"Open
|
|
111
|
+
print(f"Open{colored('|√|','green')}-->{ports[i]}|{i}|")
|
|
94
112
|
print(f"{host}".center(60,"-"))
|
|
95
|
-
print(f"Closed:{portsclosed}")
|
|
113
|
+
print(f"Closed{colored('|X|','red')}:{portsclosed}")
|
|
96
114
|
portsclosed=0
|
|
97
|
-
print(f"Open:{portsopen}")
|
|
115
|
+
print(f"Open{colored('|√|','green')}:{portsopen}")
|
|
98
116
|
portsopen=0
|
|
99
|
-
|
|
100
|
-
print("Time:{}".format(ends-start)[:12],"\033[0;0m")
|
|
101
|
-
print("-"*60)
|
|
102
|
-
#//////////////////////////////
|
|
103
|
-
#VERSION[1.0.0]
|
|
104
|
-
#/////////////////////////////
|
|
105
|
-
#FOR USE ONLY
|
|
117
|
+
print("-"*60)
|
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
[build-system]
|
|
2
|
-
requires = ["flit_core >=3.11,<4"
|
|
2
|
+
requires = ["flit_core >=3.11,<4"]
|
|
3
3
|
build-backend = "flit_core.buildapi"
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "SnakeScan"
|
|
7
7
|
authors = [{name = "Den*Ram"}]
|
|
8
|
+
dependencies = [
|
|
9
|
+
"art",
|
|
10
|
+
"tqdm",
|
|
11
|
+
"termcolor",
|
|
12
|
+
]
|
|
8
13
|
readme = "README.md"
|
|
9
14
|
license = "MIT"
|
|
10
15
|
license-files = ["LICENSE"]
|
snakescan-1.0.5/PKG-INFO
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.4
|
|
2
|
-
Name: SnakeScan
|
|
3
|
-
Version: 1.0.5
|
|
4
|
-
Summary: Module SnakeScan
|
|
5
|
-
Author: Den*Ram
|
|
6
|
-
Description-Content-Type: text/markdown
|
|
7
|
-
License-Expression: MIT
|
|
8
|
-
License-File: LICENSE
|
|
9
|
-
|
|
10
|
-
Description|
|
|
11
|
-
-------------------
|
|
12
|
-
Simple Scanner to scan port.
|
|
13
|
-
Example:
|
|
14
|
-
import SnakeScan
|
|
15
|
-
and use him you need python 3.11 and art and tqdm modules.
|
snakescan-1.0.5/README.md
DELETED
|
File without changes
|