• Regolamento Macrocategoria DEV
    Prima di aprire un topic nella Macrocategoria DEV, è bene leggerne il suo regolamento. Sei un'azienda o un hosting/provider? Qui sono anche contenute informazioni per collaborare con Sciax2 ed ottenere l'accredito nella nostra community!

[REL] Sentinel PhpBB v1.0

Delta

Utente Master
Autore del topic
11 Aprile 2007
2.499
60
Miglior risposta
0
Ecco Qui sentinel php Per PhpBB Ma Nn solo.. è adatabbile anche ad altri cms che hanno

un file in comune con tutti..

come lo integrate?

facile prendete un file che viene incluso in tutti i file del phpbb in questo caso

config. php.. aprite config..

e dopo <? mettete include("Destinazione sentinel");
Salvate ed ecco avete

un sentinel.. quindi se qualke attac come RFI xss verrà bloccato e loggato

in attacchi.html :-P

e verrà redirectato In una pagina Di blocco.php
<?php
$stringa = $_SERVER['QUERY_STRING'];
$data = date("d/m/y");
$ora = date("G:i:s");
$os = getos($_SERVER['HTTP_USER_AGENT']);
$browser = getbrowser($_SERVER['HTTP_USER_AGENT']);
function getbrowser($usr_ag)
{
if (stristr($usr_ag,"IE"))
$brw = "Internet Explorer";
else if (stristr($usr_ag,"Firefox"))
$brw = "Mozzilla Firefox";
else if (stristr($usr_ag,"Opera"))
$brw = "Opera";
else
$brw = "Sconosciuto";
return $brw;
}
function getos($usr_ag)
{
if (stristr($usr_ag,"Windows"))
$os = "Windows XP or Vista";
else if (stristr($usr_ag,"Linux"))
$os = "Linux";
else if (stristr($usr_ag,"MAC"))
$os = "Mac";
else
$os = "Sconosciuto";
return $os;
}
$host = $_SERVER['HTTP_HOST'];
$file = $_SERVER['PHP_SELF'];
$path = "$host$file?$stringa";
$ip = $_SERVER['REMOTE_ADDR'];
$maligno1 = 'http';
$maligno2 = 'www.';
$maligno3 = 'script';
$maligno4 = 'FROM';
$maligno5 = 'SELECT';
$maligno6 = 'WHERE';
$maligno7 = 'UNION';
$maligno8 = 'phpbb_';
$maligno9 = 'ftp';
$maligno10 = 'https';
$maligno11 = '.jpg';
$finder_maligno1 = eregi($maligno1, $stringa);
$finder_maligno2 = eregi($maligno2, $stringa);
$finder_maligno3 = eregi($maligno3, $stringa);
$finder_maligno4 = eregi($maligno4, $stringa);
$finder_maligno5 = eregi($maligno5, $stringa);
$finder_maligno6 = eregi($maligno6, $stringa);
$finder_maligno7 = eregi($maligno7, $stringa);
$finder_maligno8 = eregi($maligno8, $stringa);
$finder_maligno9 = eregi($maligno9, $stringa);
$finder_maligno10 = eregi($maligno10, $stringa);
$finder_maligno11 = eregi($maligno11, $stringa);
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 OR $finder_maligno11 >= 1) {
$var = fopen('attacchi.html', 'a');
fwrite($var, ' <html> <br>Attacco: '.$path. ' </b> <br> IP: ' .$ip. '<br> Data: ' .$data. '<br> Ora: ' .$ora. ' <br> OS: ' .$os. ' <br> Browser: ' .$browser. ' <br> <b> <a href="elimina.php">Elimina Il FIle Attacchi </b>');
fclose($var);
header("location: /blocco.php");
die();
}
?>
Blocco.php
<HTML>
<HEAD>
<center><FONT SIZE=6 COLOR="#FF0000" FACE="TAHOMA" >Tentativo D'attacco Bloccato!</FONT></center>
<title>Blocked!</title>
<P align=center><img src="http://img182.imageshack.us/img182/1516/seytanserserip4fk4.jpg"><BR>
<BR>
<BODY bgcolor="black"><FONT SIZE=3 COLOR="#FF0000" FACE="TAHOMA">
Il Tuo IP è stato loggato <BR>
<?
$ip = $_SERVER['REMOTE_ADDR'];
echo : '.$ip.' ?><center>
<BR>
phpBB Sentinel m0ds ImMortalCla <BR></center>

<script type="text/javascript" src="http://adv.helloweb.eu/script.js"></script></BODY>
</HTML>
</HEAD>
 
Ultima modifica:
Non è una DEV poichè i codici ci sono.

Rinomino e sposto.