Skip to content

Commit

Permalink
Merge pull request #40 from D-Ace0/detection_enhancement
Browse files Browse the repository at this point in the history
detection enhancement
  • Loading branch information
dolevf authored Jun 21, 2024
2 parents fef68a2 + d99eee7 commit 7443fd2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions graphw00f/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@ def possible_graphql_paths():
'/v1/graphiql',
'/v2/graphiql',
'/v3/graphiql',
'/graphql/v1',
'/graphql/v2',
'/graphql/v3',
'/api/graphql',
'/api/graphiql',
'/console',
Expand Down
2 changes: 1 addition & 1 deletion graphw00f/lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def check(self, url):
if response.get('data'):
if response.get('data', {}).get('__typename', '') in ('Query', 'QueryRoot', 'query_root'):
return True
elif response.get('errors') and (any('locations' in i for i in response['errors']) or (any('extensions' in i for i in response))):
elif response.get('errors') and (any('locations' in i for i in response['errors']) or any('extensions' in i for i in response['errors'])):
return True
elif response.get('data'):
return True
Expand Down

0 comments on commit 7443fd2

Please sign in to comment.