This python3 script makes use of our API, allowing to export scanprofiles, reports and issue data.
A token based authentication is used to authenticate clients. Tokens can be obtained in your account settings (see API Tokens)
The API is rate limited to 100 requests per second per user.
git clone https://github.com/offensity/offensity-api-client
cd offensity-api-client
python3 -m pip install -r requirements.txt
python3 example.py --token <YOUR_OFFENSITY_API_TOKEN> --verbose
The core logic lies within the offensity_api_client.py
script and example.py
just demonstrates
how to initialize it and make use of the methods.
Method | ReturnType | Fields |
---|---|---|
scanprofiles_list |
iterable[dict] |
|
scanprofile_details |
dict |
|
report_list |
iterable[dict] |
|
report_list_for_scanprofile |
iterable[dict] |
|
latest_report_for_scanprofile |
dict |
|
report_details |
dict |
|
issues |
dict |
|
infrastructure_data |
iterable[dict] |
|