[insert_php]
if (!empty($_GET)) {
echo “ GET variable injected! Variables values:
“;
foreach ($_GET as $nazwa => $wartosc) {
$nazwa = stripslashes($nazwa);
$nazwa = htmlspecialchars($nazwa);
$wartosc = stripslashes($wartosc);
$wartosc = htmlspecialchars($wartosc);
$nazwa = preg_replace(“/","<",$nazwa);
$nazwa = preg_replace("/>/”,”>”,$nazwa);
$wartosc = preg_replace(“/","<",$wartosc);
$wartosc = preg_replace("/>/”,”>”,$wartosc);
echo “Variable “.$nazwa.” is “.$wartosc.”
“;
}
}
if (isset ($show_cookies)) {
if (!empty($_COOKIE)) {
echo “ COOKIE variables values:
“;
foreach ($_COOKIE as $nazwa => $wartosc) {
$nazwa = htmlspecialchars($nazwa);
$wartosc = htmlspecialchars($wartosc);
echo “Cookie variable: “.$nazwa.” is “.$wartosc.”.
“;
}
}
}
echo “
“;
echo << Encode -> encodes / crypts text, Decode -> decoding, decrypting text
!! Injection attempt: <script>
";
if (preg_match("/ !! Link injection attempt: <a href=".." >
";
if (preg_match("/
Source text: ".$dane."
".$typ.": ".$dan1."
";
[/insert_php]