Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hashes not being genereated and error #24

Open
bucky67gto opened this issue Jun 7, 2016 · 1 comment
Open

Hashes not being genereated and error #24

bucky67gto opened this issue Jun 7, 2016 · 1 comment

Comments

@bucky67gto
Copy link

python dsusers.py ~/Desktop/1/datatable.3 ~/Desktop/1/link_table.5 ~/Desktop/1/temp/ --passwordhashes --syshive ~/Desktop/1/SYSTEM --pwdformat john --lmoutfile ~/Desktop/lm --ntoutfile ~/Desktop/nt

if running this, i get the following

Password hashes:[!] Error! format_john() takes exactly 4 arguments (3 given)

I get the same error if U use --pwdformat ophc

if I change to --pwdformat ocl - runs but generates no data

am I missing something?

@ghostcom
Copy link

So I haven't looked into the format_ophc error, but I assume it's similar to the format_john issue. As the error states, it's only getting 3 parameters passed. In dsusers.py, you'll see:
sys.stdout.write("\n\t" + format_john(user.SAMAccountName,nt,'NT')
ntof.writelines(format_john(user.SAMAccountName,nthash,'NT')

format_john's definition is expecting 4 arguments. As shown above, the SID is missing from each of the format_john statements. you can correct this by adding user.SID as an argument:
format_john(user.SAMAccountName,str(user.SID),nthash,'NT')
save your changes (making sure you update all locations) and it should output the hashes correctly when --pwdformat john is specified

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants