├── Payloads ├── adsb-installer.txt ├── sdr-installer.txt └── sdr-uninstaller.txt └── README.md /Payloads/adsb-installer.txt: -------------------------------------------------------------------------------- 1 | # Title: Key Croc ADSB Server Setup 2 | # Description: Installs and configures dump1090 and sets up a service to run on boot 3 | # Author: GlytchTech 4 | # Version: 1.0 5 | # Category: Key Croc 6 | # 7 | # 8 | MATCH install dump1090 9 | LED SETUP 10 | QUACK ENTER 11 | QUACK STRING Installing prereqs 12 | QUACK ENTER 13 | apt update 14 | apt install -y librtlsdr0 librtlsdr-dev pkg-config && QUACK STRING Success || QUACK STRING failed 15 | QUACK STRING Cloning and making repo 16 | QUACK ENTER 17 | git clone https://github.com/antirez/dump1090.git /opt/dump1090 18 | cd /opt/dump1090/ 19 | make 20 | if [ -f /opt/dump1090/dump1090 ]; then 21 | QUACK String Success 22 | QUACK ENTER 23 | QUACK STRING Creating service file 24 | QUACK ENTER 25 | cat << EOF > /etc/systemd/system/adsb.service 26 | [Unit] 27 | Description=ADS-B Server 28 | 29 | Wants=network-online.target 30 | After=network-online.target 31 | 32 | [Service] 33 | 34 | ExecStartPre=/bin/sleep 15 35 | ExecStart=/opt/dump1090/dump1090 --interactive --net --aggressive 36 | WorkingDirectory=/opt/dump1090/ 37 | StandardOutput=inherit 38 | StandardError=inherit 39 | Restart=always 40 | 41 | [Install] 42 | WantedBy=multi-user.target 43 | EOF 44 | QUACK STRING Enabling Service 45 | QUACK ENTER 46 | systemctl start adsb 47 | systemctl enable adsb 48 | QUACK STRING Done 49 | else 50 | QUACK STRING git clone and make failed 51 | QUACK ENTER 52 | fi 53 | LED FINISH 54 | -------------------------------------------------------------------------------- /Payloads/sdr-installer.txt: -------------------------------------------------------------------------------- 1 | # Title: Key Croc RTL-SDR Server Setup 2 | # Description: Installs and configures RTL-SDR and an rtl_tcp service to run on boot 3 | # Author: GlytchTech 4 | # Version: 1.0 5 | # Category: Key Croc 6 | # 7 | # 8 | MATCH install 9 | LED SETUP 10 | QUACK ENTER 11 | QUACK STRING Checking for rtl-sdr 12 | QUACK ENTER 13 | if ! [ "$(command -v rtl_sdr)" ]; then 14 | QUACK STRING Installing rtl-sdr 15 | QUACK ENTER 16 | apt update 17 | apt install -y rtl-sdr && QUACK STRING Success || QUACK STRING failed 18 | QUACK ENTER 19 | QUACK STRING Configuring Service 20 | QUACK ENTER 21 | cat << EOF > /etc/systemd/system/rtlsdr.service 22 | [Unit] 23 | Description=RTL-SDR Server 24 | 25 | Wants=network-online.target 26 | After=network-online.target 27 | 28 | [Service] 29 | 30 | ExecStartPre=/bin/sleep 15 31 | ExecStart=/bin/sh -c '/usr/bin/rtl_tcp -a $(hostname -I)' 32 | WorkingDirectory=/home/ 33 | StandardOutput=inherit 34 | StandardError=inherit 35 | Restart=always 36 | 37 | [Install] 38 | WantedBy=multi-user.target 39 | EOF 40 | QUACK STRING Enabling Service 41 | QUACK ENTER 42 | systemctl start rtlsdr 43 | systemctl enable rtlsdr 44 | QUACK STRING Done 45 | else 46 | QUACK STRING rtl-sdr already installed 47 | QUACK ENTER 48 | fi 49 | LED FINISH 50 | -------------------------------------------------------------------------------- /Payloads/sdr-uninstaller.txt: -------------------------------------------------------------------------------- 1 | # Title: Key Croc RTL-SDR Server Remover 2 | # Description: Uninstalls and unconfigures RTL-SDR and an rtl_tcp service to run on boot 3 | # Author: GlytchTech 4 | # Version: 1.0 5 | # Category: Key Croc 6 | # 7 | # 8 | MATCH remove 9 | LED SETUP 10 | QUACK ENTER 11 | QUACK STRING Checking for rtl-sdr 12 | QUACK ENTER\ 13 | QUACK STRING Uninstalling rtl-sdr 14 | QUACK ENTER 15 | apt remove -y rtl-sdr && QUACK STRING Success || QUACK STRING failed 16 | QUACK ENTER 17 | QUACK STRING Disabling Service 18 | QUACK ENTER 19 | systemctl stop rtlsdr 20 | systemctl disable rtlsdr 21 | QUACK STRING Unconfiguring Service 22 | QUACK ENTER 23 | rm /etc/systemd/system/rtlsdr.service 24 | QUACK STRING Done 25 | LED FINISH -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Key-Croc 2 | 3 | All of Glytch's projects and payloads involving the Hak5 Key Croc. 4 | --------------------------------------------------------------------------------