mirror of
https://github.com/kforney/pentest-distro-builder.git
synced 2024-11-21 17:40:57 -07:00
CLI options functional.
Former-commit-id: d855f8a752
Former-commit-id: 5651fe34d260b125ca58f2683648ea62a9a9e453
This commit is contained in:
parent
6b31cbf0cc
commit
9ede0f6f13
1 changed files with 36 additions and 35 deletions
13
runme.sh
13
runme.sh
|
@ -11,23 +11,24 @@ then
|
|||
exit 1
|
||||
fi
|
||||
|
||||
#Argument check!
|
||||
#Arguments
|
||||
|
||||
|
||||
while getopts ud:r: option
|
||||
do
|
||||
case "${option}" in
|
||||
u) UNATTEND=true;;
|
||||
d) DESKTOP=${OPTARG};;
|
||||
r) REPO=${OPTARG};;
|
||||
u) UNATTEND="true" && echo "UNATTEND";;
|
||||
d) DESKTOP=${OPTARG} && echo $DESKTOP;;
|
||||
r) REPO=${OPTARG} && echo $REPO;;
|
||||
esac
|
||||
done
|
||||
|
||||
DISTRO=$(lsb_release -i -s)
|
||||
|
||||
if [ $UNATTEND != "true" ];
|
||||
then
|
||||
whiptail --backtitle "Pentest Build Script" --title "Welcome" --msgbox "This script will help you build a custom pentesting distribution." 7 70
|
||||
|
||||
DISTRO=$(lsb_release -i -s)
|
||||
|
||||
DESKTOP=$(whiptail --backtitle "Pentest Build Script" --title "Desktop Environment" --menu "Choose a desktop:" 15 50 6 \
|
||||
"gnome" "GNOME Desktop Environment" \
|
||||
"mate" "MATE Advanced Traditional Environment" \
|
||||
|
|
Loading…
Reference in a new issue