require('Gelo') usage = [[ USAGE: cgiscan.exe [url] Example: cgiscan.exe http://www.somehost.com ]] --add your path list here, example: pathlist = [[ /cgi-bin/phf /cgi-bin/Count.cgi /cgi-bin/test-cgi ]] --uncomment this if you want to load the path list from an external file --pathlist = file_gettostr('cgiscan.lst') if arg[1] == nil then print(usage) else print('Scanning '..arg[1]..'...') http = GHTTPRequest:new() p = GStrListParser:new() p:loadfromstr(pathlist) while p:parsing() do http:open('GET',arg[1]..p.current) if http.statuscode == 200 then print('Found: '..p.current) end end p:release() http:release() end