From 8e9201d592f7f7d5b19549a37d8ad12b31b37c5b Mon Sep 17 00:00:00 2001 From: RTP/RightToPrivacy Date: Wed, 9 Feb 2022 22:44:02 +0000 Subject: [PATCH] adding tails-install script to allow users to install wipri to TailsOS (optional) . EOF --- readd.sh | 18 ++++++++++++++++++ tails-install.sh | 39 +++++++++++++++++++++++++++++++++++++++ wipri-setup.desktop | 6 ++++++ 3 files changed, 63 insertions(+) create mode 100755 readd.sh create mode 100755 tails-install.sh create mode 100644 wipri-setup.desktop diff --git a/readd.sh b/readd.sh new file mode 100755 index 0000000..160b443 --- /dev/null +++ b/readd.sh @@ -0,0 +1,18 @@ +#!/bin/bash +# +# to run every boot +# +# +wpdir=/home/amnesia/Persistent/scriptz/WiPri + +sudo cp $wpdir/wipri /usr/bin +sudo cp $wpdir/wipri-list /usr/bin +sudo chmod +x /usr/bin/wipri +sudo chmod +x /usr/bin/wipri-list +sudo mkdir /etc/wipri +sudo cp $wpdir/phone.OUI /etc/wipri +sudo cp $wpdir/final.OUI /etc/wipri +sudo cp $wpdir/wipri.service /etc/systemd/system +sudo systemctl daemon-reload +sudo systemctl enable wipri.service +sudo systemctl restart wipri.service diff --git a/tails-install.sh b/tails-install.sh new file mode 100755 index 0000000..d40eb53 --- /dev/null +++ b/tails-install.sh @@ -0,0 +1,39 @@ +#!/bin/bash +# +# For easy Tails setup (wipri) +# +# righttoprivacy[at]tutanota.com +# + +# VARIABLES +wpcmd='wipri -d wlan0 -p' # Default wipri command - wipri-list commands work too! + # if you use wipri-list be sure to create mac's for your list w/ -a flag$ +scriptsdir="/home/amnesia/Persistent/scriptz" + +# DOWNLOAD WIPRI + INITIAL SETUP +function dlwipri() { + cd /home/amnesia/Persistent + mkdir -p scriptz + cd scriptz + # below assumes you are running Tails (.onion) + git clone http://gg6zxtreajiijztyy5g6bt5o6l3qu32nrg7eulyemlhxwwl6enk6ghad.onion/RightToPrivacy/WiPri.git + cd WiPri + echo -e "You will be asked which command you wish to use" && sleep .5 + echo -e "wipri or wipri-list commands apply" && sleep .5 + echo -e "If you choose wipri-list be aware -a flag must be run to create mac list\n" && sleep .5 + read -p "What wipri or wipri-list command would you like to start at boot? " wpcmd + chmod +x install.sh + sudo ./install.sh -c "$wpcmd" + echo "This is command chosen for Persistence: \"$wpcmd\"" + cp readd.sh /home/amnesia/Persistent/scriptz/WiPri + chmod +x /home/amnesia/Persistent/scriptz/WiPri/readd.sh +} + +# MAIN FUNCTION +function main() { + echo "Now testing download wipri..." && sleep 1 + dlwipri +} + +# THIS SET OF SCRIPTS IS UNDER CONSTRUCTION BUT UPLOADED - WAIT FOR COMMENT REMOVAL. +main diff --git a/wipri-setup.desktop b/wipri-setup.desktop new file mode 100644 index 0000000..dcb4999 --- /dev/null +++ b/wipri-setup.desktop @@ -0,0 +1,6 @@ +[Desktop Entry] +Name=wipriMetaPri +Type=Application +Exec=/home/amnesia/Persistent/scriptz/WiPri/readd.sh +Terminal=false +X-GNOMe-Autostart-enabled=true