Files
random-pentest-scripts-and-…/fish_functions/enter_pentest.fish
Pyro57000 1f62a92522 Create enter_pentest.fish
for entering and logging distroboxes for pentests
2024-05-29 18:28:28 +00:00

18 lines
769 B
Fish

function enter_pentest
if test $(count $argv) = 1
echo "logging enabled"
distrobox enter --root $argv[1] -- script -a -B /pentest/working/terminal.log
else if test $(count $argv) = 2
echo "logging disabled"
distrobox enter --root $argv[1]
else
echo "USAGE:"
echo "To start a distrobox with the terminal commands and outputs being logged:"
echo "enter_pentest distrobox_name ex: enter_pentest atarchbox_template"
echo ""
echo "To start a distrobox without terminal commands and outputs being logged:"
echo "enter_pentest distrobox_name n "
echo "if logging is enabled, the log will be saved to /pentest/working/terminal.log"
end
end