Skip to main content

penterepTools

PTGRAPHQL

PTGRAPHQL is a security testing tool for identifying vulnerabilities in GraphQL instances

Installation

pip install ptgraphql

Adding to PATH

If you're unable to invoke the script from your terminal, it's likely because it's not included in your PATH. You can resolve this issue by executing the following commands, depending on the shell you're using:

For Bash Users

echo "export PATH=\"`python3 -m site --user-base`/bin:\$PATH\"" >> ~/.bashrc
source ~/.bashrc

For ZSH Users

echo "export PATH=\"`python3 -m site --user-base`/bin:\$PATH\"" >> ~/.zshrc
source ~/.zshrc

Usage examples

ptgraphql -u htttps://www.example.com/

Options

   -u   --url         <url>               Connect to URL
   -p   --proxy       <proxy>             Set proxy (e.g. http://127.0.0.1:8080)
   -ts  --tests       <test>              Specify one or more tests to perform:
                       IS_GRAPHQL         GraphQL availability test
   -t   --threads     <threads>           Set thread count (default 10)
   -T   --timeout                         Set timeout (default 10)
   -c   --cookie      <cookie>            Set cookie
   -a   --user-agent  <a>                 Set User-Agent header
   -vv  --verbose                         Enable verbose mode
   -w   --wordlist    <path/to/wordlist>  Specify wordlist to bruteforce GraphQL endpoint. Default: data/wordlists/endpoints.txt
   -H   --headers     <header:value>      Set custom header(s)
   -r   --redirects                       Follow redirects (default False)
   -C   --cache                           Cache HTTP communication (load from tmp in future)
   -v   --version                         Show script version and exit
   -h   --help                            Show this help message and exit
   -j   --json                            Output in JSON format

Dependencies

ptlibs

License

Copyright (c) 2025 Penterep Security s.r.o.

ptgraphql is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

ptgraphql is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with ptgraphql. If not, see https://www.gnu.org/licenses/.

Warning

You are only allowed to run the tool against the websites which you have been given permission to pentest. We do not accept any responsibility for any damage/harm that this application causes to your computer, or your network. Penterep is not responsible for any illegal or malicious use of this code. Be Ethical!

Metadata

Release files for ptgraphql 0.0.10

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ptgraphql 0.0.10
File Size Uploaded
ptgraphql-0.0.10.tar.gz 35.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ptgraphql 0.0.10
File Interpreter ABI Platform
ptgraphql-0.0.10-py3-none-any.whl Python 3 none any Details

Total release size: 81.0 kB

Release files / ptgraphql-0.0.10.tar.gz

Download URL ptgraphql-0.0.10.tar.gz
Size 35.7 kB
Tags Source
SHA-256 checksum
How to use checksums
3eb7072858eeae42724f73ca030675d24608502d3d093ac905100d4167a02a70
BLAKE2b-256 checksum
How to use checksums
211be97e308f57749b8025b7625b5473bf7d53117061f29fbb444daf346ca466
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.12

Release files / ptgraphql-0.0.10-py3-none-any.whl

Download URL ptgraphql-0.0.10-py3-none-any.whl
Size 45.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ea82fd6e24796b1a4e6b3364e20ebe22e427186f3d0e9e2e79998deea9ec816c
BLAKE2b-256 checksum
How to use checksums
47bc42357f38090852e677e01fc0532ee60fd8ff80298daf20ed543b7683ccec
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.12

Release history Release notifications | RSS feed

This release

0.0.10 This release

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page