Linux clearing tracks
#Metasploit clean up loot file

Use the
Cleanup RC File
# Cleanup Meterpreter RC File:
cat /root/.msf4/logs/persistence/ATTACKDEFENSE_20230429.0454/ATTACKDEFENSE_20230429.0454.rc

background
sessions 1
resource /root/.msf4/logs/persistence/ATTACKDEFENSE_20230429.1019/ATTACKDEFENSE_20230429.

#Linux
cd /tmp
# Upload exploit into this /tmp directory
bash
history logs the activity and the used commandsTo clear the
bash history
history -c

~/.bash_history
file content can be deleted too
cat /dev/null > ~/.bash_history

When using Metasploit Framework exploits, proceed manually to clear artifacts from the
/tmp
directory or other used directories.
Last updated