Advertisement
Guest User

ae

a guest
Oct 31st, 2014
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.47 KB | None | 0 0
  1. <?php
  2. //nesse arrey iria vir os sites da extração dos links
  3. $sites = array ("http://www.athenapress.com/book.php?ID=2693%27", "http://mx5.brighton-rock.net/BandInfo.php?ID=448%27");
  4. foreach($sites as $valor){
  5.     $url = file_get_contents($valor);
  6.     $regex = preg_match('/ SQL syntax/i',  $url);
  7.     if($regex){
  8.     echo "Atenção, este link possui uma falha de Sql Injection . <br />";
  9.      
  10.      }else{
  11.         echo "Este link não possui falha de Sql Injection =D";
  12.     }
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement