This adds the MS-DFSNM definitions and functions to implement the Dfscoerce attack which is similar to petitpotam.
Testing
[x] Make sure the unit tests pass
[x] Use the Metasploit module with both METHOD options (one for each function implemented here)
Looking through the documentation for NetrDfsAddStdRoot, I was unable to get the function to work with a nil / null pointer comment. From what I can tell the comment must be specified as a string. Also the parameter types are all marked as WCHAR* but the invocation fails when the types are defined as ndr_wide_stringz_ptr.
This adds the MS-DFSNM definitions and functions to implement the Dfscoerce attack which is similar to petitpotam.
Testing
METHOD
options (one for each function implemented here)Looking through the documentation for NetrDfsAddStdRoot, I was unable to get the function to work with a nil / null pointer comment. From what I can tell the comment must be specified as a string. Also the parameter types are all marked as
WCHAR*
but the invocation fails when the types are defined asndr_wide_stringz_ptr
.