Route: https://api.kayran.live/GetVulnsScan
Using this feature will allow you to view all Vulnerabilities found in a certain Scan.
Note : deleting a certain scan will also delete the vulnerabilities from the database which prevents you from viewing them.
Roles Required: Admin and User. Private Users can only View Vulnerabilities from Scans they created.
Request Syntax
{
"apiKey": "String",
"token": "String",
"limit": 123,
"offset": 123
}
Request Parameters
Parameters being used in the Request
Parameter Name :
apiKey
Parameter Usage and Options :
Your Kayran given API Key.
How do I get it ? :
Located in the “Profile” section.
Note : by default, the “API Status” is enabled, unless, the Admin has disabled it in the “Server Settings” section.
Type :
String
Is it Optional ? :
No.
Parameter Name :
token
Parameter Usage and Options :
The scan’s token.
How do I get it ? :
Simply use the “GetScan” or “GetAllScans” function, or navigate to a certain scan’s page, and in the address bar, you will notice “token=String”, use that String.
Type :
String
Is it Optional ? :
No.
Parameter Name :
limit
Parameter Usage and Options :
How many Vulnerabilities do you want to be displayed. The Vulnerabilities will be displayed from the highest severity to the lowest.
Type :
Integer
Is it Optional ? :
Yes. By not using it, all Vulnerabilities in the Scan will be fetched.
Parameter Name :
offset
Parameter Usage and Options :
From which “position” you wish to fetch the Vulnerabilities. Like in an Array, for example, inserting 1 will fetch Vulnerabilities from the second one that was found.
Type :
Integer
Is it Optional ? :
Yes.
Successful Response
{
"Error": 0,
"Function": "GetVulnsScan",
"Data": [
{
"id": 92460,
"url": "https://example.com/",
"action": "https://example.com/",
"vuln_name": "Unencrypted Connection",
"severity": "Low",
"method": "GET",
"id_connection": "123456",
"request": "GET / ...",
"response": "",
"key": "https://example.com/",
"payload": "https://example.com/",
"params": "",
"cookies": "None",
"headers": "Headers({'})",
"status_code": "123",
"content_type": "",
"fixed": "0",
"token": "String",
"version": "",
"img": "/"
},
{...}
}
Errors and their Possible Causes
For more information, please refer to the General Errors section.