n0xa / m5stick-nemo

M5 Stick C firmware for high-tech pranks
Other
761 stars 157 forks source link

Samsung Spam (Easy Setup Spam) as requested in issue #154. #164

Closed danny8972 closed 4 months ago

danny8972 commented 5 months ago

full credits to Spooks4576 in this repository https://github.com/Spooks4576/Ghost_ESP/blob/main/src/components/ble_module/ble_module.h

Very much in progress builds fine on Arduino but I don't have any Samsung devices to test. Would love some help with that. Feedback is very welcome.

StingerFingersinmyass commented 5 months ago

Thank you for realizing my idea, I understand my issue can be closed. https://github.com/n0xa/m5stick-nemo/issues/154

StingerFingersinmyass commented 5 months ago

It works, only there is a snag when the notification appears: When the REAL device appears, "Device" appears at the top, but "ESP32" appears at the end: изображение_2024-05-03_205924708 . Maybe there is some way to make the sending a bit faster. Basically everything works.

danny8972 commented 5 months ago

Im a little confused by "REAL device" do you mean the ESP32 or you re-connecting with a legitimate Samsung watch and having continued problems.

StingerFingersinmyass commented 5 months ago

Im a little confused by "REAL device" do you mean the ESP32 or you re-connecting with a legitimate Samsung watch and having continued problems.

Btw, everything was working perfectly fine until some point, but then the messages stopped showing at all. Back to your question - yes, official devices have their own names depending on its type (Buds - " ", Watches - "Device").

StingerFingersinmyass commented 5 months ago

Maybe the problem lies in the code, because in fw Marauder for M5StickcPlus2 with M5Burner works perfectly honestly, you can try to compare your code and fw code here: https://github.com/ATOMNFT/M5stick-Marauder/blob/main/M5stickC%20Plus%201%20%26%202%20WiFi%20Marauder%200.13.10/WiFiScan.cpp https://github.com/ATOMNFT/M5stick-Marauder/blob/main/M5stickC%20Plus%201%20%26%202%20WiFi%20Marauder%200.13.10/WiFiScan.h

danny8972 commented 5 months ago

I think the reason the messages stop appearing lies in preventative measures taken by the Manufacturers to stop this attack. With marauder they have random MAC addresses which help bypass their measures. Random MAC has been added and will come out in the next release.

danny8972 commented 4 months ago

Just did a quick check over the code, I really can't understand why the ESP32 is advertising it's self especially since we initialize it to a blank string in this code

// Create the BLE Server BLEDevice::init(""); BLEServer *pServer = BLEDevice::createServer(); pAdvertising = pServer->getAdvertising(); BLEAdvertisementData oAdvertisementData = BLEAdvertisementData();

@n0xa Any Ideas for this weird behavior.

mxrxtr commented 4 months ago

Doesnt work

danny8972 commented 4 months ago

Can you give me some error output or any other context?

mxrxtr commented 4 months ago

The Samsung spam doesnt advertise anything tried to reflash the software twice didnt do anything

danny8972 commented 4 months ago

Maybe its a problem with the files you downloaded I have multiple branches in my pull request, Also do you have a Samsung device to view the advertisements, because it may not work on other devices.

mxrxtr commented 4 months ago

Yes i have a samsung device to test

mxrxtr commented 4 months ago

Could you give me the right bin then