Skip to content

Commit

Permalink
Updated the plugin. Slight text display.
Browse files Browse the repository at this point in the history
  • Loading branch information
HoLyVieR committed Jan 20, 2019
1 parent 3289b72 commit a856278
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Binary file modified lib/endpointfinder-java-0.0.1-SNAPSHOT.jar
Binary file not shown.
7 changes: 4 additions & 3 deletions src/main/java/burp/TabResults.java
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,10 @@ public void setMessage(byte[] message, boolean isRequest) {
EndpointResult result = EndpointFinder.getEndpoints(stringToParse);
List<EndpointEntry> entries = result.getEntries();

display.append("Results (" + entries.size() + ")");
display.append("Results (" + entries.size() + ")\n\n");

for (EndpointEntry entry : entries) {
display.append("--------------------\n\n");
display.append("--------------------\n");
display.append("Path : " + entry.getPath() + "\n");


Expand All @@ -97,12 +97,13 @@ public void setMessage(byte[] message, boolean isRequest) {
}
}

display.append("\n\n--------------------\n\n");
display.append("--------------------\n\n");
displayContent.setText(display.toString().getBytes());
} catch (Exception e) {
String errMessage = "An error occured during the parsing of the content.\n\n";
errMessage += e.getMessage();
displayContent.setText(errMessage.getBytes());
e.printStackTrace();
}
} else {
displayContent.setText("No content found in the body.".getBytes());
Expand Down

0 comments on commit a856278

Please sign in to comment.