Version: 2.1.5 Update

This commit is contained in:
AnonymousUser
2022-02-25 13:22:14 +08:00
parent c4d8743fe3
commit a6d5f3a204
3 changed files with 17 additions and 9 deletions

View File

@@ -29,7 +29,7 @@ public class BurpExtender implements IBurpExtender, IHttpListener, IMessageEdito
this.callbacks = callbacks;
BurpExtender.helpers = callbacks.getHelpers();
String version = "2.1.4";
String version = "2.1.5";
callbacks.setExtensionName(String.format("HaE (%s) - Highlighter and Extractor", version));
// 定义输出
stdout = new PrintWriter(callbacks.getStdout(), true);

View File

@@ -39,5 +39,5 @@ public class Config {
"gray"
};
public static Map<String,Object[][]> ruleConfig = LoadConfig.getRules();
public static Map<String,Object[][]> ruleConfig = null;
}

View File

@@ -27,6 +27,7 @@ public class LoadConfig {
initSetting();
initRules();
}
Config.ruleConfig = LoadConfig.getRules();
}
// 初始化设置信息
@@ -91,14 +92,21 @@ public class LoadConfig {
// 获取不包含的后缀名
public String getExcludeSuffix(){
try {
InputStream inorder = new FileInputStream(SettingPath);
Map<String,Object> r = yaml.load(inorder);
return r.get("excludeSuffix").toString();
} catch (FileNotFoundException e) {
e.printStackTrace();
return Config.excludeSuffix;
String excludeSuffix = "";
File yamlSetting = new File(SettingPath);
if (yamlSetting.exists() && yamlSetting.isFile()) {
try {
InputStream inorder = new FileInputStream(SettingPath);
Map<String,Object> r = yaml.load(inorder);
excludeSuffix = r.get("excludeSuffix").toString();
} catch (Exception e) {
// e.printStackTrace();
excludeSuffix = "";
}
} else {
excludeSuffix = Config.excludeSuffix;
}
return excludeSuffix;
}
// 获取规则配置