Comments (4)
I don't see this behavior. can you share more details? what python version are you using?
from graphql-cop.
My Kali Linux VM is using Python 3.11.4. Please see the screenshot below for the details of the error:
I fixed this issue in a PR.
from graphql-cop.
git clone
git clone https://github.com/dolevf/graphql-cop.git
Cloning into 'graphql-cop'...
remote: Enumerating objects: 491, done.
remote: Counting objects: 100% (117/117), done.
remote: Compressing objects: 100% (86/86), done.
remote: Total 491 (delta 45), reused 51 (delta 31), pack-reused 374
Receiving objects: 100% (491/491), 186.10 KiB | 1.71 MiB/s, done.
Resolving deltas: 100% (270/270), done.
Run graphql cop
┌──(kali㉿kali)-[~]
└─$ cd graphql-cop/
┌──(kali㉿kali)-[~/graphql-cop]
└─$ python3 graphql-cop.py
Usage: graphql-cop.py -t http://example.com -o json
Options:
-h, --help show this help message and exit
-t URL, --target=URL target url with the path - if a GraphQL path is not
provided, GraphQL Cop will iterate through a series of
common GraphQL paths
-H HEADER, --header=HEADER
Append Header(s) to the request '{"Authorization":
"Bearer eyjt"}' - Use multiple -H for additional
Headers
-o FORMAT, --output=FORMAT
json
-f, --force Forces a scan when GraphQL cannot be detected
-d, --debug Append a header with the test name for debugging
-x, --proxy Sends the request through http://127.0.0.1:8080 proxy
-v, --version Print out the current version and exit.
python version
┌──(kali㉿kali)-[~/graphql-cop]
└─$ python -V
Python 3.11.2
While I don't mind adding it, I don't think __init__.py
is necessary anymore as it used to be in python2.
from graphql-cop.
merged #29
from graphql-cop.
Related Issues (13)
- License statement HOT 2
- Tag the source HOT 1
- Doesn't run graphql-cop.py HOT 3
- No module Found Error HOT 7
- Stack trace discovery HOT 4
- Discovery fails when data is None HOT 1
- Wondering about the Accept header HOT 1
- JSON output format is incorrect HOT 1
- Failing to find GraphQL HOT 5
- I cannot run graphql-cop HOT 2
- How can I use graphql-cop as package in the test suite HOT 2
- Using graphql-cop as package
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from graphql-cop.