-
Notifications
You must be signed in to change notification settings - Fork 412
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
Fixed memleaks and optimizations in my fork #387
Comments
a "leak" is only real when there's no longer a pointer held to the actual storage. we allocate various things without explicitly freeing them, since they're automatically returned to the OS on exit. did you notice an actual leak that would steadily increase memory usage during execution, or are you just playing around with compiler options ? |
Hello again, in general, im run LeakSanitizer less than 30 seconds Online Brute WPS, I'm now measuring whether leakage increases over time (example 1 hour). I noticed that online brute is very long. In theory, 10 hours real time are needed for one AP, so I decided to optimize by reducing all timeout parameters. Also making Fail: and Timeout: 0, with router having an ideal signal 78db, I thought about how to optimize creation WPS and EAPOL sessions, structure alignment seemed to really speed up process exchanging Request, M1, M3,M5 messages, etc. On vanilla branch, I had 8 pins in 45 seconds, on my branch, 8 pins in 43 seconds, it seemed like a tiny error, but I decided to measure the average on one rtw8812 adapter with one driver. I also tried to fix memory leaks, but I only broke original behavior, so I didn't push to my branch. |
right, fixing what isn't broken is usually not that great of an idea
i'm pretty sure your feeling is wrong because most time is spent waiting for responses, and in the active code doing syscalls and the kernel communicating with the driver firmware. if you want a speedy reaver maybe try adding -O3 to your CFLAGS, so reaver's code runs in 1ns instead of 2ns while the kernel spends milliseconds for the above. in reality, reaver could probably be written in python and a full brute-force session wouldn't take more than a few seconds longer. |
@rofl0r, im fixed in my fork this https://github.com/GermanAizek/reaver-wps-fork-t6x/
The text was updated successfully, but these errors were encountered: