Looks like you're missing the sid arg? Quick test editing the code to pass in an empty string for a sid does get some output however.
The ophc argument also doesn't seem to return anything, but no errors.
edit: it seems there is a logic problem there, ntlm passwords are never written with ophc format flag...
Trying to extract machine accounts and failing. Works fine with ImpDump (https://github.com/HarmJ0y/ImpDump) and CredDump.
command: ntdsxtract/dscomputers.py output.export/datatable.4 work --syshive system --passwordhashes --pwdformat john --ntoutfile nt --lmoutfile lm
... Password hashes:[!] Error! format_john() takes exactly 4 arguments (3 given)
Looks like you're missing the sid arg? Quick test editing the code to pass in an empty string for a sid does get some output however.
The ophc argument also doesn't seem to return anything, but no errors. edit: it seems there is a logic problem there, ntlm passwords are never written with ophc format flag...