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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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