Skip to content

Commit

Permalink
Update evil_portal.cpp
Browse files Browse the repository at this point in the history
Fix EP crashing on StickCPlus2
  • Loading branch information
bmorcelli authored Aug 22, 2024
1 parent 1d98e70 commit 5f4f645
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/modules/wifi/evil_portal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,10 @@ void startEvilPortal(String tssid, uint8_t channel, bool deauth) {

tmp=millis();
while(millis() - tmp < 3000) yield();

if(psramFound()) ep=(WebServer*)ps_malloc(sizeof(WebServer));
else ep=(WebServer*)malloc(sizeof(WebServer));

#ifdef STICK_C_PLUS2
ep=(WebServer*)ps_malloc(sizeof(WebServer));
#else
ep=(WebServer*)malloc(sizeof(WebServer));
#endif
new (ep) WebServer(80);

ep->on("/", [](){
Expand Down

2 comments on commit 5f4f645

@jhonpohac
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello everyone, who can help me excellent job, the best there is for our m5stack cardputer and more complete friend, I want to do this to be able to clone my car alarm, can you help me?

https://www.tiktok.com/@master.portalhack/video/7368798303166778656?is_from_webapp=1&sender_device=pc&web_id=7380478325808055813

@IncursioHack
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello everyone, who can help me excellent job, the best there is for our m5stack cardputer and more complete friend, I want to do this to be able to clone my car alarm, can you help me?

Hello John, so this is not the best channel to talk and debate, I ask you to join the community Discord so you can talk about the topic.
https://discord.gg/5wVDS4zx

Just an addendum, the video you mentioned many people consider to be a scam, be aware, in Bruce's case it is an open-source firmware and you can use it however you prefer.

Please sign in to comment.