We provide api for website security pentesting. This repository is example how to use our api service.
You must have token in order to send request to endpoint.
POST https://p2s.vn/scan
type | name |
---|---|
1 | Web Server Scan |
2 | Find Subdomains |
3 | Find Virtual Hosts |
4 | Find hidden folders & hidden files |
POST https://p2s.vn/get_list
POST https://p2s.vn/get_scan
{
"url": "https://p2s.vn/scan",
"method": "POST",
"headers": {
"Content-Type": "application/x-www-form-urlencoded"
},
"data": {
"token": "test_token",
"target": "https://p2s.vn",
"type": "1"
}
}
{
"code": 0,
"msg": "success",
"id": "3a27e0ee08bc5bc5dea3823660b022cb"
}
{
"url": "https://p2s.vn/get_list",
"method": "POST",
"headers": {
"Content-Type": "application/x-www-form-urlencoded"
},
"data": {
"token": "test_token",
}
}
[
{
"id": "03e3c985bd9c033d42bed73388711571",
"target": "https://google.com",
"type": "Scan hidden folder and hidden file"
},
{
"id": "cddc13d99c044c4d55ae68ba2df74ec6",
"target": "github.com",
"type": "Find subdomain"
}
]
{
"url": "https://p2s.vn/scan",
"method": "POST",
"headers": {
"Content-Type": "application/x-www-form-urlencoded"
},
"data": {
"token": "test_token",
"id": "cddc13d99c044c4d55ae68ba2df74ec6",
}
}
{
"code": 0,
"time": "2019-01-17 04:47:09",
"status": "finished",
"progress": "100%",
"summary": {
"text": "Found 23 items"
},
"output": {
"scan_tests": [
{
"headers": [
{
"item_name": "name",
"display": "Name"
},
{
"item_name": "code",
"display": "HTTP Code"
},
{
"item_name": "reason",
"display": "HTTP Reason"
},
{
"item_name": "size",
"display": "Page Size (KB)"
}
],
"test_finished": true,
"output_data": [
{
"reason": "Moved Temporarily",
"code": "302",
"name": "/admin/",
"size": "0.159"
},
{
"reason": "OK",
"code": "200",
"name": "/contact/",
"size": "25.457"
},
{
"reason": "Moved Permanently",
"code": "301",
"name": "/dashboard/",
"size": "0.0"
},
{
"reason": "Found",
"code": "302",
"name": "/ext/",
"size": "0.0"
},
{
"reason": "Moved Permanently",
"code": "301",
"name": "/friends/",
"size": "0.0"
},
{
"reason": "OK",
"code": "200",
"name": "/index/",
"size": "181.812"
},
],
"test_name": "default",
"caption": "Found 23 items",
"test_description": "Searching for common configuration files",
"raw_output": "",
"progress": 0,
"test_id": 0
}
]
}
}