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

Why -P does not work with the docker image? #1587

Closed
ssxcxS45XT opened this issue Jan 2, 2021 · 6 comments
Closed

Why -P does not work with the docker image? #1587

ssxcxS45XT opened this issue Jan 2, 2021 · 6 comments

Comments

@ssxcxS45XT
Copy link

I got the following error. The password file exist. Does anybody know why wpscan still shows an error? Thanks.

$ ls -lgG /tmp/fasttrack.txt
-rw-r--r-- 1 2006 2021/01/01-20:32:39 /tmp/fasttrack.txt
$ docker run -it --rm wpscanteam/wpscan --url website.com -U users.txt -P /tmp/fasttrack.txt

Scan Aborted: --passwords The path '/tmp/fasttrack.txt' does not exist or is not a file
@erwanlr
Copy link
Member

erwanlr commented Jan 2, 2021

You need to mount a volume with your wordlist in your docker container, see https://docs.docker.com/storage/volumes/

@erwanlr erwanlr closed this as completed Jan 2, 2021
@ssxcxS45XT
Copy link
Author

But why -U deosn't give the same error. So users.txt doesn't need to be in a volume in the docker container?

@erwanlr
Copy link
Member

erwanlr commented Jan 2, 2021

Because -U accepts either a file path or string, so when the argument given is not a file, it's assumed to be a string with the usernames. In your case, -U users.txt will result in the usernames to target to literally be users.txt and not the content of this file.

-P accepts only a file path, hence the differences

@ssxcxS45XT
Copy link
Author

@erwanlr

You need to mount a volume with your wordlist in your docker container ...

There are many example commands covered on the docker help page.

Could you please be specific on the exact commands that I should use to get wpscan work? Thank.

@erwanlr
Copy link
Member

erwanlr commented Jan 3, 2021

You have an example at #1256 (comment)

@ethicalhack3r
Copy link
Contributor

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

3 participants