SnakeScan 1.2.9__tar.gz → 1.3.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,14 +1,17 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: SnakeScan
3
- Version: 1.2.9
3
+ Version: 1.3.0
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.9"
2
+ __version__="1.3.0"
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"Release:{__version__}".rjust(60))
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:")
@@ -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