mirror of
https://github.com/kforney/pentest-distro-builder.git
synced 2024-11-22 01:50:56 -07:00
CLI options functional.
This commit is contained in:
parent
57b9323b2e
commit
d855f8a752
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