MCPcopy Index your code
hub / github.com/API-Security/APIKit / detect

Method detect

src/main/java/burp/application/ApiScanner.java:25–38  ·  view source on GitHub ↗
(IHttpRequestResponse baseRequestResponse, boolean isPassive)

Source from the content-addressed store, hash-verified

23 }
24
25 public ArrayList<ApiType> detect(IHttpRequestResponse baseRequestResponse, boolean isPassive) {
26 ArrayList<ApiType> apiTypes = new ArrayList<>();
27 for (BiFunction<IHttpRequestResponse, Boolean, ApiType> apiTypeConstructor : apiTypeConstructors) {
28 try {
29 ApiType apiType = apiTypeConstructor.apply(baseRequestResponse, isPassive);
30 if (apiType.isFingerprintMatch()) {
31 apiTypes.add(apiType);
32 }
33 } catch (Exception e) {
34 BurpExtender.getStderr().println(CommonUtils.exceptionToString(e));
35 }
36 }
37 return apiTypes;
38 }
39}

Callers 2

actionPerformedMethod · 0.80
doPassiveScanMethod · 0.80

Calls 4

isFingerprintMatchMethod · 0.95
getStderrMethod · 0.95
exceptionToStringMethod · 0.95
addMethod · 0.45

Tested by

no test coverage detected