SnakeScan 1.0.0__tar.gz → 1.0.5__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,16 +1,15 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: SnakeScan
3
- Version: 1.0.0
3
+ Version: 1.0.5
4
4
  Summary: Module SnakeScan
5
5
  Author: Den*Ram
6
6
  Description-Content-Type: text/markdown
7
7
  License-Expression: MIT
8
8
  License-File: LICENSE
9
9
 
10
- =========
11
- Description
12
- =========
10
+ Description|
11
+ -------------------
13
12
  Simple Scanner to scan port.
14
13
  Example:
15
14
  import SnakeScan
16
- and use him you need-python 3.11 and art module.
15
+ and use him you need python 3.11 and art and tqdm modules.
@@ -0,0 +1,6 @@
1
+ Description|
2
+ -------------------
3
+ Simple Scanner to scan port.
4
+ Example:
5
+ import SnakeScan
6
+ and use him you need python 3.11 and art and tqdm modules.
@@ -1,14 +1,16 @@
1
1
  """Module SnakeScan"""
2
- __version__="1.0.0"
2
+ __version__="1.0.5"
3
3
  import socket
4
4
  from art import tprint
5
5
  from datetime import datetime
6
+ from tqdm import tqdm
6
7
  portsopen=0
7
8
  portsclosed=0
8
9
  Run_now=True
9
10
  Bool=True
10
11
  boolean=0
11
12
  #PORT-LIST(ALL-PORTS)
13
+ OpenPorts=[]
12
14
  ports = {
13
15
  20: "FTP-DATA", 21: "FTP", 22: "SSH", 23: "Telnet",
14
16
  25: "SMTP", 43: "WHOIS", 53: "DNS", 80: "http",
@@ -66,11 +68,11 @@ while Run_now:
66
68
  length=int(length)+1
67
69
  is_port_open(host,port_user)
68
70
  start=datetime.now()
69
- for port in range(1,length):
71
+ for port in tqdm(range(1,length)):
70
72
  if is_port_open(host,port):
71
73
  for name in ports:
72
74
  if port == name:
73
- print(f"Open:{port}//{ports[name]}")
75
+ OpenPorts=[port]
74
76
  portsopen+=1
75
77
  else:
76
78
  portsclosed+=1
@@ -86,6 +88,9 @@ while Run_now:
86
88
  Bool=False
87
89
  if boolean == 1:
88
90
  pass
91
+ print("".center(60,"-"))
92
+ for i in OpenPorts:
93
+ print(f"Open:{i}//{ports[i]}")
89
94
  print(f"{host}".center(60,"-"))
90
95
  print(f"Closed:{portsclosed}")
91
96
  portsclosed=0
@@ -1,5 +1,5 @@
1
1
  [build-system]
2
- requires = ["flit_core >=3.11,<4","art"]
2
+ requires = ["flit_core >=3.11,<4","art","tqdm"]
3
3
  build-backend = "flit_core.buildapi"
4
4
 
5
5
  [project]
snakescan-1.0.0/README.md DELETED
@@ -1,7 +0,0 @@
1
- =========
2
- Description
3
- =========
4
- Simple Scanner to scan port.
5
- Example:
6
- import SnakeScan
7
- and use him you need-python 3.11 and art module.
File without changes