scapy icon indicating copy to clipboard operation
scapy copied to clipboard

Wrong encoding Dot11EltRSN

Open ash09 opened this issue 7 years ago • 2 comments

Brief description

MFPR (Management Frame Protection Required) and MFPC (Management Frame Protection Capable) bits are set to 0 in Wireshark whereas they were set to 1 in Dot11EltRSN.

Environment

  • Scapy version: 2.4.2
  • Python version: 3.6.7
  • Operating System: Debian 9

How to reproduce

Dot11EltRSN(mfp_required=1, mfp_capable=1)

<Dot11EltRSN group_cipher_suite=<RSNCipherSuite |> pairwise_cipher_suites=[<RSNCipherSuite |>] akm_suites=[<AKMSuite |>] mfp_required=1 mfp_capable=1 |>

Actual result

b'0\x14\x01\x00\x00\x0f\xac\x04\x01\x00\x00\x0f\xac\x04\x01\x00\x00\x0f\xac\x01\x03\x00'

bug_scapy

Expected result

b'0\x14\x01\x00\x00\x0f\xac\x04\x01\x00\x00\x0f\xac\x04\x01\x00\x00\x0f\xac\x01\xc0\x00'

ash09 avatar Feb 01 '19 14:02 ash09

Hi ! Thanks for the report,

Could you check that https://github.com/secdev/scapy/pull/1829 fixes it for you ? Thanks

gpotter2 avatar Feb 01 '19 18:02 gpotter2

Yes it works! Thanks.

ash09 avatar Feb 04 '19 09:02 ash09