Skip to main content

A multifaceted security tool which leverages Public GitHub REST APIs for OSINT, Forensics, Pentesting and more.

Project description

Welcome to Gitxray

Gitxray (short for Git X-Ray) is a multifaceted security tool designed for use on GitHub repositories. It can serve many purposes, including OSINT and Forensics. gitxray leverages public GitHub REST APIs to gather information that would otherwise be very time-consuming to obtain manually. Additionally, it seeks out information in unconventional places.

The Octocat getting X-Rayed Build Workflows Latest Version in PIP Python Versions License
Gitxray Logo Gitxray Console

Use-cases and documentation

Installing and running Gitxray

gitxray was written with no use of external package dependencies other than the requests library.

PyPI (PIP) Way

gitxray is on PyPI and can be installed with:

pip install gitxray

Once installed, simply run gitxray from your command line by typing:

gitxray -h

Installing from source

You may also run gitxray directly by cloning or downloading its GitHub repository and running.

python3 -m pip install -r requirements.txt
cd src/
python3 -m gitxray.gitxray

Command Line Arguments

Required Arguments

One of the following must be specified:

  • -r, --repository [URL] - Specify a single repository URL to check. The URL must begin with https://. Example: --repository https://github.com/example/repo

  • -rf, --repositories-file [FILEPATH] - Provide a file path containing a list of repositories, each on a new line. The file must exist. Example: --repositories-file ./list_of_repos.txt

  • -o, --organization [URL] - Specify an organization URL to check all repositories under that organization. The URL must begin with https://. Example: --organization https://github.com/exampleOrg

Optional Arguments

You'll find these optional but very handy in common gitxray usage.

  • -l, --list - List contributors if a repository is specified or list repositories if an organization is specified. Useful for further focusing on specific entities. Example: --list

  • -c, --contributor [USERNAMES] - A comma-separated list of GitHub usernames to focus on within the specified repository or organization. Example: --contributor user1,user2

  • -f, --filters [KEYWORDS] - Comma-separated keywords to filter the results by, such as 'user_input', 'association', or 'mac'. Example: --filters user_input,association,mac

Verbose and Debug

  • -v, --verbose - Enable verbose output which, for example, provides a detailed list of public events instead of a summary. Example: --verbose

  • --debug - Enable Debug mode for a detailed and extensive output. Example: --debug

Output and Formats

  • -out, --outfile [FILEPATH] - Specify the file path for the output log. Cannot be a directory. Example: --outfile ./output.log

  • -outformat, --output-format [FORMAT] - Set the format for the log file. Supported formats are text and json. Default is text. Example: --output-format json

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

gitxray-1.0.12.tar.gz (40.2 kB view details)

Uploaded Source

Built Distribution

gitxray-1.0.12-py3-none-any.whl (43.5 kB view details)

Uploaded Python 3

File details

Details for the file gitxray-1.0.12.tar.gz.

File metadata

  • Download URL: gitxray-1.0.12.tar.gz
  • Upload date:
  • Size: 40.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for gitxray-1.0.12.tar.gz
Algorithm Hash digest
SHA256 517f19aee949df84e1178ecf219e4c24f61e324401639f77e645bad60b158212
MD5 c2aeaddd115b267dce60bc0767737f1a
BLAKE2b-256 0592ec8977046a137c0cdabc09f68c38e6abf5e8be339cd400e5c5c5a3f8c208

See more details on using hashes here.

File details

Details for the file gitxray-1.0.12-py3-none-any.whl.

File metadata

  • Download URL: gitxray-1.0.12-py3-none-any.whl
  • Upload date:
  • Size: 43.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for gitxray-1.0.12-py3-none-any.whl
Algorithm Hash digest
SHA256 0e2d646968a0e411408723f676547a9eabfd5f307e2f6e806de9a403c14551ae
MD5 faf3b1a6dcbb937ee5d5085261ea7aa1
BLAKE2b-256 4e1bfbef983d59e0bc33091df18fe9b9f21f605a088cb6bb2d31095aecfafc71

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