SnakeScan 1.7.3__tar.gz → 1.7.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.
@@ -0,0 +1,102 @@
1
+ Metadata-Version: 2.4
2
+ Name: SnakeScan
3
+ Version: 1.7.5
4
+ Summary: IPv4 address scanner for collecting address information.Scan or get the IPv4 address from the IPv6 host
5
+ Author: Den*Ram
6
+ Requires-Python: >=3.7
7
+ Description-Content-Type: text/markdown
8
+ License-Expression: MIT
9
+ License-File: LICENSE
10
+ Requires-Dist: art
11
+ Requires-Dist: tqdm
12
+ Requires-Dist: termcolor
13
+
14
+ <!--
15
+
16
+ This documentation was created with the assistance of the GeekBot language model and Den*Ram
17
+
18
+ -->
19
+
20
+ # 🐍 SnakeScan: Your Go-To Python Port Scanner
21
+
22
+ ✨ A powerful and flexible Python library for all your port scanning needs. ✨
23
+
24
+ [![PyPI](https://img.shields.io/pypi/v/SnakeScan?color=blue&label=PyPI)](https://pypi.org/project/SnakeScan/)
25
+
26
+ [![MIT License](https://img.shields.io/badge/License-MIT-green)](https://opensource.org/licenses/MIT)
27
+
28
+ [![Python 3.7+](https://img.shields.io/badge/Python-3.7+-brightgreen)](https://www.python.org/)
29
+
30
+ [![Status: Beta](https://img.shields.io/badge/Status-Beta-yellow)](https://github.com/yourusername/SnakeScan/releases) <!-- Replace yourusername with yours -->
31
+
32
+ [![Platforms](https://img.shields.io/badge/Platforms-macOS%20%7C%20Linux%20%7C%20Windows-lightgrey)](https://www.python.org/)
33
+
34
+ **SnakeScan** is designed to be both easy to use and incredibly versatile. Whether you're performing basic single port checks or diving into advanced subnet scans and real-time monitoring, SnakeScan has you covered.
35
+
36
+ ## 🌟 Key Features:
37
+
38
+ * **Unmatched Flexibility:** Scan single ports, defined ranges, or pre-configured sets with ease.
39
+
40
+ * **Blazing Fast Multithreading:** Leverage multithreading for significantly faster scanning speeds.
41
+
42
+ * **Get the Details:** Retrieve valuable information about IP addresses (supports both IPv4 and IPv6).
43
+
44
+ * **Real-time Monitoring with Watcher:** Keep a constant eye on critical ports and their statuses.
45
+
46
+ * **Intuitive Design:** Clean and simple command-line parameters and API for effortless use.
47
+
48
+ ## ⬇️ Installation:
49
+
50
+ Get started with SnakeScan in seconds!
51
+
52
+ bash
53
+
54
+ pip install SnakeScan
55
+
56
+ ## ⚙️ Command Line Usage: Unleash the Power!
57
+
58
+ ### 💡 Mastering Attribute Usage:
59
+
60
+ * **-p**: Specify ports to scan (single or ranges). **Important:** When specifying ranges, the beginning of the range is only included from the second time. For example, to scan from 80 to 443, use `79-443`. Examples: `snake -p 80,443` or `snake -p 80,3437,8080,20-30,79-443`
61
+
62
+ * **-h**: Display a complete list of available attributes and their descriptions. Example: `snake -h` or `snake -help`
63
+
64
+ * **-sp**: Use a predefined set of common ports for scanning with `ProcessPoolExecutor`. Example: `snake -sp`
65
+
66
+ * **-v**: Show the current version of the SnakeScan library. Example: `snake -v`
67
+
68
+ * **-gs**: Retrieve the SSL/TLS certificate from a specified website. Example: `snake www.google.com -gs` (Without specifying a host, you’ll encounter a connection error).
69
+
70
+ * **-t**: Enable multithreading to speed up your port scans. Example: `snake -t`
71
+
72
+ * **-ch**: Scan a subnet to discover other IP addresses on the network. Example: `snake -ch`
73
+
74
+ * **-l**: Display your public IP address (requires an active internet connection). Example: `snake -l`
75
+
76
+ * **-i**: Show detailed information about a specific IP address (supports both IPv4 and IPv6). Example: `snake www.google.com -i`
77
+
78
+ ## 💻 Python Code Integration:
79
+
80
+ ### ⏱️ Watcher: The Real-Time Port Sentinel!
81
+
82
+ `Watcher` allows you to continuously monitor the status of a designated port.
83
+
84
+ python
85
+
86
+ from SnakeScan import Watcher
87
+
88
+ watcher = Watcher("localhost", 53, 2) # Host, port, check interval (in seconds)
89
+
90
+ watcher.start() # Begin monitoring!
91
+
92
+ #### `Watcher` Command Set:
93
+
94
+ * `Watcher.start()` - Starts the port monitoring process.
95
+
96
+ * `Watcher.stop()` - Halts the port monitoring process.
97
+
98
+ ---
99
+
100
+ **Latest Update:** 1.7.5 (Enhanced port designations for even clearer understanding)
101
+
102
+
@@ -0,0 +1,88 @@
1
+ <!--
2
+
3
+ This documentation was created with the assistance of the GeekBot language model and Den*Ram
4
+
5
+ -->
6
+
7
+ # 🐍 SnakeScan: Your Go-To Python Port Scanner
8
+
9
+ ✨ A powerful and flexible Python library for all your port scanning needs. ✨
10
+
11
+ [![PyPI](https://img.shields.io/pypi/v/SnakeScan?color=blue&label=PyPI)](https://pypi.org/project/SnakeScan/)
12
+
13
+ [![MIT License](https://img.shields.io/badge/License-MIT-green)](https://opensource.org/licenses/MIT)
14
+
15
+ [![Python 3.7+](https://img.shields.io/badge/Python-3.7+-brightgreen)](https://www.python.org/)
16
+
17
+ [![Status: Beta](https://img.shields.io/badge/Status-Beta-yellow)](https://github.com/yourusername/SnakeScan/releases) <!-- Replace yourusername with yours -->
18
+
19
+ [![Platforms](https://img.shields.io/badge/Platforms-macOS%20%7C%20Linux%20%7C%20Windows-lightgrey)](https://www.python.org/)
20
+
21
+ **SnakeScan** is designed to be both easy to use and incredibly versatile. Whether you're performing basic single port checks or diving into advanced subnet scans and real-time monitoring, SnakeScan has you covered.
22
+
23
+ ## 🌟 Key Features:
24
+
25
+ * **Unmatched Flexibility:** Scan single ports, defined ranges, or pre-configured sets with ease.
26
+
27
+ * **Blazing Fast Multithreading:** Leverage multithreading for significantly faster scanning speeds.
28
+
29
+ * **Get the Details:** Retrieve valuable information about IP addresses (supports both IPv4 and IPv6).
30
+
31
+ * **Real-time Monitoring with Watcher:** Keep a constant eye on critical ports and their statuses.
32
+
33
+ * **Intuitive Design:** Clean and simple command-line parameters and API for effortless use.
34
+
35
+ ## ⬇️ Installation:
36
+
37
+ Get started with SnakeScan in seconds!
38
+
39
+ bash
40
+
41
+ pip install SnakeScan
42
+
43
+ ## ⚙️ Command Line Usage: Unleash the Power!
44
+
45
+ ### 💡 Mastering Attribute Usage:
46
+
47
+ * **-p**: Specify ports to scan (single or ranges). **Important:** When specifying ranges, the beginning of the range is only included from the second time. For example, to scan from 80 to 443, use `79-443`. Examples: `snake -p 80,443` or `snake -p 80,3437,8080,20-30,79-443`
48
+
49
+ * **-h**: Display a complete list of available attributes and their descriptions. Example: `snake -h` or `snake -help`
50
+
51
+ * **-sp**: Use a predefined set of common ports for scanning with `ProcessPoolExecutor`. Example: `snake -sp`
52
+
53
+ * **-v**: Show the current version of the SnakeScan library. Example: `snake -v`
54
+
55
+ * **-gs**: Retrieve the SSL/TLS certificate from a specified website. Example: `snake www.google.com -gs` (Without specifying a host, you’ll encounter a connection error).
56
+
57
+ * **-t**: Enable multithreading to speed up your port scans. Example: `snake -t`
58
+
59
+ * **-ch**: Scan a subnet to discover other IP addresses on the network. Example: `snake -ch`
60
+
61
+ * **-l**: Display your public IP address (requires an active internet connection). Example: `snake -l`
62
+
63
+ * **-i**: Show detailed information about a specific IP address (supports both IPv4 and IPv6). Example: `snake www.google.com -i`
64
+
65
+ ## 💻 Python Code Integration:
66
+
67
+ ### ⏱️ Watcher: The Real-Time Port Sentinel!
68
+
69
+ `Watcher` allows you to continuously monitor the status of a designated port.
70
+
71
+ python
72
+
73
+ from SnakeScan import Watcher
74
+
75
+ watcher = Watcher("localhost", 53, 2) # Host, port, check interval (in seconds)
76
+
77
+ watcher.start() # Begin monitoring!
78
+
79
+ #### `Watcher` Command Set:
80
+
81
+ * `Watcher.start()` - Starts the port monitoring process.
82
+
83
+ * `Watcher.stop()` - Halts the port monitoring process.
84
+
85
+ ---
86
+
87
+ **Latest Update:** 1.7.5 (Enhanced port designations for even clearer understanding)
88
+
@@ -27,113 +27,92 @@ Bool = True
27
27
  boolsd = True
28
28
  boolean = 0
29
29
  ports = {
30
- 1: "tcpmux",
31
- 2: "compressnet",
32
- 3: "compressnet",
33
- 5: "rje",
34
- 7: "Echo",
35
- 9: "Discard",
36
- 11: "Systat",
37
- 13: "Daytime",
38
- 17: "QOTD",
39
- 18: "MSP",
40
- 19: "Chargen",
41
30
  20: "FTP-Data",
42
31
  21: "FTP-Control",
43
32
  22: "SSH",
44
33
  23: "Telnet",
45
- 24: "private mail",
34
+ 24: "Priv-mail",
46
35
  25: "SMTP",
47
- 27: "nsw-fe",
48
- 29: "msg-icp",
49
- 31: "msg-auth",
50
- 33: "dsp",
51
- 35: "private printer server",
52
- 37: "Time",
53
- 38: "rap",
54
- 39: "rlp",
55
- 41: "graphics",
36
+ 29: "MSG-ICP",
37
+ 31: "MSG-AUTH",
38
+ 33: "DSP",
39
+ 35: "Priv-print",
40
+ 41: "Graphics",
56
41
  42: "WINS",
57
42
  43: "Whois",
58
- 44: "mpm-flags",
59
- 45: "mpm",
60
- 46: "mpm-snd",
61
- 47: "ni-ftp",
62
- 48: "auditd",
63
- 49: "TACACS",
64
- 50: "re-mail-ck",
65
- 51: "la-maint",
66
- 52: "xns-time",
67
- 53: "DNS",
68
- 54: "xns-ch",
69
- 55: "isi-gl",
70
- 56: "xns-auth",
71
- 57: "private terminal",
72
- 58: "xns-mail",
73
- 67: "DHCP server",
74
- 68: "DHCP client",
75
- 69: "TFTP",
76
- 70: "Gopher",
77
- 79: "Finger",
43
+ 48: "AUDITD",
44
+ 57: "Priv-term",
45
+ 59: "Priv-file",
46
+ 63: "WHOISPP",
47
+ 66: "SQL-NET",
48
+ 75: "Priv-dial",
78
49
  80: "HTTP",
79
- 88: "Kerberos",
80
50
  109: "POP2",
81
51
  110: "POP3",
82
- 111: "RPCbind",
83
52
  113: "ident",
84
53
  115: "SFTP",
85
54
  118: "SQLServ",
86
55
  119: "NNTP",
87
- 123: "NTP",
88
- 135: "MS-Locator",
89
- 137: "NetBIOS-NS",
90
- 138: "NetBIOS-DGM",
91
56
  139: "NetBIOS-SSN",
92
57
  143: "IMAP",
93
- 161: "SNMP",
94
- 162: "SNMP-trap",
95
58
  179: "BGP",
96
59
  194: "IRC",
97
- 201: "AppleTalk routing maintenance",
60
+ 199: "SMUX",
61
+ 200: "SRC",
98
62
  220: "IMAP3",
99
- 389: "LDAP",
63
+ 311: "ASIP-WEBADMIN",
64
+ 344: "PDAP",
65
+ 345: "PAWSERV",
66
+ 346: "ZSERV",
67
+ 347: "FATSERV",
68
+ 401: "UPS",
69
+ 413: "SMSP",
70
+ 427: "SVRLOC",
100
71
  443: "HTTPS",
101
- 445: "SMB",
102
- 465: "SMTPS",
103
- 500: "ISAKMP",
104
- 514: "Syslog",
105
- 520: "RIP",
106
- 546: "DHCPv6 client",
107
- 547: "DHCPv6 server",
108
- 587: "Submission",
72
+ 444: "SNPP",
73
+ 606: "URM",
74
+ 607: "NQS",
109
75
  631: "IPP",
110
76
  636: "LDAPS",
77
+ 639: "MSDP",
78
+ 646: "LDP",
79
+ 647: "DHCP-FAILOVER",
80
+ 648: "RRP",
81
+ 753: "RRH",
82
+ 830: "NETCONF-SSH",
83
+ 831: "NETCONF-BEEP",
84
+ 832: "NETCONFSOAPHTTP",
85
+ 833: "NETCONFSOAPBEEP",
86
+ 861: "OWAMP-CONTROL",
87
+ 862: "TWAPM-CONTROL",
88
+ 873: "RSYNC",
89
+ 989: "FTPS-DATA",
111
90
  990: "FTPS",
112
- 993: "IMAPS",
113
91
  995: "POP3S",
92
+ 1038: "MTQP",
114
93
  1080: "SOCKS",
115
94
  1194: "OpenVPN",
116
- 1433: "Microsoft SQL server",
117
- 1521: "Oracle",
95
+ 1433: "SQL server",
118
96
  1723: "PPTP",
119
- 2049: "NFS",
120
97
  2222: "SSH",
121
98
  3128: "HTTP",
122
99
  3268: "LDAP",
123
100
  3306: "MySQL",
124
101
  3389: "RDP",
125
- 5060: "SIP",
126
- 5353: "MDNS",
102
+ 3455: "RSVP",
103
+ 3632: "Distributed compiler",
104
+ 3689: "DAAP",
127
105
  5432: "PostgreSQL",
128
106
  5900: "VNC",
129
- 8000: "HTTP alternate",
130
- 8080: "HTTP alternate",
131
- 8443: "HTTPS alternate",
132
- 8888: "HTTP alternate",
107
+ 8000: "HTTP",
108
+ 8080: "HTTP",
109
+ 8443: "HTTPS",
110
+ 8888: "HTTP",
133
111
  10000: "Webmin",
134
112
  }
135
113
 
136
- version = "1.7.3"
114
+
115
+ version = "1.7.5"
137
116
 
138
117
 
139
118
  def is_port_open(host, port):
@@ -9,9 +9,8 @@ def Get_ssl(host, port=443, timeout=2, protocol="HTTP/1.0"):
9
9
  context = ssl.create_default_context()
10
10
  ssock = context.wrap_socket(sock, server_hostname=host)
11
11
  ssock.sendall(f"GET / {protocol}\r\nHost:{host}\r\n\r\n".encode("utf-8"))
12
- data = ssock.recv(8192)
12
+ data = ssock.recv(4096)
13
13
  print(data.decode(errors="replace"))
14
14
  ssock.close()
15
15
  except Exception as e:
16
16
  print(e)
17
-
@@ -3,83 +3,87 @@ from termcolor import colored
3
3
  from concurrent.futures import ProcessPoolExecutor
4
4
 
5
5
  ports = {
6
- 7: "Echo",
7
- 9: "Discard",
8
- 11: "Systat",
9
- 13: "Daytime",
10
- 17: "QOTD",
11
- 18: "MSP",
12
- 19: "Chargen",
13
6
  20: "FTP-Data",
14
7
  21: "FTP-Control",
15
8
  22: "SSH",
16
9
  23: "Telnet",
10
+ 24: "Priv-mail",
17
11
  25: "SMTP",
18
- 37: "Time",
12
+ 29: "MSG-ICP",
13
+ 31: "MSG-AUTH",
14
+ 33: "DSP",
15
+ 35: "Priv-print",
16
+ 41: "Graphics",
19
17
  42: "WINS",
20
18
  43: "Whois",
21
- 49: "TACACS",
22
- 53: "DNS",
23
- 67: "DHCP server",
24
- 68: "DHCP client",
25
- 69: "TFTP",
26
- 70: "Gopher",
27
- 79: "Finger",
19
+ 48: "AUDITD",
20
+ 57: "Priv-term",
21
+ 59: "Priv-file",
22
+ 63: "WHOISPP",
23
+ 66: "SQL-NET",
24
+ 75: "Priv-dial",
28
25
  80: "HTTP",
29
- 88: "Kerberos",
30
26
  109: "POP2",
31
27
  110: "POP3",
32
- 111: "RPCbind",
33
28
  113: "ident",
34
29
  115: "SFTP",
35
30
  118: "SQLServ",
36
31
  119: "NNTP",
37
- 123: "NTP",
38
- 135: "MS-Locator",
39
- 137: "NetBIOS-NS",
40
- 138: "NetBIOS-DGM",
41
32
  139: "NetBIOS-SSN",
42
33
  143: "IMAP",
43
- 161: "SNMP",
44
- 162: "SNMP-trap",
45
34
  179: "BGP",
46
35
  194: "IRC",
47
- 201: "AppleTalk routing maintenance",
36
+ 199: "SMUX",
37
+ 200: "SRC",
48
38
  220: "IMAP3",
49
- 389: "LDAP",
39
+ 311: "ASIP-WEBADMIN",
40
+ 344: "PDAP",
41
+ 345: "PAWSERV",
42
+ 346: "ZSERV",
43
+ 347: "FATSERV",
44
+ 401: "UPS",
45
+ 413: "SMSP",
46
+ 427: "SVRLOC",
50
47
  443: "HTTPS",
51
- 445: "SMB",
52
- 465: "SMTPS",
53
- 500: "ISAKMP",
54
- 514: "Syslog",
55
- 520: "RIP",
56
- 546: "DHCPv6 client",
57
- 547: "DHCPv6 server",
58
- 587: "Submission",
48
+ 444: "SNPP",
49
+ 606: "URM",
50
+ 607: "NQS",
59
51
  631: "IPP",
60
52
  636: "LDAPS",
53
+ 639: "MSDP",
54
+ 646: "LDP",
55
+ 647: "DHCP-FAILOVER",
56
+ 648: "RRP",
57
+ 753: "RRH",
58
+ 830: "NETCONF-SSH",
59
+ 831: "NETCONF-BEEP",
60
+ 832: "NETCONFSOAPHTTP",
61
+ 833: "NETCONFSOAPBEEP",
62
+ 861: "OWAMP-CONTROL",
63
+ 862: "TWAPM-CONTROL",
64
+ 873: "RSYNC",
65
+ 989: "FTPS-DATA",
61
66
  990: "FTPS",
62
- 993: "IMAPS",
63
67
  995: "POP3S",
68
+ 1038: "MTQP",
64
69
  1080: "SOCKS",
65
70
  1194: "OpenVPN",
66
- 1433: "Microsoft SQL server",
67
- 1521: "Oracle",
71
+ 1433: "SQL server",
68
72
  1723: "PPTP",
69
- 2049: "NFS",
70
73
  2222: "SSH",
71
74
  3128: "HTTP",
72
75
  3268: "LDAP",
73
76
  3306: "MySQL",
74
77
  3389: "RDP",
75
- 5060: "SIP",
76
- 5353: "MDNS",
78
+ 3455: "RSVP",
79
+ 3632: "Distributed compiler",
80
+ 3689: "DAAP",
77
81
  5432: "PostgreSQL",
78
82
  5900: "VNC",
79
- 8000: "HTTP alternate",
80
- 8080: "HTTP alternate",
81
- 8443: "HTTPS alternate",
82
- 8888: "HTTP alternate",
83
+ 8000: "HTTP",
84
+ 8080: "HTTP",
85
+ 8443: "HTTPS",
86
+ 8888: "HTTP",
83
87
  10000: "Webmin",
84
88
  }
85
89
 
@@ -1,6 +1,6 @@
1
1
  """IPv4 address scanner for collecting address information.Scan or get the IPv4 address from the IPv6 host"""
2
2
 
3
- __version__ = "1.7.3"
3
+ __version__ = "1.7.5"
4
4
  import socket
5
5
  from time import sleep
6
6
  from termcolor import colored
snakescan-1.7.3/PKG-INFO DELETED
@@ -1,67 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: SnakeScan
3
- Version: 1.7.3
4
- Summary: IPv4 address scanner for collecting address information.Scan or get the IPv4 address from the IPv6 host
5
- Author: Den*Ram
6
- Requires-Python: >=3.7
7
- Description-Content-Type: text/markdown
8
- License-Expression: MIT
9
- License-File: LICENSE
10
- Requires-Dist: art
11
- Requires-Dist: tqdm
12
- Requires-Dist: termcolor
13
-
14
- # SnakeScan
15
- ![PyPI version](https://badge.fury.io/py/SnakeScan.svg)
16
- ![License](https://img.shields.io/badge/License-MIT-blue.svg)
17
- ![Requires-python](https://img.shields.io/badge/requires--python-3.7+-black)
18
- ![Status](https://img.shields.io/badge/Version-in%20Beta-black)
19
- ![Platforms](https://img.shields.io/badge/Platforms-macOS%20%7C%20Linux%20%7C%20Windows-blue)
20
-
21
- ## Help with using the library
22
- - -l need internet to view public ip you device
23
- - -t threading port search
24
- - -s single search ports
25
- - -i information about host
26
- - -help in host /-help port in host
27
- - -check [host] scan subnet in ip
28
- - exit in host or port off script
29
-
30
- ### Watcher commands
31
- ```
32
- Watcher.start() - Starts checking ports
33
- Watcher.stop() - Stops port checking
34
- ```
35
- ### Watcher
36
- ```
37
- from SnakeScan import Watcher
38
- watcher = Watcher("localhost",53,2)
39
- watcher.start()
40
- ```
41
- ### Help with attributes
42
- ```
43
- -P:
44
- snake -p 80,443 #Scanning specific ports
45
- snake -p 80,3437,8080,20-30,79-443 #Scanning individual ports and ranges. If you use ranges, then one port from the beginning is not be taken into account. For example:80-443 then it will start with 81-443, so you need to enter it from 79-443, then it will be taken into account
46
- snake -p 80,3437,10-0,20-10,443-79 #You can enter ranges the other way around: 80-443,443-80 but the first value will start one port higher
47
- -H:
48
- #Displays a list of attribute usages
49
- snake -h
50
- snake -help
51
- -SP:
52
- -sp:snake -sp #Uses selected pre-selected range and uses for scanning ProcessPoolExecutor
53
- -V:
54
- snake -v #Shows the library version
55
- -GS:
56
- snake www.google.com -gs #Get a certificate from the official website. If you don't enter the hostname, you'll get this error [Errno 111] Connection refused
57
- -T:
58
- snake -t #Uses threads for port scanning
59
- -CH:
60
- snake -ch #Scans the subnet for others IP
61
- -L:
62
- snake -l #Shows your public internet IP address. Internet connection required for use
63
- -I:
64
- snake www.google.com -i #Shows information about the IP address.Can receive information from IPV4 and IPV6
65
-
66
- #Update in 1.7.3
67
- - The style of information presentation has been changed
snakescan-1.7.3/README.md DELETED
@@ -1,54 +0,0 @@
1
- # SnakeScan
2
- ![PyPI version](https://badge.fury.io/py/SnakeScan.svg)
3
- ![License](https://img.shields.io/badge/License-MIT-blue.svg)
4
- ![Requires-python](https://img.shields.io/badge/requires--python-3.7+-black)
5
- ![Status](https://img.shields.io/badge/Version-in%20Beta-black)
6
- ![Platforms](https://img.shields.io/badge/Platforms-macOS%20%7C%20Linux%20%7C%20Windows-blue)
7
-
8
- ## Help with using the library
9
- - -l need internet to view public ip you device
10
- - -t threading port search
11
- - -s single search ports
12
- - -i information about host
13
- - -help in host /-help port in host
14
- - -check [host] scan subnet in ip
15
- - exit in host or port off script
16
-
17
- ### Watcher commands
18
- ```
19
- Watcher.start() - Starts checking ports
20
- Watcher.stop() - Stops port checking
21
- ```
22
- ### Watcher
23
- ```
24
- from SnakeScan import Watcher
25
- watcher = Watcher("localhost",53,2)
26
- watcher.start()
27
- ```
28
- ### Help with attributes
29
- ```
30
- -P:
31
- snake -p 80,443 #Scanning specific ports
32
- snake -p 80,3437,8080,20-30,79-443 #Scanning individual ports and ranges. If you use ranges, then one port from the beginning is not be taken into account. For example:80-443 then it will start with 81-443, so you need to enter it from 79-443, then it will be taken into account
33
- snake -p 80,3437,10-0,20-10,443-79 #You can enter ranges the other way around: 80-443,443-80 but the first value will start one port higher
34
- -H:
35
- #Displays a list of attribute usages
36
- snake -h
37
- snake -help
38
- -SP:
39
- -sp:snake -sp #Uses selected pre-selected range and uses for scanning ProcessPoolExecutor
40
- -V:
41
- snake -v #Shows the library version
42
- -GS:
43
- snake www.google.com -gs #Get a certificate from the official website. If you don't enter the hostname, you'll get this error [Errno 111] Connection refused
44
- -T:
45
- snake -t #Uses threads for port scanning
46
- -CH:
47
- snake -ch #Scans the subnet for others IP
48
- -L:
49
- snake -l #Shows your public internet IP address. Internet connection required for use
50
- -I:
51
- snake www.google.com -i #Shows information about the IP address.Can receive information from IPV4 and IPV6
52
-
53
- #Update in 1.7.3
54
- - The style of information presentation has been changed
File without changes
File without changes