APIFuzzer icon indicating copy to clipboard operation
APIFuzzer copied to clipboard

Space char at the headers argument

Open jotapikie opened this issue 1 year ago • 4 comments

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 avatar May 31 '23 17:05 jotapikie

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

jotapikie avatar May 31 '23 19:05 jotapikie

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

jotapikie avatar May 31 '23 21:05 jotapikie

“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.

mayzhou0401 avatar Sep 07 '23 06:09 mayzhou0401

“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

KissPeter avatar Feb 13 '24 11:02 KissPeter