Last active
June 20, 2022 13:38
-
-
Save PalinuroSec/7a91f2f9b080d7f0a6ea995036baa59e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
EDITION=$1 | |
ARCH=$2 | |
VERSION=$3 | |
for EDITION in core home security; do | |
for ARCH in arm64 armhf; do | |
debootstrap --arch=$ARCH --components=main,contrib,non-free --include=gnupg2,nano,base-files parrot $EDITION-$ARCH https://deb.parrot.sh/direct/parrot/ | |
mount --bind /dev $EDITION-$ARCH/dev | |
mount --bind /proc $EDITION-$ARCH/proc | |
mount --bind /sys $EDITION-$ARCH/sys | |
mount --bind /run $EDITION-$ARCH/run | |
export DEBIAN_FRONTEND=noninteractive | |
chroot $EDITION-$ARCH -- apt update | |
chroot $EDITION-$ARCH -- apt -y install parrot-core | |
chroot $EDITION-$ARCH -- apt update | |
chroot $EDITION-$ARCH -- apt -y install ca-certificates pciutils usbutils iw mdadm parted bash-completion rng-tools5 haveged inxi neofetch htop nload iftop | |
chroot $EDITION-$ARCH -- apt -y install openssh-server sudo network-manager cloud-guest-utils firmware-brcm80211 raspi-config | |
if [ $ARCH == "arm64" ]; then | |
chroot $EDITION-$ARCH -- apt -y install raspberrypi-kernel raspberrypi-kernel-headers raspberrypi-bootloader raspi3-firmware | |
fi | |
if [ $ARCH == "armhf" ]; then | |
chroot $EDITION-$ARCH -- apt -y install raspberrypi-kernel raspberrypi-kernel-headers raspberrypi-bootloader raspi-firmware | |
fi | |
if [ $EDITION == "home"] || [ $EDITION == "security"]; then | |
chroot $EDITION-$ARCH -- apt -y install parrot-desktop-mate chromium- mate-user-guide- pocketsphinx-en-us- libreoffice-help-en-us- mythes-en-us- libreoffice-help-common- espeak-ng-data- | |
fi | |
if [ $EDITION == "security"]; then | |
chroot $EDITION-$ARCH -- apt -y install parrot-tools-automotive parrot-tools-cloud parrot-tools-infogathering parrot-tools-maintain parrot-tools-password parrot-tools-postexploit parrot-tools-pwn parrot-tools-sniff parrot-tools-vuln parrot-tools-web parrot-tools-wireless | |
fi | |
umount $EDITION-$ARCH/dev | |
umount $EDITION-$ARCH/proc | |
umount $EDITION-$ARCH/sys | |
umount $EDITION-$ARCH/run | |
rm -rf $EDITION-$ARCH/var/cache/apt/* $EDITION-$ARCH/var/lib/apt/lists/* | |
rm -rf $EDITION-$ARCH/var/cache/apt/* $EDITION-$ARCH/var/cache/apt/archives/* | |
tar cvf - $EDITION-$ARCH | xz -q -c --best --extreme - > Parrot-${EDITION}-${VERSION}_${ARCH}.tar.xz | |
done | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment