Skip to content

Commit

Permalink
Update FindUrlAndRequest.java
Browse files Browse the repository at this point in the history
  • Loading branch information
bit4woo committed May 7, 2024
1 parent cc30db2 commit 94b4f7e
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/knife/FindUrlAndRequest.java
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,13 @@ class FindUrl_Action implements ActionListener {
public IBurpExtenderCallbacks callbacks;
public BurpExtender burp;
public static final String[] blackHostList = {"www.w3.org", "ns.adobe.com", "iptc.org", "openoffice.org"
, "schemas.microsoft.com", "schemas.openxmlformats.org", "sheetjs.openxmlformats.org"};
, "schemas.microsoft.com", "schemas.openxmlformats.org", "sheetjs.openxmlformats.org","registry.npmjs.org"};

public static final List<String> blackPath = TextUtils.textToLines("text/css\r\n"
+ " text/html\r\n"
+ " text/plain\r\n"
+ " image/pdf\r\n");

private static Proxy proxy;

public FindUrl_Action(BurpExtender burp, IContextMenuInvocation invocation) {
Expand Down Expand Up @@ -246,6 +252,9 @@ public static List<String> cleanUrls(List<String> urls) {
if (UrlUtils.uselessExtension(urlItem)) {
it.remove();
}
if (blackPath.contains(urlItem)) {
it.remove();
}
try {
String host = new URL(urlItem).getHost();
if (Arrays.asList(blackHostList).contains(host)) {
Expand Down

0 comments on commit 94b4f7e

Please sign in to comment.