From 071abf6e95ce5ce85c682afa19557f22ecac0f4e Mon Sep 17 00:00:00 2001 From: 0i41E <79219148+0i41E@users.noreply.github.com> Date: Tue, 30 Jul 2024 12:05:38 +0200 Subject: [PATCH 1/2] Uploaded AirBridge --- payloads/general/AirBridge/payload | 61 ++++++++++++++++++++++++++++ payloads/general/AirBridge/readme.md | 33 +++++++++++++++ 2 files changed, 94 insertions(+) create mode 100644 payloads/general/AirBridge/payload create mode 100644 payloads/general/AirBridge/readme.md diff --git a/payloads/general/AirBridge/payload b/payloads/general/AirBridge/payload new file mode 100644 index 0000000..23965ce --- /dev/null +++ b/payloads/general/AirBridge/payload @@ -0,0 +1,61 @@ +#!/bin/bash + +# Title: AirBridge +# Author: 0i41E +# +# Description: A payload to enable WiFi on the Squirrel, when a WiFi Adapter is attached. + +# Requirements beforehand: opkg update && opkg install usb-modeswitch, MK7AC Module or similar WiFi Adapter. +# Usage: Connect with payload switch selected, and wait for the magenta LED, insert WiFi adapter, press button. + +# Set Network mode +NETMODE BRIDGE +# Starting SSH & Web Interface +SSH_START +UI_START + +LED M FAST + +BUTTON + +LED G FAST + +SSID="" # Station SSID +PASSPHRASE="" # Passphrase +EXTERNAL_HOST="8.8.8.8" # Host to verify connection +WLAN_INTERFACE="wlan0" + +# Removing old wpa_supplicant.conf file +rm /etc/wpa_supplicant.conf + +# Check if wlan interface is up +if ! ip link show $WLAN_INTERFACE | grep -q "state UP"; then + ip link set $WLAN_INTERFACE +else + echo "$WLAN_INTERFACE is already up." +fi + +# Create wpa_supplicant.conf file +cat > /etc/wpa_supplicant.conf < Date: Tue, 30 Jul 2024 12:08:45 +0200 Subject: [PATCH 2/2] Update readme.md --- payloads/general/AirBridge/readme.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/payloads/general/AirBridge/readme.md b/payloads/general/AirBridge/readme.md index b5035a8..8bb3b52 100644 --- a/payloads/general/AirBridge/readme.md +++ b/payloads/general/AirBridge/readme.md @@ -3,8 +3,9 @@ #### Author: 0i41E **AirBridge** is a payload designed for the [Package Squirrel MK II](https://shop.hak5.org/products/packet-squirrel-mark-ii) in combination with Hak5's [MK7AC Module](https://shop.hak5.org/products/mk7ac-wifi-adapter), or similar WiFi adapters. It is meant to help users to overcome a potential airgapped network, by utilizing the WiFi adapter to connect to a nearby Station. +![airbridge](https://github.com/user-attachments/assets/592a7a8d-9a4e-4050-b04c-c7ff31480f2d) + Since it'll start the SSH service, as well as the Web interface, users can then interact with the Squirrel as usual. C2 access or conection to a VPN are also possible afterwards. -BILD ## Preperation Before deploying the Squirrel as also the payload, the user has to update the system and install `usb_modeswitch`, as without it, the WiFi adpater will be identified as storage. For this step, internet access is required. @@ -26,6 +27,7 @@ After saving the payload, put the switch into the correct position and power up After successfully booting, a blinking LED in the color magenta, will indicate the Squirrel being ready to proceed. Plug in your WiFi adapter via USB-A and press the button. *This method was implemented intentionally, as during testing it caused problems to power up the device with the AC Module already attached.* + The LED will start blinking green. A solid green LED will indicate the success. Otherwise, a red LED will appear.