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

Space char at the headers argument #64

Open
jotapikie opened this issue May 31, 2023 · 4 comments
Open

Space char at the headers argument #64

jotapikie opened this issue May 31, 2023 · 4 comments

Comments

@jotapikie
Copy link

When I add a header that contains a space character I get an error regarding JSON breaking the content after the space.

usage: APIFuzzer [-h] [-s SRC_FILE] [--src_url SRC_URL] [-r REPORT_DIR] [--level LEVEL] [-u ALTERNATE_URL] [-t TEST_RESULT_DST]
[--log {critical,fatal,error,warn,warning,info,debug,notset}] [--basic_output BASIC_OUTPUT] [--headers HEADERS] [-v]
APIFuzzer: error: argument --headers: ('%s is not JSON', '[{"Authorization":"Basic')

Is there any way to fix this?

@jotapikie
Copy link
Author

The problem is just happens when using the docker version. Fixed it

@jotapikie jotapikie reopened this May 31, 2023
@jotapikie
Copy link
Author

Ok I installed it by default using pip3 install -r "requirements.txt" and "pip3 install ." When I run the command I don't get any output. Any help?

APIFuzzer --src_url https://link.pt/rest/API/swagger.json --url https://link/rest/ --headers '[{"Authorization":"Basic basic64Token"}]' --log debug

@mayzhou0401
Copy link

“The problem is just happens when using the docker version”
+1

So I have to run the docker with --entrypoint bash, and then run APIIFuzzer with headers inside container, it works for me now.

@KissPeter
Copy link
Owner

“The problem is just happens when using the docker version” +1

So I have to run the docker with --entrypoint bash, and then run APIIFuzzer with headers inside container, it works for me now.

@jotapikie
Are you using kisspeter/apifuzzer:latest docker, or other from this list?
https://hub.docker.com/search?q=apifuzzer

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