SnakeScan 1.8.4__tar.gz → 1.8.6__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.8.4
3
+ Version: 1.8.6
4
4
  Summary: Unlock the potential of your network with this powerful IPv4 address scanner. Easily scan IP address ranges, identify active hosts, and even extract IPv4 addresses from IPv6 environments. Enhance your network monitoring, troubleshooting, and security analysis!
5
5
  Author: Den*Ram
6
6
  Requires-Python: >=3.7
@@ -130,7 +130,7 @@ watcher.start() # Start monitoring!
130
130
 
131
131
  ---
132
132
 
133
- **Last updated:** 1.8.4 (Added `-ds` attribute to display paths to custom port dictionaries.) *Functionality is present, has narrowly specialized implementations. See details below.*
133
+ **Last updated:** 1.8.6 (Minor bug fixes and style changes) *Functionality is present, has narrowly specialized implementations. See details below.*
134
134
 
135
135
  ***
136
136
 
@@ -117,7 +117,7 @@ watcher.start() # Start monitoring!
117
117
 
118
118
  ---
119
119
 
120
- **Last updated:** 1.8.4 (Added `-ds` attribute to display paths to custom port dictionaries.) *Functionality is present, has narrowly specialized implementations. See details below.*
120
+ **Last updated:** 1.8.6 (Minor bug fixes and style changes) *Functionality is present, has narrowly specialized implementations. See details below.*
121
121
 
122
122
  ***
123
123
 
@@ -21,6 +21,11 @@ threads = []
21
21
  portsopen = 0
22
22
  portsclosed = 0
