mirror of
https://github.com/kforney/pentest-distro-builder.git
synced 2024-12-24 07:44:59 -07:00
Add CLI options for use with unattended builds.
Former-commit-id: 57b9323b2e
Former-commit-id: ac82de30f8840b34434ec54534e588700e33c21e
This commit is contained in:
parent
c727276667
commit
6b31cbf0cc
1 changed files with 17 additions and 0 deletions
17
runme.sh
17
runme.sh
|
@ -11,6 +11,19 @@ then
|
|||
exit 1
|
||||
fi
|
||||
|
||||
#Argument check!
|
||||
|
||||
while getopts ud:r: option
|
||||
do
|
||||
case "${option}" in
|
||||
u) UNATTEND=true;;
|
||||
d) DESKTOP=${OPTARG};;
|
||||
r) REPO=${OPTARG};;
|
||||
esac
|
||||
done
|
||||
|
||||
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)
|
||||
|
@ -44,6 +57,7 @@ else
|
|||
whiptail --backtitle "Pentest Build Script" --title "OK" --msgbox "This script will now terminate." 8 35
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
#This is the stuff that's common to both distros
|
||||
dpkg-name ./debs/*.deb
|
||||
|
@ -89,6 +103,9 @@ Parrot)
|
|||
;;
|
||||
esac
|
||||
|
||||
if [ $UNATTEND != "true" ];
|
||||
then
|
||||
whiptail --backtitle "Pentest Build Script" --title "Finished" --msgbox "Fingers crossed there were no errors... Your image should be done!" 7 70
|
||||
fi
|
||||
|
||||
exit 0
|
||||
|
|
Loading…
Reference in a new issue