Files
HaE/src/main/java/burp/action/MatchHTTP.java

21 lines
481 B
Java
Raw Normal View History

2021-06-10 22:59:27 +08:00
package burp.action;
import jregex.Matcher;
import jregex.Pattern;
import jregex.REFlags;
2021-10-22 21:58:45 +08:00
import burp.yaml.LoadConfig;
2021-06-10 22:59:27 +08:00
/*
* @author EvilChen
*/
public class MatchHTTP {
// 匹配后缀
2021-10-22 21:58:45 +08:00
LoadConfig lc = new LoadConfig();
2021-06-10 22:59:27 +08:00
public boolean matchSuffix(String str) {
Pattern pattern = new Pattern(String.format("[\\w]+[\\.](%s)", lc.getExcludeSuffix()), REFlags.IGNORE_CASE);
Matcher matcher = pattern.matcher(str);
2021-09-07 22:09:42 +08:00
return matcher.find();
2021-06-10 22:59:27 +08:00
}
}