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

Can't open wordlist file #117

Open
kuttykut3 opened this issue Nov 1, 2024 · 2 comments
Open

Can't open wordlist file #117

kuttykut3 opened this issue Nov 1, 2024 · 2 comments

Comments

@kuttykut3
Copy link

I'm trying this tool for the first time and this error occured:
main.py: error: argument -w/--wordlist: can't open './overall.txt': [Errno 2] No such file or directory: './overall.txt'
My command:
docker run --rm nikitastupin/clairvoyance -i ./test.json -o ./testOut.txt -w ./overall.txt https:///cms/graphql

I tried absolute path instead but nothing different. Any suggestion?

@Privat33r-dev
Copy link
Collaborator

Privat33r-dev commented Nov 11, 2024

Hi @kuttykut3,

Sorry for long response. It's likely due to the fact that you are using a docker, since docker makes its own filesystem, the program tries to reach the file locally. To circumvent this issue, you can bind a volume: https://docs.docker.com/engine/storage/bind-mounts/

For example,

docker run --rm -v "$(pwd)":/data nikitastupin/clairvoyance -i /data/test.json -o /data/testOut.txt -w /data/overall.txt https:///cms/graphql

Please, let me know whether the issue was resolved.

@kuttykut3
Copy link
Author

It ran but another issue happened.
I copied json data in HTTP response (both regular and introspection request) on example https://rickandmortyapi.com/graphql and throw it into test.json file, then run the tool but something wrong in python's code. When i run with regular json data, it returned some python error and [ KeyError: '__schema' ], with introspection json data it's [ KeyError: 'ofType' ]
I'm wondering if the issue is from my json file
image

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