SnakeScan 1.1.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.
@@ -1,19 +1,21 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: SnakeScan
3
- Version: 1.1.5
3
+ Version: 1.2.0
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
+ Requires-Dist: art
10
+ Requires-Dist: tqdm
11
+ Requires-Dist: termcolor
9
12
 
10
13
  Description
11
14
  -------------------
12
- Simple Scanner to scan port.
13
- Example:
14
- import SnakeScan
15
+ Simple Scanner to scan port.Example:import SnakeScan
15
16
  and use module to scan port
16
- if him not run install in pip art,tqdm,termcolor and run
17
- added new single search enter example:
17
+ if him not run install in pip art,tqdm,termcolor and run.
18
+ added new single search example:
18
19
  [$]Port/Skip--> --s 50
20
+ requires-python=>3.1.1
19
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,5 +1,5 @@
1
1
  """Module SnakeScan"""
2
- __version__="1.1.5"
2
+ __version__="1.2.0"
3
3
  import socket
4
4
  from art import tprint
5
5
  from datetime import datetime
@@ -10,7 +10,6 @@ portsclosed=0
10
10
  Run_now=True
11
11
  Bool=True
12
12
  boolean=0
13
- #PORT-LIST(ALL-PORTS)
14
13
  OpenPorts=[]
15
14
  ports = {
16
15
  20: "FTP-DATA", 21: "FTP", 22: "SSH", 23: "Telnet",
@@ -37,7 +36,7 @@ def is_port_open(host,port):
37
36
  print("–"*60)
38
37
  tprint("SnakeScan")
39
38
  print("–"*60)
40
- print("V1.1.5".rjust(60))
39
+ print(f"{__version__}".rjust(60))
41
40
  print(f"Skip{colored('|*|','blue')}Error: Host:localhost{colored('|$|','green')}Port:4000 ports")
42
41
  while Run_now:
43
42
  host=input(f"{colored('[$]','green')}Host/Skip-->")
@@ -55,9 +54,13 @@ while Run_now:
55
54
  length=int(port_user)
56
55
  except:
57
56
  if "--s" in str(port_user):
58
- port_user=int(port_single.strip("--s")[:3])
59
- length=1
60
- for single in range(0,length):
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):
61
64
  if is_port_open(host,port_user):
62
65
  print(f"Open{colored('|√|','green')}-->{ports[port_user]}|{port_user}|")
63
66
  else:
@@ -1,10 +1,15 @@
1
1
  [build-system]
2
- requires = ["flit_core >=3.11,<4","art","tqdm","termcolor"]
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.1.5/README.md DELETED
@@ -1,10 +0,0 @@
1
- Description
2
- -------------------
3
- Simple Scanner to scan port.
4
- Example:
5
- import SnakeScan
6
- and use module to scan port
7
- if him not run install in pip art,tqdm,termcolor and run
8
- added new single search enter example:
9
- [$]Port/Skip--> --s 50
10
-
File without changes