23
23
  ports = {
24
+ 7: "ECHO",
25
+ 9: "DISCARD",
26
+ 13: "DAYTIME",
27
+ 17: "QOTD (Quote of the Day)",
28
+ 19: "CHARGEN (Character Generator)",
24
29
  20: "FTP-Data",
25
30
  21: "FTP-Control",
26
31
  22: "SSH",
@@ -48,6 +53,8 @@ ports = {
48
53
  631: "IPP",
49
54
  636: "LDAPS",
50
55
  873: "RSYNC",
56
+ 989: "FTPS-DATA",
57
+ 990: "FTPS",
51
58
  993: "IMAPS",
52
59
  995: "POP3S",
53
60
  1080: "SOCKS",
@@ -164,7 +171,7 @@ else:
164
171
  if __name__ == "__main__":
165
172
  main()
166
173
 
167
- version = "1.8.4"
174
+ version = "1.8.6"
168
175
 
169
176
 
170
177
  def is_port_open(host, port):
@@ -416,6 +423,11 @@ else:
416
423
  ports = ports_tcp
417
424
  else:
418
425
  ports = {
426
+ 7: "ECHO",
427
+ 9: "DISCARD",
428
+ 13: "DAYTIME",
429
+ 17: "QOTD (Quote of the Day)",
430
+ 19: "CHARGEN (Character Generator)",
419
431
  20: "FTP-Data",
420
432
  21: "FTP-Control",
421
433
  22: "SSH",
@@ -443,6 +455,8 @@ else:
443
455
  631: "IPP",
444
456
  636: "LDAPS",
445
457
  873: "RSYNC",
458
+ 989: "FTPS-DATA",
459
+ 990: "FTPS",
446
460
  993: "IMAPS",
447
461
  995: "POP3S",
448
462
  1080: "SOCKS",
@@ -599,7 +613,6 @@ if SnakeArgs().info:
599
613
  network = host[n] + "/64"
600
614
  network_obj = ipaddress.ip_network(network)
601
615
  except Exception as e:
602
- pass
603
616
  try:
604
617
  network = host[n] + "/128"
605
618
  network_obj = ipaddress.ip_network(network)
@@ -631,43 +644,49 @@ if SnakeArgs().info:
631
644
 
632
645
 
633
646
  if SnakeArgs().thread:
634
- if SnakeArgs().udp:
647
+ for n in range(len(host)):
635
648
  try:
636
- host[n] = socket.gethostbyname(host[n])
649
+ socket.gethostbyname(host[n])
650
+ print(f"|{host[n]}|".center(60, "—"))
651
+ for port in ports.keys():
652
+ t = Thread(
653
+ target=is_port_open_threads,
654
+ kwargs={"host": host[n], "port": port},
655
+ )
656
+ threads.append(t)
657
+ t.start()
658
+ for t in threads:
659
+ t.join()
637
660
  except Exception as e:
638
661
  print(f"|{host[n]}|".center(60, "—"))
639
662
  print(e)
640
- sys.exit()
641
663
 
642
- for n in range(len(host)):
643
- print(f"|{host[n]}|".center(60, "—"))
644
-
645
- for port in ports.keys():
646
- t = Thread(
647
- target=is_port_open_threads,
648
- kwargs={"host": host[n], "port": port},
649
- )
650
- threads.append(t)
651
- t.start()
652
- for t in threads:
653
- t.join()
654
664
  if SnakeArgs().version:
665
+ print("|Version|".center(60, "—"))
655
666
  print(f"SnakeScan_Build_{version}")
667
+ print("".center(60, "—"))
668
+
656
669
  if SnakeArgs().speed:
657
670
  if SnakeArgs().udp:
658
- try:
659
- host[n] = socket.gethostbyname(host[n])
660
- except Exception as e:
661
- print(f"|{host[n]}|".center(60, "—"))
662
- print(e)
663
- sys.exit()
664
671
  for n in range(len(host)):
665
- print(f"|{host[n]}|".center(60, "—"))
666
- PoolExecutorUDP(host[n], ports)
667
- sys.exit()
668
- for n in range(len(host)):
669
- print(f"|{host[n]}|".center(60, "—"))
670
- PoolProcessExecutor(host[n], ports)
672
+ try:
673
+ socket.gethostbyname(host[n])
674
+ print(f"|{host[n]}|".center(60, "—"))
675
+ PoolExecutorUDP(host[n], ports)
676
+ except Exception as e:
677
+ print(f"|{host[n]}|".center(60, "—"))
678
+ print(e)
679
+ else:
680
+ for n in range(len(host)):
681
+ try:
682
+ socket.gethostbyname(host[n])
683
+ print(f"|{host[n]}|".center(60, "—"))
684
+ PoolProcessExecutor(host[n], ports)
685
+ except Exception as e:
686
+ print(f"|{host[n]}|".center(60, "—"))
687
+ print(e)
688
+
689
+
671
690
  if SnakeArgs().getssl:
672
691
  for n in range(len(host)):
673
692
  print(f"|{host[n]}|".center(60, "—"))
@@ -675,10 +694,16 @@ if SnakeArgs().getssl:
675
694
  print("".center(60, "—"))
676
695
  if SnakeArgs().dictshow:
677
696
  if path_tcp:
697
+ print("|Paths|".center(60, "—"))
678
698
  print(f"TCP:{path_tcp}")
699
+ print("".center(60, "—"))
679
700
  else:
701
+ print("|Paths|".center(60, "—"))
680
702
  print("TCP:path not specified")
703
+ print("".center(60, "—"))
681
704
  if path_udp:
682
705
  print(f"UDP:{path_udp}")
706
+ print("".center(60, "—"))
683
707
  else:
684
708
  print("UDP:path not specified")
709
+ print("".center(60, "—"))
@@ -1,6 +1,6 @@
1
1
  """Unlock the potential of your network with this powerful IPv4 address scanner. Easily scan IP address ranges, identify active hosts, and even extract IPv4 addresses from IPv6 environments. Enhance your network monitoring, troubleshooting, and security analysis!"""
2
2
 
3
- __version__ = "1.8.4"
3
+ __version__ = "1.8.6"
4
4
  import socket
5
5
  from time import sleep
6
6
  from termcolor import colored
File without changes
File without changes