-
-
Notifications
You must be signed in to change notification settings - Fork 163
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/pwnagotchi_pwngrid_spam #207
Conversation
Rebase on Bruce updates
Updates from Bruce
@bmorcelli, I would like to allocate a
Did I understand well what you suggest ? |
the size of each object is defined by its struct:
Strings allocate a lot of memory, in general, so when you reserve 30 pwngrid peers (for example), you reserve space for 6x30 String variable, 6*30 int (4byte size in general each) and 1x30 bool (1 byte) in DRAM memory when declaring it as Global variable in the .cpp file, and the problem is that this allocated memory will only be used for this purpose only. My suggestion is to get rid of this method
This is an example of how to allocate memory in vectors using the RAM as limit. Once the function ends you must use |
Wahou thanks a lot ! I'm learning many things with those explanations ❤️ |
Yeah boy!! I'm learning a lot too.. we are pushing these esp32 into another level.. many challenges will appear, but we will learn more and overcome them.. I'm glad this firmware is serving well one of it's purposes, that is for "educational purpose" lol |
Bruce updates
Bruce updates
Add pwnagotchi
Temporary lower before vector allocation
Lower again for temporary compilation
I tried with dynamic allocation, but pwngrid_friends_tot is always zero. Therefore it never discover peers. |
Working now 😄 |
Yeah boy!! That's what I was talking about! |
Proposed Changes
I suggest another Pwnagotchi PR, more customized, with Pwngrid spam feature.
This work mainly comes from @7h30th3r0n3, @viniciusbo and @sduenasg.
Types of Changes
Added features:
Verification
Pwnagotchi should be able to work on any device.
Testing
Running Pwnagotchi should:
Demo here : https://youtu.be/PREiRrVc7Tg
User-Facing Change
Users has to put the config file at the root of the SD card / LittleFS like this:
/pwnagotchi/pwngridspam.txt
If not, it will not load Pwngrid spam feature.