Metadata-Version: 2.1
Name: python-xray
Version: 0.2.6
Summary: Python-xray converts Xray commands into python3 methods making it very easy to use xray in any of your python pentesting projects
Home-page: https://github.com/yang445786754/py-xray
Author: Tony_9410
Author-email: tony_9410@foxmail.com
Project-URL: Documentation, https://github.com/yang445786754/py-xray
Project-URL: How it is used, https://github.com/yang445786754/py-xray
Project-URL: Homepage, https://github.com/yang445786754/py-xray
Project-URL: Source, https://github.com/yang445786754/py-xray
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE

# 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
```bash
./xray_linux_amd64 --config ./configs/config.yaml webscan url http://xxx.xx/
```

But in this python-xray script you would do something like this
```python
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(xray_search_path=['http://xxx.xx/'])

print(res)
```
> NOTE: xray_search_path must be an iterable object
