2024-05-06 12:56:56 +08:00
|
|
|
package hae;
|
|
|
|
|
|
|
|
|
|
import java.util.HashMap;
|
|
|
|
|
import java.util.List;
|
|
|
|
|
import java.util.Map;
|
|
|
|
|
import java.util.concurrent.ConcurrentHashMap;
|
|
|
|
|
|
|
|
|
|
public class Config {
|
|
|
|
|
public static String suffix = "3g2|3gp|7z|aac|abw|aif|aifc|aiff|apk|arc|au|avi|azw|bat|bin|bmp|bz|bz2|cmd|cmx|cod|com|csh|css|csv|dll|doc|docx|ear|eot|epub|exe|flac|flv|gif|gz|ico|ics|ief|jar|jfif|jpe|jpeg|jpg|less|m3u|mid|midi|mjs|mkv|mov|mp2|mp3|mp4|mpa|mpe|mpeg|mpg|mpkg|mpp|mpv2|odp|ods|odt|oga|ogg|ogv|ogx|otf|pbm|pdf|pgm|png|pnm|ppm|ppt|pptx|ra|ram|rar|ras|rgb|rmi|rtf|scss|sh|snd|svg|swf|tar|tif|tiff|ttf|vsd|war|wav|weba|webm|webp|wmv|woff|woff2|xbm|xls|xlsx|xpm|xul|xwd|zip";
|
|
|
|
|
|
2024-05-23 12:00:13 +08:00
|
|
|
public static String host = "gh0st.cn";
|
|
|
|
|
|
2024-08-12 10:34:26 +08:00
|
|
|
public static String status = "404";
|
|
|
|
|
|
2024-09-19 17:08:46 +08:00
|
|
|
public static String size = "0";
|
|
|
|
|
|
2024-08-23 22:03:31 +08:00
|
|
|
public static String boundary = "\n\t\n";
|
|
|
|
|
|
2024-05-12 19:02:38 +08:00
|
|
|
public static String[] scope = new String[]{
|
2024-05-06 12:56:56 +08:00
|
|
|
"any",
|
|
|
|
|
"any header",
|
|
|
|
|
"any body",
|
|
|
|
|
"response",
|
2024-05-09 13:32:22 +08:00
|
|
|
"response line",
|
2024-05-06 12:56:56 +08:00
|
|
|
"response header",
|
|
|
|
|
"response body",
|
|
|
|
|
"request",
|
2024-05-09 13:32:22 +08:00
|
|
|
"request line",
|
2024-05-06 12:56:56 +08:00
|
|
|
"request header",
|
|
|
|
|
"request body"
|
|
|
|
|
};
|
|
|
|
|
|
2024-07-23 09:21:30 +08:00
|
|
|
public static String scopeOptions = "Suite|Target|Proxy|Scanner|Intruder|Repeater|Logger|Sequencer|Decoder|Comparer|Extensions|Organizer|Recorded login replayer";
|
|
|
|
|
|
2024-11-16 18:06:49 +08:00
|
|
|
public static String modeStatus = "true";
|
|
|
|
|
|
2024-05-06 12:56:56 +08:00
|
|
|
public static String[] ruleFields = {
|
2024-05-12 19:02:38 +08:00
|
|
|
"Loaded", "Name", "F-Regex", "S-Regex", "Format", "Color", "Scope", "Engine", "Sensitive"
|
2024-05-06 12:56:56 +08:00
|
|
|
};
|
|
|
|
|
|
2024-05-12 19:02:38 +08:00
|
|
|
public static Object[][] ruleTemplate = new Object[][]{
|
2024-05-06 12:56:56 +08:00
|
|
|
{
|
|
|
|
|
false, "New Name", "(First Regex)", "(Second Regex)", "{0}", "gray", "any", "nfa", false
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
2024-05-12 19:02:38 +08:00
|
|
|
public static String[] engine = new String[]{
|
2024-05-06 12:56:56 +08:00
|
|
|
"nfa",
|
|
|
|
|
"dfa"
|
|
|
|
|
};
|
|
|
|
|
|
2024-05-12 19:02:38 +08:00
|
|
|
public static String[] color = new String[]{
|
2024-05-06 12:56:56 +08:00
|
|
|
"red",
|
|
|
|
|
"orange",
|
|
|
|
|
"yellow",
|
|
|
|
|
"green",
|
|
|
|
|
"cyan",
|
|
|
|
|
"blue",
|
|
|
|
|
"pink",
|
|
|
|
|
"magenta",
|
|
|
|
|
"gray"
|
|
|
|
|
};
|
|
|
|
|
|
2025-01-08 13:49:12 +08:00
|
|
|
public static Boolean proVersionStatus = true;
|
|
|
|
|
|
2024-05-06 12:56:56 +08:00
|
|
|
public static Map<String, Object[][]> globalRules = new HashMap<>();
|
|
|
|
|
|
|
|
|
|
public static ConcurrentHashMap<String, Map<String, List<String>>> globalDataMap = new ConcurrentHashMap<>();
|
|
|
|
|
}
|