SnakeScan 1.4.7__tar.gz → 1.4.9__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,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: SnakeScan
3
- Version: 1.4.7
3
+ Version: 1.4.9
4
4
  Summary: Module SnakeScan using to scan port or ports in you device or other devices
5
5
  Author: Den*Ram
6
6
  Description-Content-Type: text/markdown
@@ -13,11 +13,9 @@ Project-URL: Homepage, https://github.com/Den-Ram/SnakeScan
13
13
  Project-URL: Repository, https://github.com/Den-Ram/SnakeScan
14
14
 
15
15
  # SnakeScan
16
- Scanner to scan devices or watch if you server down or up in time work
17
-
18
- ![PyPI version](https://badge.fury.io/py/SnakeScan.svg)
19
- ![Requires-python](https://img.shields.io/badge/requires--python-3.6+-red)
20
- ![License](https://img.shields.io/badge/License-MIT-blue.svg)
16
+ ![PyPI version](https://badge.fury.io/py/SnakeScan.svg)
17
+ ![Requires-python](https://img.shields.io/badge/requires--python-3.6+-red)
18
+ ![License](https://img.shields.io/badge/License-MIT-blue.svg)
21
19
  ```
22
20
  import SnakeScan
23
21
  SnakeScan.run()
@@ -36,3 +34,14 @@ SnakeScan.run()
36
34
  for SnakeScan import Watcher
37
35
  Watcher(host:str,port:int)
38
36
  ```
37
+ ## Added more imformation about host:
38
+ ```
39
+ [$]Host-->www.example.com --i
40
+ ------------------------------------------------------------Type IP: <class 'ipaddress.IPv4Address'>
41
+ Version IP: 4
42
+ Network: 2.21.240.0/24
43
+ Subnet mask: 255.255.255.0
44
+ Host:a2-21-240-137.deploy.static.akamaitechnologies.com
45
+ IP:2.21.240.137
46
+ ------------------------------------------------------------
47
+ ```
@@ -0,0 +1,33 @@
1
+ # SnakeScan
2
+ ![PyPI version](https://badge.fury.io/py/SnakeScan.svg)
3
+ ![Requires-python](https://img.shields.io/badge/requires--python-3.6+-red)
4
+ ![License](https://img.shields.io/badge/License-MIT-blue.svg)
5
+ ```
6
+ import SnakeScan
7
+ SnakeScan.run()
8
+ ```
9
+ ## Help
10
+
11
+ - --l need internet to view public ip you device
12
+ - --t threading port search
13
+ - --d dos
14
+ - --s single port search
15
+ - --i information about host
16
+ - --h in host /--h port in host
17
+
18
+ ## Added class Watcher:
19
+ ```
20
+ for SnakeScan import Watcher
21
+ Watcher(host:str,port:int)
22
+ ```
23
+ ## Added more imformation about host:
24
+ ```
25
+ [$]Host-->www.example.com --i
26
+ ------------------------------------------------------------Type IP: <class 'ipaddress.IPv4Address'>
27
+ Version IP: 4
28
+ Network: 2.21.240.0/24
29
+ Subnet mask: 255.255.255.0
30
+ Host:a2-21-240-137.deploy.static.akamaitechnologies.com
31
+ IP:2.21.240.137
32
+ ------------------------------------------------------------
33
+ ```
@@ -1,6 +1,7 @@
1
1
  """Module SnakeScan using to scan port or ports in you device or other devices"""
2
- __version__="1.4.7"
2
+ __version__="1.4.9"
3
3
  import socket
4
+ import ipaddress
4
5
  from art import tprint
5
6
  from datetime import datetime
6
7
  from tqdm import tqdm
@@ -106,6 +107,28 @@ def run():
106
107
  if "--i" in host:
107
108
  host=host.strip("--i").strip()
108
109
  print("".center(60,"-"))
110
+ try:
111
+ host=socket.gethostbyname(host)
112
+ except Exception as e:
113
+ print(e)
114
+ print("".center(60,"^"))
115
+ print("".center(60,"-"))
116
+ continue
117
+ hosting=""
118
+ hosting=host.split(".")
119
+ hosting[len(hosting)-1]="0"
120
+ network=""
121
+ for i in range(len(hosting)-1):
122
+ network+=hosting[i]+"."
123
+ network+="0"
124
+ network+="/24"
125
+ hosting=network
126
+ ip_obj = ipaddress.ip_address(host)
127
+ print(f"Type IP: {type(ip_obj)}")
128
+ print(f"Version IP: {ip_obj.version}")
129
+ network_obj = ipaddress.ip_network(network)
130
+ print(f"Network: {network_obj}")
131
+ print(f"Subnet mask: {network_obj.netmask}")
109
132
  try:
110
133
  hostname=socket.gethostbyaddr(host)
111
134
  print(f"Host:{hostname[0]}")
snakescan-1.4.7/README.md DELETED
@@ -1,24 +0,0 @@
1
- # SnakeScan
2
- Scanner to scan devices or watch if you server down or up in time work
3
-
4
- ![PyPI version](https://badge.fury.io/py/SnakeScan.svg)
5
- ![Requires-python](https://img.shields.io/badge/requires--python-3.6+-red)
6
- ![License](https://img.shields.io/badge/License-MIT-blue.svg)
7
- ```
8
- import SnakeScan
9
- SnakeScan.run()
10
- ```
11
- ## Help
12
-
13
- - --l need internet to view public ip you device
14
- - --t threading port search
15
- - --d dos
16
- - --s single port search
17
- - --i information about host
18
- - --h in host /--h port in host
19
-
20
- ## Added class Watcher:
21
- ```
22
- for SnakeScan import Watcher
23
- Watcher(host:str,port:int)
24
- ```
File without changes
File without changes