Skip to content

Commit

Permalink
readme update
Browse files Browse the repository at this point in the history
  • Loading branch information
KissPeter committed Nov 4, 2019
1 parent 3b5ced6 commit f599803
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
14 changes: 9 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,11 @@ $ pip3 install -r APIFuzzer/requirements.txt
## Quick Start
Check the help (some of them are not implemented yet):
```
$ python3 fuzzer.py -h
$$ python3 fuzzer.py -h
usage: fuzzer.py [-h] -s SRC_FILE [-r REPORT_DIR] [--level LEVEL]
[-u ALTERNATE_URL] [-t TEST_RESULT_DST]
[--log {warn,error,debug,info,warning,critical,notset}]
[--log {critical,fatal,error,warn,warning,info,debug,notset}]
[--headers HEADERS]
API fuzzer configuration
Expand All @@ -45,17 +46,20 @@ optional arguments:
-s SRC_FILE, --src_file SRC_FILE
API definition file path
-r REPORT_DIR, --report_dir REPORT_DIR
Directory where error reports will be saved, default:
/tmp/
Directory where error reports will be saved. Default is
temporally generated directory
--level LEVEL Test deepness: [1,2], higher is the deeper !!!Not
implemented!!!
-u ALTERNATE_URL, --url ALTERNATE_URL
Use CLI defined url instead compile the url from the API
definition. Useful for testing
-t TEST_RESULT_DST, --test_report TEST_RESULT_DST
JUnit test result xml save path !!!Not implemented!!!
--log {warn,error,debug,info,warning,critical,notset}
--log {critical,fatal,error,warn,warning,info,debug,notset}
Use different log level than the default WARNING
--headers HEADERS
Http request headers added to all request. Example:
'[{"Authorization": "SuperSecret"}, {"Auth2": "asd"}]'
```

Expand Down
2 changes: 1 addition & 1 deletion fuzzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def json_dict(arg_string):
parser.add_argument('--headers',
type=json_dict,
required=False,
help='Http request headers added to all request',
help='Http request headers added to all request. Example: \'[{"Authorization": "SuperSecret"}, {"Auth2": "asd"}]\'',
dest='headers',
default=None)
args = parser.parse_args()
Expand Down

0 comments on commit f599803

Please sign in to comment.