Route: https://api.cytrix.io/ChangeCookies
This feature will allow you to attach any existing scan, to a certain project.
Roles Required: Admin. Users and Private Users can only Change/Attach to Projects for Scans they initiated.
Request Syntax
{
"apiKey": "String",
"token": "String"
,
"cookies": {"example.com": "key1=val1; key2=val2;"}
}
Request Parameters
Parameters being used in the Request
Parameter Name :
apiKey
Parameter Usage and Options :
Your CYTRIX 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 :
cookies
Parameter Usage and Options :
This parameter will allow you to set your own cookies that will be sent forward to your target while scanning with CYTRIX.
Type :
String
Is it Optional ? :
No.
Successful Response
{
“Error”: 0,
“Function”: “ChangeCookies”,
“Data”: “Target Successes update”
}
Errors and their Possible Causes
For more information, please refer to the General Errors section.