Skip to content

Commit

Permalink
burp fix
Browse files Browse the repository at this point in the history
  • Loading branch information
siewer committed Jun 25, 2024
1 parent 3e63475 commit 18a8d0c
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,14 @@ public void runScan(WebApp webApp, Scanner scanner) throws Exception {
} catch (HttpClientErrorException e){
log.error("Cannot run scan for {} - {}", webApp.getUrl(), e.getStatusCode());
} catch (ResourceAccessException rao) {
webApp.setInQueue(false);
webApp.setRunning(false);
scanner.setRunningScans(scanner.getRunningScans()-1);
log.error("Resource access exception for {} - {}", webApp.getUrl(), rao.getLocalizedMessage());
} catch (HttpServerErrorException e) {
webApp.setInQueue(false);
webApp.setRunning(false);
scanner.setRunningScans(scanner.getRunningScans()-1);
log.error ("Cannot run scan for {} - server error {} ", webApp.getUrl(),e.getStatusCode());
}
}
Expand Down

0 comments on commit 18a8d0c

Please sign in to comment.