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
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,9 @@ GraphQLmap > mutation { importPaste(host:"localhost", port:80, path:"/ ; id", sc
"data": {
"importPaste": {
"result": "uid=1000(dvga) gid=1000(dvga) groups=1000(dvga)\n"
{
{
{
}
}
}
```


Expand Down
2 changes: 1 addition & 1 deletion graphqlmap/attacks.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def exec_graphql(url, method, query, proxy, headers=None, use_json=False, only_l

# basic syntax highlighting
output = output.replace("{", "\033[92m{\033[0m")
output = output.replace("}", "\033[92m{\033[0m")
output = output.replace("}", "\033[92m}\033[0m")
output = re.sub(r'"(.*?)"', r'\033[95m"\1"\033[0m', output)
return output

Expand Down
4 changes: 2 additions & 2 deletions graphqlmap/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ def parse_args():


def display_help():
print("[+] \033[92mdump_via_introspection \033[0m: dump GraphQL schema (fragment+FullType)")
print("[+] \033[92mdump_via_fragment \033[0m: dump GraphQL schema (IntrospectionQuery)")
print("[+] \033[92mdump_via_introspection \033[0m: dump GraphQL schema (IntrospectionQuery)")
print("[+] \033[92mdump_via_fragment \033[0m: dump GraphQL schema (fragment+FullType)")
print("[+] \033[92mnosqli \033[0m: exploit a nosql injection inside a GraphQL query")
print("[+] \033[92mpostgresqli \033[0m: exploit a sql injection inside a GraphQL query")
print("[+] \033[92mmysqli \033[0m: exploit a sql injection inside a GraphQL query")
Expand Down