-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
156 lines (142 loc) · 6.84 KB
/
main.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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
import getpass
import runpy
import os
import subprocess
import time
from termcolor import colored
from pyfiglet import figlet_format
os.system('clear')
print(colored(figlet_format("Private Tools", font="slant"), 'yellow'))
print(colored(("Sebagian Tools Masih Tahap Pengembangan jika ada Bug Silakan laporkan!"), 'yellow'))
print(colored(("Developed and maintained by @Huda from @Hakka.\nfor password contact +62 85335822427\n "), 'yellow'))
password = getpass.getpass("password: ")
if password == "jawa":
def nik_gen():
os.system('clear')
print(colored(figlet_format("Private Tools", font = "slant"), 'yellow'))
# print(colored(("#########################################################################"),'yellow'))
print(colored(("Sebagian Tools Masih Tahap Pengembangan jika ada Bug Silakan laporkan!"),'yellow'))
print(colored(("Developed and maintained by @chmodv1 from 22XploiterCrew "),'yellow'))
# print(colored(("#########################################################################"),'yellow'))
os.system("python3 nik_gen.py")
kembali_ke_menu("nik_gen")
def sqlmap():
# pengecekan
try:
subprocess.run(["sqlmap", "-v"], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
except FileNotFoundError:
print(colored(figlet_format("Private Tools", font = "slant"), 'yellow'))
print("SQLMap belum terinstall. Apakah ingin menginstall sqlmap? (y/n): ")
install = input()
if install == "y":
os.system('sudo apt-get install sqlmap')
else:
print("sqlmap tidak akan diinstall")
return
os.system('clear')
print(colored(figlet_format("Private Tools", font = "slant"), 'yellow'))
print(colored(("Sqlmap Sudah Terinstall"),'green'))
# opsi
cookie = input("Apakah ingin menggunakan cookie? (y/n): ")
url = input("Masukkan URL yang akan diuji: ")
if cookie == "y":
cookie = input("cookie:")
os.system('clear')
cmd = f'sqlmap -u {url} --random-agent --no-cast --threads 10 --cookie={cookie} --dbs'
else:
cmd = f'sqlmap -u {url} --random-agent --no-cast --threads 10 --dbs --batch --level 3 --risk 1'
os.system('clear')
subprocess.run(cmd, shell=True)
kembali_ke_menu("sqlmap")
def tools_2():
os.system('clear')
print("Masi kosong bang-belom bikin\ncape, mending rakit bom")
time.sleep(2)
kembali_ke_menu("tools_2")
def statuscode():
os.system('clear')
print(colored(figlet_format("Private Tools", font = "slant"), 'yellow'))
print(colored(("#########################################################################"),'yellow'))
print(colored(("# Sebagian Tools Masih Tahap Pengembangan jika ada Bug Silakan laporkan!#"),'yellow'))
print(colored(("# Developed and maintained by @Huda from @Hakka. "),'yellow'))
print(colored(("#########################################################################\n\n\n\n"),'yellow'))
runpy.run_path("statuscode.py")
kembali_ke_menu("statuscode")
def git_dumper():
os.system('clear')
print(colored(figlet_format("Private Tools", font = "slant"), 'yellow'))
url = input("URL (ex: https://target.com/index/.git/): ")
folder = input("Input Folder name: ")
destination = input("Input Nama folder untuk save Extract: ")
# Exec gitdumper
os.system('clear')
print(colored(figlet_format("Private Tools", font = "slant"), 'yellow'))
os.system(f"bash gitdumper.sh {url} {folder}")
os.system(f"bash extractor.sh {folder} {destination}")
kembali_ke_menu("git_dumper")
def kembali_ke_menu(fungsi):
pilihan = input("Kembali ke menu? (y/n): ")
if pilihan == "y":
os.system('clear')
menu()
elif pilihan == "n":
os.system('clear')
eval(fungsi + "()")
else:
print("\nketik y atau n")
kembali_ke_menu(fungsi)
# menambahkan menu baru
def menu():
os.system('clear')
tools_string = "Private Tools"
print(colored(figlet_format(tools_string, font = "slant"), 'yellow'))
# print(colored(("#########################################################################"),'yellow'))
# print(colored(("# Sebagian Tools Masih Tahap Pengembangan jika ada Bug Silakan laporkan!#"),'yellow'))
# print(colored(("# Developed and maintained by @Huda from @Hakka. "),'yellow'))
# print(colored(("#########################################################################"),'yellow'))
# print(colored(figlet_format("Private Tools", font = "slant"), 'yellow'))
# print(colored(("#########################################################################"),'yellow'))
print(colored(("Sebagian Tools Masih Tahap Pengembangan jika ada Bug Silakan laporkan!"),'yellow'))
print(colored(("Developed and maintained by @chmodv1 from 22XploiterCrew "),'yellow'))
print(colored(("\n\n\n L I S T T O O L S "), 'green', attrs=['bold']))
print(" - - - - - - - - - - \n")
print("1. KK KTP Generator " + (colored((" - Random Active KK KTP 5x attemp"),'red')))
print("2. Auto SQL Injection " + (colored((" - Auto Dump Database to CSV"),'red')))
print("3. Status Code Checker" + (colored((" - Auto Check Header response, and save to txt"),'red')))
print("4. Metasploit" + (colored((" - Auto Upload Payload"),'red')))
print("5. Git Expolit" + (colored((" - Download,Dumper & Extract GIT Directory"),'red')))
print("6. Exit")
pilihan = input("\n[+] Pilih Tools: ")
if pilihan == "1":
nik_gen()
elif pilihan == "2":
sqlmap()
elif pilihan == "3":
statuscode()
elif pilihan == "4":
tools_2()
elif pilihan == "5":
git_dumper()
elif pilihan == "6":
keluar = input("Apakah anda ingin keluar? (y/n): ")
if keluar == "y":
print(colored(("thanks for use this tools."),'green'))
time.sleep(0.5)
os.system('exit')
elif keluar == "n":
menu()
else:
print(colored(("hanya menerima input (y/n)"), 'red'))
time.sleep(0.5)
menu()
else:
print(colored(("input tidak valid"),'red'))
time.sleep(0.5)
menu()
#else:
# print(colored(("input tidak valid"),'red'))
# time.sleep(0.5)
# menu()
menu()
else:
print(colored(("Password salah, silakan coba lagi."), 'red'))