You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The package defines a simple public API to manage scans, create, and send the reporters after the scan has been finished.
Implement ScanFactory which provides a simple API to create Scan.
To configure Scan should be used ScanSettings.
exportinterfaceTarget{// The server URL that will be used for the requesturl: string;// The query parameters to be sent with the requestquery?: URLSearchParams|Record<string,string>;// The data to be sent as the request body.// The only required for POST, PUT, PATCH, and DELETEbody?: FormData|URLSearchParams|string|unknown;// The request method to be used when making the request, GET by defaultmethod?: string;// The headersheaders?: Record<string,string>;// The optional method of serializing `query`// (e.g. https://www.npmjs.com/package/qs, http://api.jquery.com/jquery.param/)serializeQuery?(params: URLSearchParams|Record<string,unknown>): string;}exportinterfaceScanSettings{// The Scan namename: string;// The list of tests to be performed against the target applicationtests: TestType[];// The target that will be attackedtarget: Target;// Determine whether scan is smart or simplesmart?: boolean;// Pool sizepoolSize?: number;// Allows to skip testing static parameters.skipStaticParams?: boolean;// Defines which part of the request to attackattackParamLocations?: AttackParamLocation[];}
To Generate HAR file should be implemented HarEntityBuilder that will be used like on example
The package defines a simple public API to manage scans, create, and send the reporters after the scan has been finished.
Implement
ScanFactory
which provides a simple API to createScan
.To configure
Scan
should be usedScanSettings
.To Generate HAR file should be implemented
HarEntityBuilder
that will be used like on exampleIn
Scan
should be implemented next methodsissues
- get a list of found issues;status
- ensure that the scan is done and nothing prevents the user to check for issues;waitFor
- check whether the scan satisfies the user’s expectation;stop
- method to stop a scanThe text was updated successfully, but these errors were encountered: