trustedsec/social-engineer-toolkit — pull request #98 by addenial (2014-11-19 04:32:32+00:00)
Title: powerdump.powershell bug - corrupt hash fix

Fixed the bug where the hashes are not being extracted correctly when LM is disabled and history is enabled.

Rather than relying on length, LM and NT headers are checked. Four bytes at 0xa0 show if LM exists and four bytes at 0xac show if NT exists. Details on this known issue can be found at the following whitepaper from blackhat:
https://media.blackhat.com/bh-us-12/Briefings/Reynolds/BH_US_12_Reynods_Stamp_Out_Hash_WP.pdf

This addresses the issue #25 noted by meatballs1