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

Method codepathAttack

src/burp/PerRequestScans.java:322–334  ·  view source on GitHub ↗
(IHttpRequestResponse basePair, String contentType)

Source from the content-addressed store, hash-verified

320 }
321
322 private Pair<String, IHttpRequestResponse> codepathAttack(IHttpRequestResponse basePair, String contentType) {
323 byte[] attack = OldUtilities.setHeader(basePair.getRequest(), "Content-Type", contentType, true);
324 if (attack == null) {
325 return new ImmutablePair<>("-1", null);
326 }
327
328 IHttpRequestResponse result = Utilities.callbacks.makeHttpRequest(basePair.getHttpService(), attack);
329 byte[] resp = result.getResponse();
330 if (resp == null) {
331 resp = new byte[0];
332 }
333 return new ImmutablePair<>(OldUtilities.tagmap(OldUtilities.safeBytesToString(resp)), result);
334 }
335
336
337 private IScanIssue _raise(IHttpRequestResponse basePair, IHttpRequestResponse attack, String type) {

Callers 1

doCodePathScanMethod · 0.95

Calls 4

setHeaderMethod · 0.95
tagmapMethod · 0.95
safeBytesToStringMethod · 0.95
getHttpServiceMethod · 0.80

Tested by

no test coverage detected