Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // RintoD
- function makeRequest($url){
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL, $url);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
- $output = curl_exec($ch);
- curl_close($ch);
- return $output;
- }
- echo "[+]Vulner Scanner[+]\n";
- echo "[+]Vuln Text , EX: Unable to open image\n";
- $host = readline("Host List : ");
- $path = readline("Path : ");
- $vuln = readline("Vuln Text: ");
- $hos = explode("\n", file_get_contents($host));
- foreach($hos as $list){
- $moe = makeRequest($list.$path);
- if(preg_match("|$vuln|", $moe)){
- echo $list. " > Vuln\n";
- }
- else{
- echo $list. " > Not Vuln\n";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement