-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathproject.py
67 lines (57 loc) · 1.99 KB
/
project.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
from functions import tcp_scan, udp_scan, icmp_scan, dns_enum, whois_lookup, geotrack_ip
import pyfiglet
def print_banner():
banner_text = "PandaProbe"
banner = pyfiglet.figlet_format(banner_text, font="slant")
print(banner)
print("\n🐼 Welcome to PandaProbe - Network Scanner and DNS Tool 🐼")
def print_exit():
banner_text = "Bye"
banner = pyfiglet.figlet_format(banner_text, font="slant")
print(banner)
def custom_func():
# this func is to meet requirements, all my functions are in a seperate file
...
def main():
print_banner()
while True:
print("\nChoose an option:")
print("1. TCP Scan")
print("2. UDP Scan")
print("3. ICMP Scan")
print("4. DNS Enumeration")
print("5. WHOIS Lookup")
print("6. Geolocation Tracker")
print("0. Exit")
choice = input("Enter the option number: ")
if choice == "0":
print_exit()
break
elif choice == "1":
target_ip = input("Enter the target IP address: ")
result = tcp_scan(target_ip)
print(result)
elif choice == "2":
target_ip = input("Enter the target IP address: ")
result = udp_scan(target_ip)
print(result)
elif choice == "3":
target_ip = input("Enter the target IP address: ")
result = icmp_scan(target_ip)
print(result)
elif choice == "4":
domain = input("Enter the domain name: ")
result = dns_enum(domain)
print(result)
elif choice == "5":
domain = input("Enter the domain name: ")
result = whois_lookup(domain)
print(result)
elif choice == "6":
ip = input("Enter the IP address for geolocation tracking: ")
result = geotrack_ip(ip)
print(result)
else:
print("Invalid choice. Please enter a valid option.")
if __name__ == "__main__":
main()