P2S Pentest Services

FREEMIUM
Por p2svn | Actualizada 3 years ago |
Health Check

N/A

LÉAME

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.

Request scan

Endpoint:

POST https://p2s.vn/scan

Params

  • token:
    string - get here.
  • target: string - IP address / Hostname / Url.
  • type: int - type of scan
Type of scan:
type name
1 Web Server Scan
2 Find Subdomains
3 Find Virtual Hosts
4 Find hidden folders & hidden files

Get list scan

Endpoint:

POST https://p2s.vn/get_list

Params

Get result scan

Endpoint:

POST https://p2s.vn/get_scan

Params

  • token:
    string - get here.
  • id: string - get from result of requesting scan.

Example Request & Response:

Scan website request:

{
  "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"
  }
}

Scan website response:

{
  "code": 0,
  "msg": "success",
  "id": "3a27e0ee08bc5bc5dea3823660b022cb"
}

Get list request:

{
  "url": "https://p2s.vn/get_list",
  "method": "POST",
  "headers": {
    "Content-Type": "application/x-www-form-urlencoded"
  },
  "data": {
    "token": "test_token",
  }
}

Get list response:

[
    {
        "id": "03e3c985bd9c033d42bed73388711571",
        "target": "https://google.com",
        "type": "Scan hidden folder and hidden file"
    },
    {
        "id": "cddc13d99c044c4d55ae68ba2df74ec6",
        "target": "github.com",
        "type": "Find subdomain"
    }
]

Get result request:

{
  "url": "https://p2s.vn/scan",
  "method": "POST",
  "headers": {
    "Content-Type": "application/x-www-form-urlencoded"
  },
  "data": {
    "token": "test_token",
    "id": "cddc13d99c044c4d55ae68ba2df74ec6",
  }
}

Get result response:

{
    "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
            }
        ]
    }
}
Seguidores: 1
Recursos:
Sitio web del producto Condiciones de uso
Creador de la API:
P
p2svn
p2svn
Inicie sesión para calificar la API
Valoración: 5 - Votos: 1