Skip to content

Conversation

@ParadoxInfinite
Copy link
Contributor

@ParadoxInfinite ParadoxInfinite commented Nov 6, 2021

The initial value for buf was 2048 in

unsigned char buf[2048];

However, in b8828cb, it was changed to
unsigned char buf[sizeof(struct ieee80211_frame) * 8];

This causes the check if (totlen < l) goto __bad; in line 1848 of besside-ng.c become true as totlen is derived from the sizeof(*wh), which in turn is dependent on buf.

The size of ieee80211_frame is 24, so 24 * 32 still only results in 768, not 2048. I've tested this to be working with * 16 as well, but as a tradeoff between future possibility and memory conservation, I settled on 32.

Let me know if I should increase/decrease the value.


Fixes: #2268

Fixes: #2203

@ParadoxInfinite
Copy link
Contributor Author

@aircrack-ng Hey, sorry for the ping, but could you take a look at this please? I think there are a couple of other places where the memory allocation could be lower(causing bad beacon issue, but this is the major one), I'll update them as well if this looks good. What do you think would be the right value?

@ParadoxInfinite
Copy link
Contributor Author

@jbenden could you have a look at this maybe? It's a 1 line change but would save some issues being raised about bad beacon. I will rebase to the current master branch and also make changes if needed. Let me know, thanks!

@jbenden jbenden merged commit dc71add into aircrack-ng:master Oct 20, 2022
@jbenden jbenden self-assigned this Oct 20, 2022
@jbenden jbenden added bug Something isn't working #besside-ng labels Oct 20, 2022
@d3k4-k3rb3r0s
Copy link

d3k4-k3rb3r0s commented Jun 5, 2023

Still having this issue, June 2023, edited the besside-ng.c file manually even, fresh install.. nothing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

#besside-ng bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Besside-ng 1.6 beacon issue Incorrect work of Besside-ng. Error: Bad Beacon

3 participants