Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ usage: graphqlmap.py [-h] [-u URL] [-v [VERBOSITY]] [--method [METHOD]] [--heade

optional arguments:
-h, --help show this help message and exit
-u URL URL to query : example.com/graphql?query={}
-u URL URL to query : https://example.com/graphql?query={}
-v [VERBOSITY] Enable verbosity
--method [METHOD] HTTP Method to use interact with /graphql endpoint
--headers [HEADERS] HTTP Headers sent to /graphql endpoint
Expand Down
2 changes: 1 addition & 1 deletion graphqlmap/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def requester(url, method, payload, proxy, headers=None, use_json=False, is_batc

def parse_args():
parser = argparse.ArgumentParser()
parser.add_argument('-u', action='store', dest='url', help="URL to query : example.com/graphql?query={}")
parser.add_argument('-u', action='store', dest='url', help="URL to query : https://example.com/graphql?query={}")
parser.add_argument('-v', action='store', dest='verbosity', help="Enable verbosity", nargs='?', const=True)
parser.add_argument('--method', action='store', dest='method',
help="HTTP Method to use interact with /graphql endpoint", nargs='?', const=True, default="GET")
Expand Down