Skip to content

Commit

Permalink
v1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
kuburan committed Mar 19, 2018
1 parent 3afdc75 commit 451cd4c
Show file tree
Hide file tree
Showing 8 changed files with 185 additions and 21 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
-- March 19, 2018 --
* v1.2
* add compare with ndiff


-- March 14, 2018 --
* v1.1-rev2
* add vulners
Expand Down
2 changes: 1 addition & 1 deletion core/banner.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def banner():
/_/ /_/|_|\__/\____/\____/_____/
"""+ warna.tutup + """
Author : """ + warna.abuabu + """ Kuburan A.K.A Gembur Ae """+ warna.tutup + """
Version : """ + warna.abuabu + """ 1.1 """+ warna.tutup + """
Version : """ + warna.abuabu + """ 1.2 """+ warna.tutup + """
Codename : """ + warna.abuabu + """ Tali Pocong """+ warna.tutup + """
""" + warna.merah + """ =======================================
=======================================""" + warna.tutup + """
Expand Down
11 changes: 11 additions & 0 deletions core/fungsi.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,17 @@ def IP():

return local_ip

def check_ndiff():
ndiff_path = '/data/data/com.termux/files/usr/bin'
if not os.path.isfile("%s/ndiff" % (ndiff_path)):
print(warna.merah + "\n[x] Fatal error" + warna.tutup + " ndiff not found !")
print(warna.kuning + "[!] " + warna.tutup + "you can download ndiff binary at my Brach.")
print(warna.hijau + " https://github.com/kuburan/kuburan.github.io/tree/master/files/dists/termux/external/binary-all" + warna.tutup)
sys.exit()

else :
return True


def check_proxychains():
proxychains_path = '/data/data/com.termux/files/usr/bin'
Expand Down
3 changes: 2 additions & 1 deletion core/upgrade.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
import os
module_dir = '/data/data/com.termux/files/usr/share/txtool/module'
core_dir = '/data/data/com.termux/files/usr/share/txtool/core'
os.system("cd %s && rm -f fungsi.py" % (core_dir))
os.system("cd %s && rm -f banner.py fungsi.py" % (core_dir))
os.system("cd %s && wget https://raw.githubusercontent.com/kuburan/txtool/master/core/banner.py" % (core_dir))
os.system("cd %s && wget https://raw.githubusercontent.com/kuburan/txtool/master/core/fungsi.py" % (core_dir))
os.system("cd %s && rm -f module1.py module9.py" % (module_dir))
os.system("cd %s && wget https://raw.githubusercontent.com/kuburan/txtool/master/module/module1.py" % (module_dir))
Expand Down
2 changes: 1 addition & 1 deletion core/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version 1.1-rev2
version 1.2
39 changes: 38 additions & 1 deletion module/module1.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

sys.path.append("/data/data/com.termux/files/usr/share/txtool/core")
from fungsi import empty, scan_finish, check_vulscan, check_redpoint
from fungsi import IP, check_proxychains, info, warna, check_vulners
from fungsi import IP, check_proxychains, info, warna, check_vulners, check_ndiff
import menu as back

def menu_utama():
Expand All @@ -17,6 +17,7 @@ def menu_utama():
print("\t[" + warna.hijau + "4" + warna.tutup + "]" + warna.abuabu + " SCADA, ICS, PLC Scanning" + warna.tutup)
print("\t[" + warna.hijau + "5" + warna.tutup + "]" + warna.abuabu + " Checking Eternalblue Doublepulsar Vulnerability" + warna.tutup)
print("\t[" + warna.hijau + "6" + warna.tutup + "]" + warna.abuabu + " Vulners" + warna.tutup)
print("\t[" + warna.hijau + "7" + warna.tutup + "]" + warna.abuabu + " Compare Nmap output files with Ndiff" + warna.tutup)
print("\t[" + warna.hijau + "0" + warna.tutup + "]" + warna.abuabu + " Back To Main Menu\n" + warna.tutup)
pilih = raw_input(warna.hijau + " tXtool " + warna.tutup + warna.kuning + " ~~>> " + warna.tutup)
eksekusi_menu(pilih)
Expand Down Expand Up @@ -282,6 +283,41 @@ def menu6():
raw_input("\n press <" + warna.hijau + "Enter" + warna.tutup + "> to continue ")
menu['menu_utama']()

def menu7():
check_ndiff()
print(warna.hijau + "\n[*]" + warna.tutup + " Compare two Nmap XML files and display a list of their differences. Differences include host state changes, port state changes, and changes to service and OS detection.")
file_1 = raw_input(warna.biru + "\n[+] " + warna.tutup + "first output file" + warna.kuning + " >> " + warna.tutup)
if file_1 == '':
empty()
menu['menu_utama']()

if not ".xml" in file_1:
print(warna.merah + "\n[x] Error : " + warna.tutup + "the output file should be in .xml format")
menu['menu_utama']()

file_2 = raw_input(warna.biru + "\n[+] " + warna.tutup + "second output file to compare" + warna.kuning + " >> " + warna.tutup)
if file_2 == '':
empty()
menu['menu_utama']()

if not ".xml" in file_2:
print(warna.merah + "\n[x] Error : " + warna.tutup + "the output file should be in .xml format")
menu['menu_utama']()

print(warna.hijau + '\n[*] ' + warna.tutup + 'if you want to read in xml format, choose "yes". else return text format')
q = raw_input(warna.biru + "[+]" + warna.tutup + " Do you want to read in xml format ?" + warna.kuning + " >> " + warna.tutup)
if q == "yes" or q == "YES" or q == "y" or q == "Y" or q == "ya":
subprocess.Popen("ndiff --xml %s %s " %
(file_1, file_2), shell=True).wait()
scan_finish()
menu['menu_utama']()

else:
subprocess.Popen("ndiff %s %s " %
(file_1, file_2), shell=True).wait()
scan_finish()
menu['menu_utama']()

def Kembali():
back.menu['menu_utama']()

Expand All @@ -293,5 +329,6 @@ def Kembali():
'4': menu4,
'5': menu5,
'6': menu6,
'7': menu7,
'0': Kembali,
}
Loading

0 comments on commit 451cd4c

Please sign in to comment.