From cd7304f29c19ef98eb9e29e4d759f94bd4aa8730 Mon Sep 17 00:00:00 2001 From: Stacey Sharp Date: Thu, 29 Jul 2021 15:28:29 -0400 Subject: [PATCH] Added PFE. Updated error codes. --- AmRRON-Setup-Script.sh | 65 +++++++++++++++++++++++++++++++++++++++--- 1 file changed, 61 insertions(+), 4 deletions(-) diff --git a/AmRRON-Setup-Script.sh b/AmRRON-Setup-Script.sh index 6ea54d1..f184eb9 100755 --- a/AmRRON-Setup-Script.sh +++ b/AmRRON-Setup-Script.sh @@ -245,6 +245,12 @@ if hash pte 2>/dev/null; then PTEVER="NOT INSTALLED" fi +if hash pfe 2>/dev/null; then + PFEVER="INSTALLED" + else + PFEVER="NOT INSTALLED" +fi + if hash wsjtx 2>/dev/null; then WSJTXVER="INSTALLED-v. Unknown" else @@ -1514,7 +1520,7 @@ Categories=Network;HamRadio;" > $HOME/Desktop/voacapgui.desktop || if [[ ! -f $USERDIR/icons/voacaplIcon.png ]]; then mkdir -p $USERDIR/icons && \ wget -P $USERDIR/icons/ -N https://www.qsl.net/hz1jw/voacapl/downloads/voacaplIcon.png || - { ERRCODE="Failed to icon image for PTE"; errors; } + { ERRCODE="Failed to icon image for VOACAPGUI"; errors; } fi fi @@ -1565,6 +1571,26 @@ works.mobi/ptepc/img/pte_icon.png || fi fi +if [[ -f $SECDIR/SSEFilePC/ssefencgui.jar ]]; then + +echo "[Desktop Entry] +Name=PFE +GenericName=Paranoia File Encrypter +Comment=File encrypter +Exec=pfe +Icon=$USERDIR/icons/pfe_icon.png +Terminal=false +Type=Application +Categories=Network;Security;" > $HOME/Desktop/PFE.desktop || +{ ERRCODE="Failed to create desktop icon for PFE"; errors; } + +if [[ ! -f $USERDIR/icons/pfe_icon.png ]]; then + mkdir -p $USERDIR/icons && wget --no-check-certificate -P $USERDIR/icons/ -N https://www.paranoia\ +works.mobi/ssefepc/img/pfe_icon.png || + { ERRCODE="Failed to icon image for PFE"; errors; } + fi +fi + if hash keepassxc; then echo "[Desktop Entry] @@ -2387,7 +2413,7 @@ EOF } -function pfe_install() { +function pte_install() { if ! hash java; then sudo apt-get install -y default-jre || @@ -2413,6 +2439,33 @@ chmod +x /tmp/pte && sudo mv /tmp/pte /usr/local/bin/pte || fi } + +function pfe_install() { + +if ! hash java; then +sudo apt-get install -y default-jre || +{ ERRCODE="Failed to get default-jre dependency for PFE"; errors; return; } +fi + +cd $SECDIR && wget -N http://www.paranoiaworks.mobi/download/files/SSEFilePC.zip || + { ERRCODE="Failed to download PFE"; errors; return; } + +unzip -o SSEFilePC.zip && rm SSEFilePC.zip || + { ERRCODE="Failed to unzip PFE"; errors; return; } + +if ! hash pfe 2>/dev/null; then + +cat > /tmp/pfe <> /tmp/failures @@ -2865,7 +2918,8 @@ yad --image=$DIR/images/corps-icon.png --center --checklist --print-column=2 --s false "FAIL2BAN" "Intrusion Prevention Software. Recommended" "${FAIL2BANVER}" \ false "KEEPASS" "KepassXC password manager" "${KEEPASSXCVER}" \ false "ICEWEASEL" "Firefox secure browser" "${ICEWEASELVER}" \ - false "PFE" "Paranoia Tools File Encrypter. Encrypt/Decrypt messages and perform Steganography" "${PTEVER}" \ + false "PTE" "Paranoia Tools Text Encryption. Encrypt/Decrypt messages and perform Steganography" "${PTEVER}" \ + false "PFE" "Paranoia Tools File Encrypter. Encrypt/Decrypt files" "${PFEVER}" \ false "GTKHASH" "GTK based file hash tool" "${GTKHASHVER}" \ false "GPA" "GNU Privacy Assist Key Manager" "${GPAVER}" \ false "VERACRYPT" "Disk/File Encryption. $NEWVC" "" \ @@ -2879,7 +2933,7 @@ yad --image=$DIR/images/corps-icon.png --center --checklist --print-column=2 --s rc=$? if [[ $rc == 2 ]]; then - securityArray=(FAIL2BAN KEEPASS ICEWEASEL PFE VERACRYPT BITMESSAGE HARDEN_SSH GTKHASH GPA) + securityArray=(FAIL2BAN KEEPASS ICEWEASEL PTE PFE VERACRYPT BITMESSAGE HARDEN_SSH GTKHASH GPA) for i in "${securityArray[@]}" do @@ -3349,6 +3403,9 @@ cat /tmp/results | yad --text-info --center \ HARDEN_SSH) echo "Hardening SSH and creating guide at $HOME/Documents" harden_ssh ;; + PTE) echo "Installing Paranoia Text Encrypter" + pte_install + ;; PFE) echo "Installing Paranoia File Encrypter" pfe_install ;;