From 1f62a92522a53ee2a44c026ecbd4554ad20bb4c2 Mon Sep 17 00:00:00 2001 From: Pyro57000 <147988717+Pyro57000@users.noreply.github.com> Date: Wed, 29 May 2024 18:28:28 +0000 Subject: [PATCH] Create enter_pentest.fish for entering and logging distroboxes for pentests --- fish_functions/enter_pentest.fish | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 fish_functions/enter_pentest.fish diff --git a/fish_functions/enter_pentest.fish b/fish_functions/enter_pentest.fish new file mode 100644 index 0000000..bd910d0 --- /dev/null +++ b/fish_functions/enter_pentest.fish @@ -0,0 +1,17 @@ +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