Version: 2.1.5 Update
This commit is contained in:
@@ -29,7 +29,7 @@ public class BurpExtender implements IBurpExtender, IHttpListener, IMessageEdito
|
|||||||
this.callbacks = callbacks;
|
this.callbacks = callbacks;
|
||||||
BurpExtender.helpers = callbacks.getHelpers();
|
BurpExtender.helpers = callbacks.getHelpers();
|
||||||
|
|
||||||
String version = "2.1.4";
|
String version = "2.1.5";
|
||||||
callbacks.setExtensionName(String.format("HaE (%s) - Highlighter and Extractor", version));
|
callbacks.setExtensionName(String.format("HaE (%s) - Highlighter and Extractor", version));
|
||||||
// 定义输出
|
// 定义输出
|
||||||
stdout = new PrintWriter(callbacks.getStdout(), true);
|
stdout = new PrintWriter(callbacks.getStdout(), true);
|
||||||
|
|||||||
@@ -39,5 +39,5 @@ public class Config {
|
|||||||
"gray"
|
"gray"
|
||||||
};
|
};
|
||||||
|
|
||||||
public static Map<String,Object[][]> ruleConfig = LoadConfig.getRules();
|
public static Map<String,Object[][]> ruleConfig = null;
|
||||||
}
|
}
|
||||||
@@ -27,6 +27,7 @@ public class LoadConfig {
|
|||||||
initSetting();
|
initSetting();
|
||||||
initRules();
|
initRules();
|
||||||
}
|
}
|
||||||
|
Config.ruleConfig = LoadConfig.getRules();
|
||||||
}
|
}
|
||||||
|
|
||||||
// 初始化设置信息
|
// 初始化设置信息
|
||||||
@@ -91,14 +92,21 @@ public class LoadConfig {
|
|||||||
|
|
||||||
// 获取不包含的后缀名
|
// 获取不包含的后缀名
|
||||||
public String getExcludeSuffix(){
|
public String getExcludeSuffix(){
|
||||||
|
String excludeSuffix = "";
|
||||||
|
File yamlSetting = new File(SettingPath);
|
||||||
|
if (yamlSetting.exists() && yamlSetting.isFile()) {
|
||||||
try {
|
try {
|
||||||
InputStream inorder = new FileInputStream(SettingPath);
|
InputStream inorder = new FileInputStream(SettingPath);
|
||||||
Map<String,Object> r = yaml.load(inorder);
|
Map<String,Object> r = yaml.load(inorder);
|
||||||
return r.get("excludeSuffix").toString();
|
excludeSuffix = r.get("excludeSuffix").toString();
|
||||||
} catch (FileNotFoundException e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
// e.printStackTrace();
|
||||||
return Config.excludeSuffix;
|
excludeSuffix = "";
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
excludeSuffix = Config.excludeSuffix;
|
||||||
|
}
|
||||||
|
return excludeSuffix;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 获取规则配置
|
// 获取规则配置
|
||||||
|
|||||||
Reference in New Issue
Block a user