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

The full list of supported engines is accessible here.

Banner

Documentation

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]:
    ...

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

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.2.tar.gz (14.1 kB view details)

Uploaded Source

Built Distribution

graphdna-1.1.2-py3-none-any.whl (28.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: graphdna-1.1.2.tar.gz
  • Upload date:
  • Size: 14.1 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.2.tar.gz
Algorithm Hash digest
SHA256 3e9fe6eae3f533ceb15c41bc34d23e0d4ec3b38a5222e36c26fb9a1bbeffaee5
MD5 b6ce6c6938a6796bf01dd39185c0d30e
BLAKE2b-256 f5a592b977107a1ea050724f79726b55d875ff5cb0ef212117a99ba270e31020

See more details on using hashes here.

File details

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

File metadata

  • Download URL: graphdna-1.1.2-py3-none-any.whl
  • Upload date:
  • Size: 28.5 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 36ad1a4b414331a5f3dfd6c14b2da3d74c2cae3491960b2b90fafb73b83243ff
MD5 41cd82e57467fe36ef1310fe67eea4b6
BLAKE2b-256 6d52ba611adb6f9e2dc9da0cac40c7c6de6a8e787b90fe6a0e9f48cdae8f970e

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