Fix NETLOGON_LOGON_QUERY parsing: Add mailslot name alignment#4952
Fix NETLOGON_LOGON_QUERY parsing: Add mailslot name alignment#4952MatrixEditor wants to merge 5 commits intosecdev:masterfrom
Conversation
|
Hi and thanks for the PR ! Could you add the example packet you provided to the unit tests, at the end of this file: scapy/test/scapy/layers/ldap.uts Line 211 in b1add1f |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #4952 +/- ##
==========================================
- Coverage 80.30% 80.30% -0.01%
==========================================
Files 379 379
Lines 93164 93164
==========================================
- Hits 74820 74816 -4
- Misses 18344 18348 +4
🚀 New features to boost your workflow:
|
Co-authored-by: Gabriel <10530980+gpotter2@users.noreply.github.com>
- revert change when parsing NETLOGON_LOGON_QUERY: always use length of MailslotName as a reference
|
I did some research and WIndows clients behave correctly (according to the spec). However, using your propsed If you have any suggestions on a cleaner approach, I am open for it. |
As described in MS-ADTS "6.3.1.4 NETLOGON_LOGON_QUERY", the "MailslotName" field must be "aligned to an even byte boundary, with padding (bytes of value 0) to the next even byte boundary as necessary.".
This pull request fixes parsing
NETLOGON_LOGON_QUERYmessages by adding an optional padding byte.