Skip to content

Commit

Permalink
Update BurpExtender.java
Browse files Browse the repository at this point in the history
Change header to `Accept: */*` 
Fix mistake in `status_code`  option
  • Loading branch information
alanEG authored Dec 19, 2022
1 parent dad0535 commit 746e9b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/BurpExtender.java
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ public byte[] sendRequest(String url){
+ "Connection: close\r\n"
+ "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36\r\n"
+ "Sec-Fetch-Site: same-origin\r\n"
+ "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9\r\n"
+ "Accept: */*\r\n"
+ "Accept-Language: en-US,en;q=0.9\r\n"
+ "\r\n").getBytes(Charset.forName("UTF-8")));
return response;
Expand Down Expand Up @@ -205,7 +205,7 @@ public void ActiveCheck(String url,JsonObject messageObj,String fromUrl){
break;
case "status_code":
responseAnaluz = helpers.analyzeResponse(response);
if (responseAnaluz.getStatusCode() != (int)messageObj.get("status_code").getAsInt()){
if (responseAnaluz.getStatusCode() == (int)messageObj.get("status_code").getAsInt()){
extenderGui.addToTable("Vulnrable",url, fromUrl);
} else {
extenderGui.addToTable("Not_Vulnrable",url, fromUrl);
Expand Down

0 comments on commit 746e9b9

Please sign in to comment.