From 5bdc0daa5ef406aef3b12bc30bc5eb1c53670e5a Mon Sep 17 00:00:00 2001 From: Just Call Me Koko Date: Sun, 26 Nov 2023 14:49:03 -0500 Subject: [PATCH] Add samsung BLE spam cmd --- esp32_marauder/CommandLine.cpp | 13 +++++++++++++ esp32_marauder/CommandLine.h | 2 ++ 2 files changed, 15 insertions(+) diff --git a/esp32_marauder/CommandLine.cpp b/esp32_marauder/CommandLine.cpp index b5a10c672..4b05f2a12 100644 --- a/esp32_marauder/CommandLine.cpp +++ b/esp32_marauder/CommandLine.cpp @@ -251,6 +251,7 @@ void CommandLine::runCommand(String input) { Serial.println(HELP_BT_SNIFF_CMD); Serial.println(HELP_BT_SOUR_APPLE_CMD); Serial.println(HELP_BT_SWIFTPAIR_SPAM_CMD); + Serial.println(HELP_BT_SAMSUNG_SPAM_CMD); Serial.println(HELP_BT_SPAM_ALL_CMD); #ifdef HAS_GPS Serial.println(HELP_BT_WARDRIVE_CMD); @@ -814,6 +815,18 @@ void CommandLine::runCommand(String input) { Serial.println("Bluetooth not supported"); #endif } + else if (cmd_args.get(0) == BT_SAMSUNG_SPAM_CMD) { + #ifdef HAS_BT + Serial.println("Starting Samsung Spam attack. Stop with " + (String)STOPSCAN_CMD); + #ifdef HAS_SCREEN + display_obj.clearScreen(); + menu_function_obj.drawStatusBar(); + #endif + wifi_scan_obj.StartScan(BT_ATTACK_SAMSUNG_SPAM, TFT_CYAN); + #else + Serial.println("Bluetooth not supported"); + #endif + } else if (cmd_args.get(0) == BT_SPAM_ALL_CMD) { #ifdef HAS_BT Serial.println("Starting BT Spam All attack. Stop with " + (String)STOPSCAN_CMD); diff --git a/esp32_marauder/CommandLine.h b/esp32_marauder/CommandLine.h index c1023b5b2..90b978d85 100644 --- a/esp32_marauder/CommandLine.h +++ b/esp32_marauder/CommandLine.h @@ -79,6 +79,7 @@ const char PROGMEM SSID_CMD[] = "ssid"; const char PROGMEM BT_SNIFF_CMD[] = "sniffbt"; const char PROGMEM BT_SOUR_APPLE_CMD[] = "sourapple"; const char PROGMEM BT_SWIFTPAIR_SPAM_CMD[] = "swiftpair"; +const char PROGMEM BT_SAMSUNG_SPAM_CMD[] = "samsungblespam"; const char PROGMEM BT_SPAM_ALL_CMD[] = "btspamall"; const char PROGMEM BT_WARDRIVE_CMD[] = "btwardrive"; const char PROGMEM BT_SKIM_CMD[] = "sniffskim"; @@ -127,6 +128,7 @@ const char PROGMEM HELP_SSID_CMD_B[] = "ssid -r "; const char PROGMEM HELP_BT_SNIFF_CMD[] = "sniffbt"; const char PROGMEM HELP_BT_SOUR_APPLE_CMD[] = "sourapple"; const char PROGMEM HELP_BT_SWIFTPAIR_SPAM_CMD[] = "swiftpair"; +const char PROGMEM HELP_BT_SAMSUNG_SPAM_CMD[] = "samsungblespam"; const char PROGMEM HELP_BT_SPAM_ALL_CMD[] = "btspamall"; const char PROGMEM HELP_BT_WARDRIVE_CMD[] = "btwardrive [-c]"; const char PROGMEM HELP_BT_SKIM_CMD[] = "sniffskim";