Open blurbdust opened 4 months ago
From the ReadMe:
Linux support - PXEThief currently makes use of pywin32 in order to utilise some built-in Windows cryptography functions. This is not available on Linux, since the Windows cryptography APIs are not available on Linux :P The Scapy code in pxethief.py, however, is fully functional on Linux, but you will need to patch out (at least) the include of win32crypt to get it to run under Linux
I apologize, I meant to follow up with a PR with these fixes added sooner. The code above is the reimplementation of the Windows specific cryptographic functions purely in Python.
pfx, cert = load_pfx(f.read(), b"PASSWORD")
is the replacement for https://github.com/MWR-CyberSec/PXEThief/blob/main/pxethief.py#L484
Virtually everything else is the replacement for https://github.com/MWR-CyberSec/PXEThief/blob/main/pxethief.py#L541
;)