- Download and image sticky-fingers-re4son-image to the Pi.
- Copy the following scripts:
update apt_update apt_get_update aptitude_update
to/usr/local/bin
- Copy the following scripts:
start_tightvncserver.sh start_x11vncserver.sh
to/root/data/
- copy the following the contents of :
Backgrounds/
to~/Backgrounds
- Set up WiFi connection to 'iPhone' using HDMI Screen
- remove
tigervnc
using:apt-get remove tigervnc-common tigervnc-standalone-server
- Setup re4son kernel:
This file contains hidden or 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
#!/bin/bash | |
echo "[+] Installing XFCE4, this will take a while" | |
sudo apt update | |
sudo apt dist-upgrade -y --force-yes | |
sudo apt --yes --force-yes install kali-desktop-xfce xorg xrdp | |
echo "[+] Configuring XRDP to listen on port 3390 (but not starting the service)..." | |
echo "[+] To start the service run: sudo /etc/init.d/xrdp start" | |
sudo sed -i 's/port=3389/port=3390/g' /etc/xrdp/xrdp.ini | |
sudo echo "alias startx=\"sudo /etc/init.d/xrdp start\"" > ~/.bash_aliases | |
sudo echo "alias stopx=\"sudo /etc/init.d/xrdp stop\"" > ~/.bash_aliases |
This file contains hidden or 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
# see: https://askubuntu.com/a/954348/552275 | |
wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add - | |
# Stable Channel | |
echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list | |
# Dev Channel | |
# echo "deb https://download.sublimetext.com/ apt/dev/" | sudo tee /etc/apt/sources.list.d/sublime-text.list |
This file contains hidden or 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
#!/bin/bash | |
HTTP_PORT=8000 | |
HTTPS_PORT=8443 | |
ipaddr="$(hostname -I | cut -d ' ' -f1)" | |
/etc/init.d/fruitywifi restart && /etc/init.d/php7.0-fpm restart | |
sudo fuser -k "$HTTP_PORT"/tcp &>/dev/null | |
sudo fuser -k "$HTTPS_PORT"/tcp &>/dev/null |
This file contains hidden or 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
#!/bin/bash | |
if [ "$(id -u)" != "0" ]; then | |
exec sudo "$0" "$@" | |
fi | |
ssid="" # Enter SSID of WiFi | |
passwd="" # Enter Password of Given WiFi SSID | |
interface="wlan0" | |
wpa_conf="/etc/wpa_supplicant/wpa_supplicant.conf" |
This file contains hidden or 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
#!/bin/bash | |
#see: http://alexba.in/blog/2015/01/14/automatically-reconnecting-wifi-on-a-raspberrypi/ | |
# The IP for the server you wish to ping (8.8.8.8 is a public Google DNS server) | |
SERVER=8.8.8.8 | |
#specify wlan interface | |
INTERFACE=wlan0 | |
# Only send two pings, sending output to /dev/null | |
ping -I ${INTERFACE} -c2 ${SERVER} > /dev/null |
This file contains hidden or 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
#!/bin/bash | |
# Installs/updates re4son-kernel for Raspberry Pi 2/3 | |
# see: https://re4son-kernel.com/re4son-pi-kernel/ | |
x="/usr/local/src" | |
rm -rf "${x:?}"/* | |
wget -O "$x"/re4son-kernel_current.tar.xz https://re4son-kernel.com/download/re4son-kernel-current/ | |
tar -xJf "$x"/re4son-kernel_current.tar.xz -C "$x" |
This file contains hidden or 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
#!/bin/bash | |
# Uncomment a string within a given file | |
# $FILE is the targeted file | |
# $KEY is the string that is currently commented '#' (String must contain '#' or else 'sed' will return '1') | |
uncomment_str() { | |
FILE="$1" | |
KEY="$2" | |
sed -i "$FILE" -e "/$KEY/s/#//g" |
This file contains hidden or 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
netsh int ip reset |
This file contains hidden or 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
#!/bin/bash | |
# To install use the following snippet: | |
# curl -s <url-to-raw-gist> | bash | |
TARGET="/tmp/" | |
wget -q -O - archive.kali.org/archive-key.asc | apt-key add | |
apt update && apt upgrade -y && apt dist-upgrade -y && apt autoremove -y | |
if [ -f /media/cdrom/VBoxLinuxAdditions.run ]; then |