SHARE
TWEET

Untitled

a guest Aug 12th, 2017 51 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.  
  3. $black_rfi = array("/=www/", "/=http/", "/=ftp/", "/=https/", "/=ftps/");
  4.  
  5. foreach($black_rfi as $stringa)
  6. {
  7.     if(preg_match($stringa, $url))
  8.     {
  9.         $apri_log = fopen("modules/log/log.html", "a+");
  10.         fwrite($apri_log, "IP: $ip , User Agent: $user_agent , Tipo Di Attacco: rfi Injection , Data: $data<br>");
  11.         fclose($apri_log);
  12.         header("Location: lock.php");
  13.         die(); 
  14.     }
  15.    
  16. }
  17. ?>
RAW Paste Data
Top