Skip to main content

Python-xray converts Xray commands into python3 methods making it very easy to use xray in any of your python pentesting projects

Project description

python-xray

A python 3 library which helps in using chaitin's community xray web scanner. This tool convert command line into python functions.

For example in xray if you want to scan for url http://xxx.xx/ you would to something like this

./xray_linux_amd64 --config ./configs/config.yaml webscan url http://xxx.xx/

But in this python-xray script you would do something like this

import pyxray

# xray = pyxray.XrayWebScanner(['/path/to/your/xray-software-dir/xray_linux_amd64'])
xray = pyxray.XrayWebScanner()  # default: find it from your PATH
res = xray.webscan(urls=['http://xxx.xx/'])
res = xray.webscan_with_crawler(urls=['http://xxx.xx/'])

print(res)

NOTE: xray_search_path must be an iterable object

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

python-xray-0.3.1.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

python_xray-0.3.1-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

Details for the file python-xray-0.3.1.tar.gz.

File metadata

  • Download URL: python-xray-0.3.1.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.5

File hashes

Hashes for python-xray-0.3.1.tar.gz
Algorithm Hash digest
SHA256 d74fc020dd698aa8e9cb9dff41ce5592f95294b5aac199137872d7fd7743f37d
MD5 7ffbee1c99e0a571d6d2a91feda5e845
BLAKE2b-256 38f973ff52a627b6f6ac0314a94554ad053ea725e53d10a33648a220745a79b3

See more details on using hashes here.

File details

Details for the file python_xray-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: python_xray-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 6.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.5

File hashes

Hashes for python_xray-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6c9584b386f59a0cfdf67620682ff5941e2042bcb51f956f95af7273e0494dca
MD5 695fb8fb9bfb776a384bbf27f552c9e6
BLAKE2b-256 78fb038996ee5803b1d0288e6a0f846d37f69140b8eb9eec6401a4b47e5d427d

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