Advertisement
tobitaz

singleshellscanner.php

Jul 22nd, 2013 (edited)
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.92 KB | None | 0 0
  1. <?php
  2.  
  3.  
  4. echo '<form action="" method="post">
  5. <font class="os">Url:</font><br /><input name="urljom" class="ibtn" value="http://targetsite.com">
  6. <button type="submit" class="rbtn">SCAN</button>
  7. </form>';
  8.  
  9.  
  10.  
  11. $urljom = $_POST["urljom"];
  12.  
  13. if($urljom != null)
  14. {
  15. $comx = file_get_contents("wordlist.txt");
  16.  
  17.   $arrayjom = preg_split('/(\r?\n)+/', $comx);
  18.  
  19.  
  20. foreach($arrayjom as $allcom)
  21. {
  22.  
  23.  $tazjom = curl_init($urljom.$allcom);
  24.  
  25. curl_setopt($tazjom, CURLOPT_RETURNTRANSFER, true);
  26.  
  27.  
  28. $tobjom = curl_exec($tazjom);
  29. curl_close($tazjom);
  30.  
  31. if($tobjom === false)
  32. {
  33.  
  34. }
  35. else
  36. {
  37.  
  38.  
  39. $ti = strripos($tobjom, "not be found");
  40. $ta = strripos($tobjom, "not exist");
  41. $te = strripos($tobjom, "not found");
  42.  
  43.  
  44. if($ti === false & $ta === false & $te === false)
  45. {
  46. echo "<font class='os'>its have:<font color='red'>".$allcom."</font> kemungkinan adalah shell</font><br />";
  47.  
  48. }
  49. else
  50. {
  51.  
  52. }
  53. }
  54. }
  55. }
  56. else
  57. {
  58. }
  59.  
  60.  
  61.  
  62. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement