Giter Site home page Giter Site logo

Comments (4)

dolevf avatar dolevf commented on May 28, 2024

I don't see this behavior. can you share more details? what python version are you using?

from graphql-cop.

darksilenxe avatar darksilenxe commented on May 28, 2024

My Kali Linux VM is using Python 3.11.4. Please see the screenshot below for the details of the error:

image

I fixed this issue in a PR.

from graphql-cop.

dolevf avatar dolevf commented on May 28, 2024

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.

dolevf avatar dolevf commented on May 28, 2024

merged #29

from graphql-cop.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.