Skip to content

Commit

Permalink
Update zap-java lib
Browse files Browse the repository at this point in the history
  • Loading branch information
continuumsecurity committed Jun 18, 2017
1 parent 8cc9e65 commit 5fc7ef7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
Binary file modified lib/zap-java-api-2.6.0.jar
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ public void disableAllScanners() {
public ZAProxyScanner getScanner() {
if (scanner == null) {
scanner = new ZAProxyScanner(Config.getInstance().getProxyHost(), Config.getInstance().getProxyPort(), Config.getInstance().getProxyApi());
scanner.setAttackMode();
}
return scanner;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ public void clearProxy() {
public LoggingProxy getProxy() {
if (proxy == null)
proxy = new ZAProxyScanner(Config.getInstance().getProxyHost(), Config.getInstance().getProxyPort(), Config.getInstance().getProxyApi());
proxy.setAttackMode();
return proxy;
}

Expand Down Expand Up @@ -479,8 +480,8 @@ private void checkAccessUsingCookieMethod(String sensitiveData) {
e.printStackTrace();
throw new RuntimeException("Could not copy Har request");
}
List<HarEntry> results = getProxy().makeRequest(manual, true);
results = getProxy().findInResponseHistory(sensitiveData);
getProxy().makeRequest(manual, false); //TODO change this to true once ZAP bug is fixed
List<HarEntry> results = getProxy().findInResponseHistory(sensitiveData);
accessible = results != null && results.size() > 0;
if (accessible) break;
}
Expand Down

0 comments on commit 5fc7ef7

Please sign in to comment.