Skip to main content

Fast and powerful GraphQL engine fingerprinting tool

Project description

GraphDNA PyPI CI CD

GraphDNA is a tool that uses multiple heuristics to fingerprint GraphQL endpoints.

Banner

PyPI - Python Version PyPI - Downloads

Getting Started

It takes only two simple steps to fingerprint an endpoint using GraphDNA.

pip install graphdna
graphdna -u https://example.com/graphql

Banner

Supported engines

Name Supported Name Supported Name Supported
Agoo Apollo Ariadne
AWS AppSync DGraph Dianajl
Directus Flutter GQLGen
Graphene GraphQLApiForWp GraphQL-Go
gopher/GraphQL-Go GraphQL-Java GraphQL-PHP
GraphQL Yoga Hasura HyperGraphQL
Juniper Lighthouse GraphQL Ruby
Sangria Shopify Stepzen
Strawberry Tartiflette WPGraphQL

Environment Variables

Logger - No effect if you pass your own logger

Name Values Default Behavior
LOG_FORMAT console, json console Change the log format accordingly
DEBUG True, False False Enable debug logging

Integration

import logging
from typing import Dict, Optional

from graphdna import detect_engine, detect_engine_async
from graphdna.entities import GraphQLEngine

def detect_engine(
    url: str,
    headers: Optional[Dict[str, str]] = None,
    logger: Optional[logging.Logger] = None,
) -> Optional[GraphQLEngine]:
    ...


async def detect_engine_async(
    url: str,
    headers: Optional[Dict[str, str]] = None,
    logger: Optional[logging.Logger] = None,
) -> Optional[GraphQLEngine]:
    ...

Local installation

git clone git@github.com:Escape-Technologies/GraphDNA.git
cd GraphDNA
chmod +x ./install-dev.sh
./install-dev.sh

Credits

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License PyPI - License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

graphdna-1.1.3.tar.gz (14.5 kB view details)

Uploaded Source

Built Distribution

graphdna-1.1.3-py3-none-any.whl (28.6 kB view details)

Uploaded Python 3

File details

Details for the file graphdna-1.1.3.tar.gz.

File metadata

  • Download URL: graphdna-1.1.3.tar.gz
  • Upload date:
  • Size: 14.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for graphdna-1.1.3.tar.gz
Algorithm Hash digest
SHA256 5feddf09f0c58b342c63db9bac6692e6be04ca6f0f204cc990c19b0c94343a5a
MD5 2125a3f46569461ec0f833ce31636015
BLAKE2b-256 72e4e7acd3e7c6203660081fa8864e3c586ae0fd2d6074b0f5c154683d36a772

See more details on using hashes here.

File details

Details for the file graphdna-1.1.3-py3-none-any.whl.

File metadata

  • Download URL: graphdna-1.1.3-py3-none-any.whl
  • Upload date:
  • Size: 28.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for graphdna-1.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 f7c369b03b49a02db74f46eede66c04cd3fe2ec2e521c4abda54f6edc430bf1b
MD5 82d0c549788489e8c27ebd4df0c85654
BLAKE2b-256 ab50456b4afc916abbf81ee48efb94163b92190d65c2290a1be0fef6db1a376b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page