Skip to content
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

request for unlimitted attacks timeouts #97

Open
romel1988 opened this issue May 18, 2024 · 1 comment
Open

request for unlimitted attacks timeouts #97

romel1988 opened this issue May 18, 2024 · 1 comment

Comments

@romel1988
Copy link

No description provided.

@albinvar
Copy link

You will be able to set attacks upto 255 seconds to the max as the timeout variable uses uint8_t (#5 )

A simple approach is to override the timeout value for the function esp_timer_start_once() inside attack.c

https://github.com/risinek/esp32-wifi-penetration-tool/blob/e346e28ed9c93e98ab686c30eb8c4bc549313ba3/main/attack.c#L127C4-L128C79

esp_timer_start_once() accepts the timeout input as milliseconds and poses uint64. So the maximum timeout value for esp_timer_start_once is UINT64_MAX microseconds which is equivalent to approximately 4,294,967,295 microseconds or about 4294 seconds (approximately 71.58 minutes). You can take a look at this code where if 0 is recieved as input, the attack will run for the max time as possible

https://github.com/albinvar/esp32-wifi-penetration-tool/blob/a30167ca1d959193a45895815ae0b95c63d70ed3/main/attack.c#L127-L138

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants