Run automated and autonomous penetration tests with AI agents from the web platform, the CLI, the Python SDK or the REST API. This cookbook shows you how to get the most out of every product.
Drive pentests, chat with agents and triage findings from the browser.
CLILaunch and control pentests from your terminal, in the cloud or locally.
Python SDKBuild pentesting into your own tools with rank-sdk.
Integrate directly with the platform over HTTP.
npm install -g @aleex-rank/cli
rank auth set rk_live_xxxxxxxxxxxxxxxx
rank pentest create -n "Demo" -u https://example.com -t web -m automatic
rank pentest run 1 import rank
client = rank.Rank(api_key="rk_live_xxxxxxxxxxxxxxxx")
pentest = client.pentests.create(
name="Demo",
type="web",
mode="automatic",
assets=[{"asset_type": "url", "asset_value": "https://example.com", "is_primary": True}],
)
print(pentest.id) curl https://api.aleex-rank.ai/api/v2/pentests \
-H "X-API-Key: rk_live_xxxxxxxxxxxxxxxx" \
-H "Content-Type: application/json" \
-d '{
"name": "Demo",
"type": "web",
"mode": "automatic",
"assets": [{"asset_type": "url", "asset_value": "https://example.com", "is_primary": true}]
}'