mirror of
https://github.com/nettitude/xss_payloads.git
synced 2024-11-24 21:23:08 +00:00
Added referer
This commit is contained in:
parent
6e4b5b6126
commit
6607f04541
1 changed files with 5 additions and 2 deletions
|
@ -30,7 +30,7 @@
|
||||||
$db_host = 'localhost';
|
$db_host = 'localhost';
|
||||||
|
|
||||||
// Use this SQL to set up the DB
|
// Use this SQL to set up the DB
|
||||||
// CREATE TABLE log ( id int NOT NULL AUTO_INCREMENT, logtime DATETIME, method varchar(10), pageurl varchar(255), scripturl varchar(255), cookies varchar(255), useragent varchar(255), userip varchar(20), html TEXT, PRIMARY KEY (id) )
|
// CREATE TABLE log ( id int NOT NULL AUTO_INCREMENT, logtime DATETIME, method varchar(10), pageurl varchar(255), scripturl varchar(255), referer varchar(255), cookies varchar(255), useragent varchar(255), userip varchar(20), html TEXT, PRIMARY KEY (id) )
|
||||||
|
|
||||||
$url = 'http';
|
$url = 'http';
|
||||||
if( !empty( $_SERVER['HTTPS'] ) ){
|
if( !empty( $_SERVER['HTTPS'] ) ){
|
||||||
|
@ -114,6 +114,9 @@
|
||||||
// URL of the script itself
|
// URL of the script itself
|
||||||
$info->scripturl = $url;
|
$info->scripturl = $url;
|
||||||
|
|
||||||
|
// Referer
|
||||||
|
$info->referer = $_SERVER['HTTP_REFERER'];
|
||||||
|
|
||||||
// User's user agent
|
// User's user agent
|
||||||
$info->useragent = $_SERVER['HTTP_USER_AGENT'];
|
$info->useragent = $_SERVER['HTTP_USER_AGENT'];
|
||||||
|
|
||||||
|
@ -124,7 +127,7 @@
|
||||||
|
|
||||||
$info->logtime = date('Y-m-d H:i:s');
|
$info->logtime = date('Y-m-d H:i:s');
|
||||||
|
|
||||||
$aProperties = array( 'logtime', 'method', 'pageurl', 'scripturl', 'cookies', 'useragent', 'userip', 'html' );
|
$aProperties = array( 'logtime', 'method', 'pageurl', 'scripturl', 'referer', 'cookies', 'useragent', 'userip', 'html' );
|
||||||
|
|
||||||
// Log this request
|
// Log this request
|
||||||
if( $logging == 'file' ){
|
if( $logging == 'file' ){
|
||||||
|
|
Loading…
Reference in a new issue