-
Notifications
You must be signed in to change notification settings - Fork 132
Open
Labels
enhancementNew feature or requestNew feature or request
Milestone
Description
moonwalk does not seem to clear track in bash session when it used in bash session which contains trap with DEBUG mode
Step to reproduce
Put the command logger in ~/.bashrc:
#!/bin/sh
debug_poc() {
echo "$USER($UID:$GROUPS) ran $BASH_COMMAND" >> /tmp/commands.log
}
trap debug_poc DEBUGAnd try moonwalk in a bash session:
$ sudo moonwalk start
$ echo "in mw"
$ sudo moonwalk finishNow let's see if our tracks were cleared:
$ cat /tmp/commands.log
kali(1000:1000) ran sudo moonwalk start
kali(1000:1000) ran echo "in mw"
kali(1000:1000) ran sudo moonwalk finishReactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request