MCPcopy Create free account
hub / github.com/albinowax/ActiveScanPlusPlus / doActiveScan

Method doActiveScan

src/burp/SimpleFuzz.java:18–35  ·  view source on GitHub ↗
(IHttpRequestResponse basePair, IScannerInsertionPoint insertionPoint)

Source from the content-addressed store, hash-verified

16 }
17
18 @Override
19 public List<IScanIssue> doActiveScan(IHttpRequestResponse basePair, IScannerInsertionPoint insertionPoint) {
20 List<IScanIssue> issues = new ArrayList<>();
21
22 // Construct the attack payload
23 byte[] payload = insertionPoint.buildRequest("a'a\\'b\"c>?>%}}%%>c<[[?${{%}}cake\\".getBytes());
24
25 // Send the attack request
26 IHttpRequestResponse attack = callbacks.makeHttpRequest(basePair.getHttpService(), payload);
27
28 // Compare the response
29 if (!tagmap(helpers.bytesToString(attack.getResponse())).equals(tagmap(helpers.bytesToString(basePair.getResponse())))) {
30 // Launch passive scan if the responses are different
31 launchPassiveScan(attack);
32 }
33
34 return issues;
35 }
36
37
38}

Callers

nothing calls this directly

Calls 4

buildRequestMethod · 0.80
getHttpServiceMethod · 0.80
tagmapMethod · 0.80
launchPassiveScanMethod · 0.80

Tested by

no test coverage detected