skelsec / pypykatz

Mimikatz implementation in pure Python
MIT License
2.82k stars 373 forks source link

Fix leading zero on DPAPI MK GUID #50

Closed nikaiw closed 4 years ago

nikaiw commented 4 years ago

hex() is stripping output of leading zero which can lead to wrong GUID and wrong compare between blob GUID and MK GUID. E.g : 6f48f047-91-4922-b0c2-39d99bd99c81 instead of 6f48f047-0091-4922-b0c2-39d99bd99c81. That's a quick fix, maybe it would be better to use format()

skelsec commented 4 years ago

Thank you for your contribution.