gnopaste

Sorry for this ugly message. We are searching for some translators.
Please take a look here
Thanks to all translators, you're doing a great job!

Name
MP Blog
Scriptlanguage
PHP
Tabwidth
4
Date
02/14/2010 07:34:46 pm
IP
84.222.166.181

phpBB Sentinel

  1.  
  2. #-- Aprire config.php --#
  3. #-- Nella linea 1 cercare: --#
  4. ----------
  5. <?php
  6. ----------
  7.  
  8. #-- Inserire: --#
  9. ----------------------------------------------------------------
  10. $stringa = $_SERVER['QUERY_STRING'];
  11. $host = $_SERVER['HTTP_HOST'];
  12. $file = $_SERVER['PHP_SELF'];
  13. $path = "$host$file?$stringa";
  14. $ip = $_SERVER['REMOTE_ADDR'];
  15. $maligno1  = 'http';
  16. $maligno2  = 'www.';
  17. $maligno3  = 'script';
  18. $maligno4  = 'FROM';
  19. $maligno5  = 'SELECT';
  20. $maligno6  = 'WHERE';
  21. $maligno7  = 'UNION';
  22. $maligno8  = 'phpbb_';
  23. $maligno9  = 'ftp';
  24. $maligno10  = 'https';
  25. $finder_maligno1 = eregi($maligno1, $stringa);
  26. $finder_maligno2 = eregi($maligno2, $stringa);
  27. $finder_maligno3 = eregi($maligno3, $stringa);
  28. $finder_maligno4 = eregi($maligno4, $stringa);
  29. $finder_maligno5 = eregi($maligno5, $stringa);
  30. $finder_maligno6 = eregi($maligno6, $stringa);
  31. $finder_maligno7 = eregi($maligno7, $stringa);
  32. $finder_maligno8 = eregi($maligno8, $stringa);
  33. $finder_maligno9 = eregi($maligno9, $stringa);
  34. $finder_maligno10 = eregi($maligno10, $stringa);
  35. if ($finder_maligno1 >= 1 OR $finder_maligno2 >= 1 OR $finder_maligno3 >= 1 OR $finder_maligno4 >= 1 OR $finder_maligno5 >= 1 OR $finder_maligno6 >= 1 OR $finder_maligno7 >= 1 OR $finder_maligno8 >= 1 OR $finder_maligno9 >= 1 OR $finder_maligno10 >= 1) {
  36. $var = fopen("attacchi.html","a+");
  37. fwrite($var, "Attacco: [ <b>$path</b> ] @ IP: [ <b>$ip</b> ]<br>
  38. ");
  39. fclose($var);
  40. die("Hacking Attempt<br>You IP was logged."); }
  41. ----------------------------------------------------------------
  42.  
  43. #-- Aprire includes/page_tail.php --#
  44. #-- Nella linea 33 cercare: --#
  45. ----------------------------------------------------------------
  46. $admin_link = ( $userdata['user_level'] == ADMIN ) ? '<a href="admin/index.' . $phpEx . '?sid=' . $userdata['session_id'] . '">' . $lang['Admin_panel'] . '</a><br /><br />' : '';
  47. ----------------------------------------------------------------
  48.  
  49. #-- Dopo aggiungere: --#
  50. ----------------------------------------------------------------
  51. $file = file("attacchi.html");
  52. $attacchi = count($file);
  53. $countattacchi = "<a href=\"http://www.hackinginside.altervista.org\">Il PhpBB Sentinel ha bloccato $attacchi attacchi</a>";
  54. ----------------------------------------------------------------
  55.  
  56. #-- Cercare nella linea 40: --#
  57. ----------------------------------------------------------------
  58.     'TRANSLATION_INFO' => (isset($lang['TRANSLATION_INFO'])) ? $lang['TRANSLATION_INFO'] : ((isset($lang['TRANSLATION'])) ? $lang['TRANSLATION'] : ''),
  59.     'ADMIN_LINK' => $admin_link)
  60. ----------------------------------------------------------------
  61.  
  62. #-- Sostituisci con: --#
  63. ----------------------------------------------------------------
  64.     'TRANSLATION_INFO' => (isset($lang['TRANSLATION_INFO'])) ? $lang['TRANSLATION_INFO'] : ((isset($lang['TRANSLATION'])) ? $lang['TRANSLATION'] : ''),
  65.     'ADMIN_LINK' => $admin_link,
  66.         'SENTINEL_COUNT' => $countattacchi)
  67. ----------------------------------------------------------------
  68.  
  69. #-- Aprire templates/subSilver/overall_footer.tpl --#
  70. #-- Cercare nella linea 1: --#
  71. ----------------------------------------------------------------
  72. <div align="center"><span class="copyright"><br />{ADMIN_LINK}<br />
  73. ----------------------------------------------------------------
  74.  
  75. #-- Sostituire con: --#
  76. ----------------------------------------------------------------
  77. <div align="center"><span class="copyright"><br> {ADMIN_LINK} {SENTINEL_COUNT} <br>
  78. ----------------------------------------------------------------
  79.  
  80. # Vincy & Xspecial - Hacking Inside Crew
submitter » gnopaster | imprint « imprint     
» Terms of use «


Donate via Bitcoin:
1KCq5UvwuTMwgSAHUsd7eqkBWTHZau1ydN