Create enter_pentest.fish
for entering and logging distroboxes for pentests
This commit is contained in:
17
fish_functions/enter_pentest.fish
Normal file
17
fish_functions/enter_pentest.fish
Normal file
@@ -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
|
||||||
Reference in New Issue
Block a user