Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import urllib2,sys,webbrowser
- global customer
- customer = 'var CUSTNUMBER = '
- def parseURL(url):
- for i in url:
- if not url.endswith('/'):
- url = url[:-1]
- elif url.endswith('/'):
- return url
- def forum_install_upgrade(link):
- link = parseURL(link)
- if 'forum/install/upgrade.php' not in link: link += 'forum/install/upgrade.php'
- try:
- conn2 = urllib2.urlopen(link)
- response = conn2.getcode()
- except urllib2.HTTPError:
- print '[-] %s do not exist' % link
- print '[-] Website is not Vulnerable'
- else:
- print "[+] Found upgrade.php file\n[+] Searching for customer hash"
- page = conn2.read()
- if customer in page:
- print '[+] Found customer hash\n[+] Website is exploitable. Please go to\n\n\t http://zeroh4ck3r.nazuka.net/0day.php \n\nand exploit the forum'
- yes = raw_input("Press Enter to go to that link, Any key to quit ")
- if yes == '': webbrowser.open('http://zeroh4ck3r.nazuka.net/0day.php')
- else : exit
- elif customer not in page:
- print '[+] Customer hash not found\n[-] Website is not vulnerable to this 0day exploit'
- def install_upgrade(link):
- if 'install/upgrade.php' not in link: link += 'install/upgrade.php'
- try:
- conn = urllib2.urlopen(link)
- resp = conn.getcode()
- except urllib2.HTTPError:
- print '[-] %s do not exist' % link
- print '[+] Trying %sforum/install/upgrade.php' % original_link
- forum_install_upgrade(original_link)
- else:
- print '[+] Found upgrade.php file'
- print '[+] Searching for Customer hash'
- page = conn.read()
- if customer in page:
- print '[+] Found customer hash\n[+] Website is exploitable. Please go to\n\n\t http://zeroh4ck3r.nazuka.net/0day.php \n\nand exploit the forum'
- yes = raw_input("Press Enter to go to that link, Any key to quit ")
- if yes == '': webbrowser.open('http://zeroh4ck3r.nazuka.net/0day.php')
- else : exit
- elif customer not in page:
- print '[-] Customer hash not found\n[-] Website is not vulnerable to this 0day exploit'
- def main():
- global original_link
- print '''
- Vbulltin 0Day Exploit checker Script
- By [Anubis/zero] Myanmar Security Forum Moderator
- My email: z3r0.mhu@gmail.com
- My fb : www.facebook.com/zerouplink
- '''
- original_link = raw_input('Enter website : ')
- if not original_link.endswith('/') : original_link = original_link + '/'
- if 'http://' not in original_link: original_link = 'http://' + original_link
- print "[+] Locating upgrade.php file"
- print "[+] Trying %sinstall/upgrade.php" % original_link
- install_upgrade(original_link)
- if __name__ == '__main__':
- main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement