0
I am creating a PHP application for login authentication:
$phpsessid = 'SID: ".SID."<br>session_id(): ".session_id()."<br>COOKIE: ".$_COOKIE["PHPSESSID"]';
file_put_contents("$ip","$phpsessid");
$m = "localhost/'.$ip.'";
$res = file_get_contents("$m");
$title=@$this->stribet($res,'SID:','<br>');
}
the $phpsessid
will contain the data, time, IP, logged in account, time, etc.
How do I check an IP at login time? For example:
IP=>Conta=>PHPSESSID
Just be careful 'cause
curl -H "HTTP_X_FORWARDED_FOR: '; DROP TABLE logins; --"
.– Gustavo Rodrigues