Advertisement
RintoMuhamad

Vulner Scan

May 20th, 2019
726
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. <?php
  2. // RintoD
  3. function makeRequest($url){
  4. $ch = curl_init();
  5. curl_setopt($ch, CURLOPT_URL, $url);
  6. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  7. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
  8. $output = curl_exec($ch);
  9. curl_close($ch);
  10. return $output;
  11. }
  12. echo "[+]Vulner Scanner[+]\n";
  13. echo "[+]Vuln Text , EX: Unable to open image\n";
  14. $host = readline("Host List : ");
  15. $path = readline("Path : ");
  16. $vuln = readline("Vuln Text: ");
  17. $hos = explode("\n", file_get_contents($host));
  18. foreach($hos as $list){
  19. $moe = makeRequest($list.$path);
  20. if(preg_match("|$vuln|", $moe)){
  21. echo $list. " > Vuln\n";
  22. }
  23. else{
  24. echo $list. " > Not Vuln\n";
  25. }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement