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

Getting error with hashdump command #19

Open
Joyen12 opened this issue Feb 28, 2020 · 1 comment
Open

Getting error with hashdump command #19

Joyen12 opened this issue Feb 28, 2020 · 1 comment

Comments

@Joyen12
Copy link

Joyen12 commented Feb 28, 2020

Hi,

I'm trying your program on a test site on my hosting (because I got hacked and I want to see what they were able to get) and when I try hashdump it is giving me this error. I tried to troubleshoot and I found out that sendcommand.text is empty but I cannot figure out why...

It does that also for dbcreds but not for keylogger, it is strange...

Here is the output of the error :

os-shell> hashdump
Traceback (most recent call last):
File "yertle.py", line 466, in
main()
File "yertle.py", line 447, in main
commandloop(args.target, uploaddir)
File "yertle.py", line 98, in commandloop
hashdump(host, uploaddir)
File "yertle.py", line 306, in hashdump
items = datacreds(host, uploaddir)
File "yertle.py", line 134, in datacreds
user = credextract(sendcommand.text, 'DB_USER')
File "yertle.py", line 147, in credextract
return se[2]
IndexError: list index out of range

Thanks a lot for your help

@n00py
Copy link
Owner

n00py commented Mar 2, 2020

So what that function is doing:
Looks for wp-config.php. It assumes that it is three directories up, so if yertle is at /wp-content/plugins/random/shell.php, it will look for it at ../../../wp-config.php.

So this is a possible issue. Can you check on your site to see if these files (shell.php and wp-config.php) are in their expected locations?

also it is looking for DB_USER in wp-config.php. It is also splitting strings on single quotes.

Can you tell me if wp-config as DB_USER in it, and if the value is enclosed in single quotes?

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