forked from ritvikb99/dark-fantasy-hack-tool
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdark-fantasy.py
executable file
·57 lines (49 loc) · 1.85 KB
/
dark-fantasy.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
from modules.clear_scr import clear_scr
from modules.dos import dos
from modules.scanner import scanner
from modules.ftp import ftp
from modules.banner import banner
from modules.spider import spider
from modules.email import email
from modules.subdomain_scanner import scan_subdomains
from modules.dir_buster import scan_urls
def ask_host():
hostname = input(
"Enter hostname or IP address (google.com, www.yoursite.com, 192.168.1.1): ")
if '://' in hostname:
hostname = hostname.split('://')[1]
return hostname
def main():
while 1:
print("-"*60+"\n")
print(" Dark Fantasy - Hack Tool ")
print("-"*60+"\n")
print("1.Port Scanning\n2.DDOS\n3.Banner Grabbing\n4.Web spider(gather all URLs for web hacking)\n5.FTP Password Cracker\n6.Email Scraping\n7.Subdomain Scanner\n8.Website Directory Buster")
try:
choice = int(input("Enter Your Choice: "))
except (ValueError, EOFError, KeyboardInterrupt):
return print('\n[!] Interrupted! or Wrong Value')
if choice not in range(9):
return print('Invalid choice')
hostname = ask_host()
if choice == 1:
scanner(hostname)
elif choice == 2:
dos(hostname)
elif choice == 3:
banner(hostname)
elif choice == 4:
spider(hostname)
elif choice == 5:
ftp(hostname)
elif choice == 6:
email(hostname)
elif choice == 7:
# Only accepts domain name such as example.com, ip address aren't valid input
scan_subdomains(hostname)
elif choice == 8:
scan_urls(hostname)
else:
print("Invalid choice")
if __name__ == '__main__':
main()