Exploit databaseDownload repository ZIP
GH-8dd5c929a688e88f55b03dc2de96d138
0x727/bypasspro
Sources for CVE-2023-42442
5 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.
Repository files19
0x727/bypassproRevision 4dca2c01d6cf
- ↑..Parent directory
- ghostbits/
- BaseRequest.java
- Bypass.java
- BypassMain.java
- BypassTable.java
- BypassTableModel.java
- ConfigLoader.java
- ConfigPanel.java
- DiffPage.java
- HttpResponse.java
- I18n.java
- I18nKeys.java
- MainPanel.java
- ManualWafPanel.java
- RedirectPolicy.java
- RequestBodyPolicy.java
- ScanSession.java
- TextCodec.java
- Utils.java
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
src/main/java/Main/I18nKeys.java
Java · 94,374 bytespackage Main;
/**
* I18n 字符串集中注册。所有 UI 文案的中英文版本在这里统一维护,
* 避免散落在业务代码中影响阅读。
*
* <p>命名规范:
* <ul>
* <li>btn.{name} 按钮文本</li>
* <li>row.{name} addToolRow 行标签</li>
* <li>sec.{name} section 分隔线标题</li>
* <li>tab.{name} Tab / 子 Tab 标题</li>
* <li>label.{name} 一般 JLabel</li>
* <li>tooltip.{name}.title tooltip 第一行</li>
* <li>tooltip.{name}.desc tooltip 描述(多行用 \n 分隔)</li>
* <li>status.{name} 状态栏消息</li>
* <li>dialog.{name} 弹窗消息(含 .title 后缀表标题)</li>
* <li>config.{name} ConfigPanel 文案</li>
* </ul>
*/
final class I18nKeys {
private I18nKeys() {}
static void register() {
registerWorkflow();
registerLabels();
registerTooltips();
registerStatus();
registerDialogs();
registerConfig();
registerRemainingUi();
registerParameterizedUi();
}
// =========================================================
// 按钮 / 行标签 / Section / Tab / 普通 Label
// =========================================================
private static void registerWorkflow() {
I18n.put("baseline.checking", "基线检查中:%s", "Checking baseline: %s");
I18n.put("baseline.same", "基线:本次状态与正文一致", "Baseline: same status and body this time");
I18n.put("baseline.changed", "基线有变化,需复核", "Baseline changed; review needed");
I18n.put("baseline.unknown", "基线:正文无法比较", "Baseline: body comparison unavailable");
I18n.put("baseline.no_reference", "基线已重发;缺少同条件响应,无法判断稳定性", "Baseline replayed; no matching reference to assess stability");
I18n.put("baseline.metrics", "状态 %s → %s · 响应 %d → %dB · 正文相似度 %s", "Status %s -> %s · %d -> %dB · Body similarity %s");
I18n.put("baseline.location_changed", "跳转目标变化", "Redirect target changed");
I18n.put("baseline.type_changed", "响应类型变化", "Content type changed");
I18n.put("baseline.final", "跟随跳转后的基线:%d / %dB", "Baseline after redirects: %d / %dB");
I18n.put("baseline.not_checked", "基线未重发;先点击“重发原请求”", "Baseline not replayed; click Replay Original first");
I18n.put("baseline.failed", "基线重发失败,未更新有效基线", "Baseline replay failed; no valid baseline updated");
I18n.put("baseline.updated", "基线已更新;当前响应早于此次重发,请重新发送后比较", "Baseline updated; current response predates this replay. Resend to compare");
I18n.put("baseline.conditions_changed", "网络目标、发送方式或跳转设置已变化;请重发原请求", "Target, sender or redirect settings changed; replay original");
I18n.put("baseline.compare", "对比重发基线:%s", "Baseline comparison: %s");
I18n.put("baseline.raw_comparison", "发送条件变化:基线为 Burp,变体为 Raw 且不跟随跳转;需复核", "Conditions changed: Burp baseline vs Raw variant without redirects; review needed");
I18n.put("dashboard.baselines", "基线", "Baselines");
I18n.put("manual.replay_original", "重发原请求", "Replay Original");
I18n.put("manual.replay_original.tip", "按当前网络目标和发送设置重发载入的原请求,保留编辑器中的变体。一次重发只提供本次对比证据。", "Replay the loaded original with current target and send settings, preserving editor changes. One replay provides comparison evidence only.");
I18n.put("manual.restore_original", "恢复原请求", "Restore Original");
I18n.put("manual.response.baseline", "基线响应", "Baseline response");
I18n.put("manual.response.latest", "当前响应", "Current response");
I18n.put("manual.request.empty_short", "未载入请求", "No request loaded");
I18n.put("manual.response.none_short", "尚无响应", "No response");
I18n.put("manual.response.current_short", "本次发送或载入的响应", "Sent or loaded response");
I18n.put("manual.response.previous_short", "响应属于此前版本;编辑器已修改", "Response for previously sent version");
I18n.put("manual.steps", "变换:%s", "Transformations: %s");
I18n.put("manual.steps.tip", "建议:重发原请求 → 恢复原请求 → 应用一个变换 → Send → 对比基线。组合变换会显示操作顺序;配套 Header/长度调整属于同一变换。", "Suggested: Replay Original -> Restore Original -> apply one transformation -> Send -> compare baseline. Combined transformations show their order; related header/length updates belong to the same transformation.");
I18n.put("manual.steps.edit", "手动编辑", "Manual edit");
I18n.put("manual.steps.original", "原请求", "Original request");
I18n.put("auto.changes", "从原请求生成 · %s", "Generated from original · %s");
I18n.put("parser.preview", "最近一次 Parser 模型预览", "Last parser model preview");
I18n.put("parser.local_model", "仅本地模型;目标解析行为需验证", "Local model only; verify the target parser");
I18n.put("manual.text_failed", "文本转换失败,请检查字符集;已保留请求", "Text conversion failed; check the charset. Request retained");
I18n.put("manual.body_encoded", "已跳过正文转换:须先处理传输编码或内容编码", "Body conversion skipped: decode transfer/content encoding first");
I18n.put("dialog.body_nested_json", "正文转换仅支持扁平 JSON,嵌套对象或数组无法转换;已保留请求。", "Body conversion supports flat JSON only; nested objects or arrays cannot be converted. Request retained.");
I18n.put("dialog.body_file_conversion", "正文包含文件字段,无法转换为文本参数;已保留请求。", "The body contains file parts and cannot be converted to text parameters. Request retained.");
I18n.put("dashboard.planned", "计划:", "Planned:");
I18n.put("dashboard.completed", "完成:", "Done:");
I18n.put("dashboard.prepare_failed", "请求准备失败:%s", "Could not prepare requests: %s");
I18n.put("manual.selection.required", "请先在请求编辑器中选中文本", "Select text in the request editor first");
I18n.put("manual.response.not_sent", "尚无响应;点击 Send 发送已载入的请求", "No response yet; click Send to send the loaded request");
I18n.put("config.reload_failed", "配置无效,已保留当前有效规则和输入。", "Invalid configuration; current rules and inputs were retained.");
I18n.put("config.reloaded", "已重新加载配置。", "Configuration reloaded.");
I18n.put("redirect.cross_origin", "目标主机、端口或协议不同,未自动跟随", "Different host, port or protocol; redirect not followed");
I18n.put("redirect.limit", "已达到跳转上限", "Redirect limit reached");
I18n.put("redirect.loop", "检测到重复跳转", "Redirect loop detected");
I18n.put("redirect.stopped", "跳转停止:%s", "Redirect stopped: %s");
I18n.put("manual.response.empty", "尚无响应;从 Burp 右键发送请求到 Manual WAF", "No response; send a request here from the Burp context menu");
I18n.put("manual.response.current", "响应对应本次发送/载入的请求;跳转详情见提示", "Response for the sent/loaded request; hover for redirect details");
I18n.put("manual.response.previous", "编辑器已修改;响应对应此前发送的版本", "Editor changed; response belongs to the previously sent version");
I18n.put("manual.response.waiting", "等待响应:%s | %d 字节 | %s", "Waiting: %s | %d bytes | %s");
I18n.put("manual.history.toggle", "显示 History", "Show History");
I18n.put("manual.history.hint", "双击载入完整请求、响应和网络目标", "Double-click to load request, response and network target");
I18n.put("manual.history.short_hint", "双击载入", "Double-click to load");
I18n.put("history.sender", "通道", "Sender");
I18n.put("history.method", "方法", "Method");
I18n.put("history.path", "路径", "Path");
I18n.put("history.status", "状态", "Status");
I18n.put("history.length", "长度", "Length");
I18n.put("history.duration", "耗时(ms)", "Time(ms)");
I18n.put("history.clock", "时间", "Clock");
I18n.put("history.target", "网络目标", "Target");
I18n.put("manual.history.selected", "已选历史 #%d · %s;双击载入", "History #%d selected · %s; double-click to load");
I18n.put("manual.history.no_target", "该历史缺少网络目标,无法安全重放", "History has no network target; cannot replay");
I18n.put("manual.scope.none", "无选区 · 范围按工具提示", "No selection · scope follows tool tooltip");
I18n.put("manual.scope.selection", "当前选区:%d 字节", "Selection: %d bytes");
I18n.put("manual.network_target", "网络目标 Host:", "Network Host:");
I18n.put("manual.redirect.raw", "Raw Socket 不支持自动跳转;保留原始请求字节", "Raw Socket does not follow redirects; original request bytes are preserved");
I18n.put("manual.redirect.same_origin", "仅跟随相同主机、端口和协议的跳转", "Follow redirects only within the same host, port and protocol");
I18n.put("manual.cancel.detached", "已取消本次等待;底层请求可能仍在结束,晚到结果会被忽略", "Wait cancelled; transport may still finish, late results will be ignored");
I18n.put("manual.mutation", "%s · %d → %d 字节 · 可撤销", "%s · %d → %d bytes · Undo available");
I18n.put("manual.sending.elapsed", "发送中 · 已等待 %d 秒", "Sending · %d seconds elapsed");
I18n.put("manual.replace.confirm", "当前请求有未发送修改。是否替换?选择“否”保留当前请求。", "This request has unsent edits. Replace it? Choose No to keep the current request.");
I18n.put("manual.port_range", "端口必须为 1–65535", "Port must be between 1 and 65535");
I18n.put("manual.no_response", "未收到响应", "No response received");
I18n.put("manual.loaded", "已载入:%s", "Loaded: %s");
I18n.put("diff.no_original", "无原始请求", "original unavailable");
I18n.put("diff.unchanged", "未变化", "unchanged");
I18n.put("diff.line", "请求行已变化", "request line changed");
I18n.put("diff.headers", "Headers 已变化", "headers changed");
I18n.put("diff.body", "Body 已变化(%d → %d 字节)", "body changed (%d -> %d bytes)");
I18n.put("dashboard.active", "执行中:", "Active:");
I18n.put("dashboard.cancelled", "取消:", "Cancelled:");
I18n.put("dashboard.stop", "Stop", "Stop");
I18n.put("dashboard.clear", "Clear", "Clear");
I18n.put("dashboard.stop.tip", "关闭 AutoScan、取消排队任务并忽略本轮晚到结果;底层请求可能仍在结束", "Disable AutoScan, cancel queued work and ignore late results; active transports may still finish");
I18n.put("dashboard.clear.tip", "停止本轮并清空结果与计数", "Stop the current run and clear results and counters");
I18n.put("dashboard.stopped", "已停止本轮;取消的请求不会再写入结果。底层请求可能仍在结束。", "Run stopped; cancelled requests cannot add results. Active transports may still finish.");
I18n.put("dashboard.listening", "AutoScan 监听中:仅处理新经过 Proxy 的 401/403 响应;取消勾选只停止接收新流量。", "AutoScan listening: new Proxy 401/403 responses only; uncheck to stop accepting new traffic.");
I18n.put("dashboard.idle", "AutoScan 未开启。可开启监听,或从 Burp 右键发送到 BypassPro。", "AutoScan is off. Enable it or send requests from the Burp context menu.");
I18n.put("dashboard.autoscan.tip", "控制新流量监听;停止已排队任务请使用 Stop", "Controls new traffic; use Stop to cancel queued work");
I18n.put("dashboard.threads.tip", "1–100;当前队列排空后应用新的并发上限,Manual WAF 独立发送", "1–100; a new concurrency limit applies after current work drains; Manual WAF sends separately");
I18n.put("dashboard.queue_full", "待处理输入已满,本次输入未入队;等待队列排空后可手动重试。", "Input queue is full; this input was not queued. Retry manually after it drains.");
I18n.put("dashboard.signals", "信号与错误", "Signals + errors");
I18n.put("dashboard.all", "全部结果", "All results");
I18n.put("dashboard.errors", "错误", "Errors");
I18n.put("dashboard.filtered", "已过滤", "Filtered");
I18n.put("dashboard.search", "搜索 URL / 原因:", "Search URL / reason:");
I18n.put("dashboard.retained", "保留 %d 条(上限 5000),已移除最早 %d 条", "Retained %d (limit 5000); %d oldest removed");
}
private static void registerLabels() {
// ---- Top-level UI ----
I18n.put("label.host", "Host:", "Host:");
I18n.put("label.port", "Port:", "Port:");
I18n.put("label.noise_target", "Noise 作用方式:", "Noise placement:");
I18n.put("label.history_border", "History", "History");
I18n.put("label.bypass_tools_border", "Bypass Tools", "Bypass Tools");
// Bypass Tools 子 Tab(保持英文,技术术语)
// 这些不翻译:Obfuscation & Noise / Data Encoding / Char Mutation / Header Bypass / Body Bypass / Gh0st Bits
// 但提供 key 以便日后扩展
// ---- Section separators ----
I18n.put("sec.noise_atoms", "噪声原子", "Noise Atoms");
I18n.put("sec.path_mutations", "路径变形", "Path Mutations");
// ---- Row labels ----
I18n.put("row.control_chars", "控制字符", "Control Chars");
I18n.put("row.space_like", "类空格", "Space-like");
I18n.put("row.wrappers", "包裹符", "Wrappers");
I18n.put("row.generated", "生成", "Generated");
I18n.put("row.traversal", "路径穿越", "Traversal");
I18n.put("row.suffix", "后缀", "Suffix");
I18n.put("row.segment", "段落", "Segment");
I18n.put("row.boundary", "边界", "Boundary");
I18n.put("row.client_ip", "客户端 IP", "Client IP");
I18n.put("row.source_trust", "来源信任", "Source Trust");
I18n.put("row.type_spoof", "类型伪装", "Type Spoof");
I18n.put("row.body_convert", "Body 转换", "Body Convert");
I18n.put("row.body_wrap", "Body 包装", "Body Wrap");
I18n.put("row.url", "URL", "URL");
I18n.put("row.base64", "Base64", "Base64");
I18n.put("row.unicode_encoding", "Unicode 编码", "Unicode Encoding");
I18n.put("row.ebcdic_encoding", "EBCDIC 编码", "EBCDIC Encoding");
I18n.put("row.charset_params", "字符集参数", "Charset Params");
I18n.put("row.unicode", "Unicode", "Unicode");
I18n.put("row.case", "大小写", "Case");
I18n.put("row.ghost_encode", "Ghost 编码", "Ghost Encode");
I18n.put("row.fold_check", "Ghost 还原", "Ghost Restore");
I18n.put("row.common_payload", "常用载荷", "Common Payload");
I18n.put("row.parserbypass", "解析差异", "ParserBypass");
I18n.put("row.json_parser", "JSON 解析", "JSON Parser");
I18n.put("row.url_file_parser", "URL/文件解析", "URL/File Parser");
I18n.put("row.templates", "模板", "Templates");
// ---- Buttons ----
// 注意:key 必须等于按钮文本经 I18n.slug() 后的结果
// Noise Atoms - Generated
I18n.put("btn.dirtyn", "脏数据(N)", "Dirty(N)");
I18n.put("btn.nulln", "空字节(N)", "Null(N)");
// Header Bypass - 大部分按钮文本就是 header 名,保持原样不翻译
I18n.put("btn.referer_local", "Referer 本地", "Referer local");
I18n.put("btn.x_host_local", "X-Host 本地", "X-Host local");
I18n.put("btn.xf_host_local", "XF Host 本地", "XF Host local");
// Body Bypass
I18n.put("btn.to_form", "转 Form", "To Form");
I18n.put("btn.to_multipart", "转 Multipart", "To Multipart");
I18n.put("btn.to_json", "转 JSON", "To JSON");
I18n.put("btn.gzip_body", "Gzip 压缩 Body", "Gzip body");
// Data Encoding
I18n.put("btn.url_encode", "URL 编码", "URL Encode");
I18n.put("btn.path_encode", "Path 编码", "Path Encode");
I18n.put("btn.double_url", "双重 URL", "Double URL");
I18n.put("btn.mixed_encode", "混合编码", "Mixed Encode");
I18n.put("btn.unicode_", "Unicode 转义", "Unicode Escape");
I18n.put("btn.base64_encode", "Base64 编码", "Base64 Encode");
I18n.put("btn.charset_first", "charset 在前", "charset first");
I18n.put("btn.charset_last", "charset 在后", "charset last");
// Char Mutation
I18n.put("btn.fullwidth", "全角", "Fullwidth");
I18n.put("btn.homoglyph", "同形字符", "Homoglyph");
I18n.put("btn.zero_width", "零宽字符", "Zero Width");
I18n.put("btn.upper", "大写", "Upper");
I18n.put("btn.lower", "小写", "Lower");
I18n.put("btn.random", "随机大小写", "Random");
// Gh0st Bits - Encode
I18n.put("btn.minimal", "最小集", "Minimal");
I18n.put("btn.full", "全量", "Full");
I18n.put("btn.letters", "字母", "Letters");
I18n.put("btn.digits", "数字", "Digits");
I18n.put("btn.symbols", "符号", "Symbols");
I18n.put("btn.shuffle", "换组", "Shuffle");
// Gh0st Bits - Inspect
I18n.put("btn.preview", "预览", "Preview");
I18n.put("btn.candidates", "候选", "Candidates");
I18n.put("btn.jetty_2", "Jetty %2>", "Jetty %2>");
I18n.put("btn.fastjson_x4", "fastjson \\x4_", "fastjson \\x4_");
I18n.put("btn.fastjson_u", "fastjson \\u", "fastjson \\u");
I18n.put("btn.jackson_u", "jackson \\u", "jackson \\u");
I18n.put("btn.unicode_digits", "Unicode 数字", "Unicode Digits");
I18n.put("btn.fullwidth_url", "全角 URL", "Fullwidth URL");
I18n.put("btn.tomcat_hh", "Tomcat %HH", "Tomcat %HH");
// Gh0st Bits - Templates fallback
I18n.put("btn.no_templates", "无模板", "No templates");
I18n.put("tooltip.no_templates",
"YAML 中没有 profiles.manual_waf_bypass.ghost_bits.templates",
"No profiles.manual_waf_bypass.ghost_bits.templates defined in YAML");
// Inspector 行标签
I18n.put("inspector.request", "Request", "Request");
I18n.put("inspector.meta", "Meta", "Meta");
I18n.put("inspector.flags", "Flags", "Flags");
I18n.put("inspector.payload_hints", "Payload 提示", "Payload hints");
I18n.put("inspector.diff", "Diff", "Diff");
// Ghost 紧凑预览
I18n.put("ghost.selection_fold", "Selection Fold", "Selection Fold");
I18n.put("ghost.risk", "Risk", "Risk");
I18n.put("ghost.risk.select", "select text to preview", "select text to preview");
I18n.put("ghost.risk.unsupported", "unsupported binary selection", "unsupported binary selection");
}
// =========================================================
// Tooltip
// =========================================================
private static void registerTooltips() {
// ---------- Char Mutation ----------
I18n.put("tooltip.fullwidth.title", "Fullwidth — 全角字符替换", "Fullwidth — Halfwidth to Fullwidth");
I18n.put("tooltip.fullwidth.desc",
"把选区内 ASCII 转成对应的全角 Unicode\n例如 admin -> admin\n用于绕过基于 ASCII 字面量的关键字检测",
"Convert selected ASCII to fullwidth Unicode equivalents\nExample: admin -> admin\nBypass keyword filters that match raw ASCII");
I18n.put("tooltip.homoglyph.title", "Homoglyph — 同形字符替换", "Homoglyph — Lookalike characters");
I18n.put("tooltip.homoglyph.desc",
"把选区中部分字母换成视觉相似的 Unicode 字符\n例如 a -> а (西里尔字母)\n用于绕过基于 ASCII 字面量的关键字检测",
"Replace selected letters with visually similar Unicode chars\nExample: a -> а (Cyrillic)\nBypass ASCII-literal keyword filters");
I18n.put("tooltip.zero_width.title", "Zero Width — 零宽字符插入", "Zero Width — Insert ZWSP");
I18n.put("tooltip.zero_width.desc",
"在选区每两个字符之间插入 U+200B 零宽空格\n例如 admin -> a\u200Bd\u200Bm\u200Bi\u200Bn\n用于关键词匹配和展示解析差异测试",
"Insert U+200B ZWSP between every char of the selection\nExample: admin -> a\u200Bd\u200Bm\u200Bi\u200Bn\nFor keyword-match vs render-parse differential tests");
I18n.put("tooltip.upper.title", "Upper — 转大写", "Upper — Uppercase");
I18n.put("tooltip.upper.desc",
"把选区转成大写\n用于大小写敏感规则差异测试",
"Convert selection to uppercase\nFor case-sensitive rule differential tests");
I18n.put("tooltip.lower.title", "Lower — 转小写", "Lower — Lowercase");
I18n.put("tooltip.lower.desc",
"把选区转成小写\n用于大小写敏感规则差异测试",
"Convert selection to lowercase\nFor case-sensitive rule differential tests");
I18n.put("tooltip.random.title", "Random Case — 随机大小写", "Random Case — Mixed case");
I18n.put("tooltip.random.desc",
"随机改变选区中字母大小写\n用于关键字大小写混淆",
"Randomly toggle letter case in the selection\nObfuscate keywords by case mixing");
// ---------- Ghost Bits Encode ----------
I18n.put("tooltip.minimal.title",
"Minimal — 只编码协议分隔符",
"Minimal — Encode protocol separators only");
I18n.put("tooltip.minimal.desc",
"目标字符: . / \\ % @ : ; ? & = ' \" < > CR LF\n字母和数字保持原样;不会自动把 ../ 改写为 .%u002e\n操作: 先选中原始 ASCII/UTF-8 payload",
"Targets: . / \\ % @ : ; ? & = ' \" < > CR LF\nLetters/digits unchanged; does not rewrite ../ into .%u002e\nUsage: select raw ASCII/UTF-8 payload first");
I18n.put("tooltip.full.title",
"Full — 编码全部 ASCII",
"Full — Encode all ASCII");
I18n.put("tooltip.full.desc",
"选区内所有 ASCII 字符都转成 Ghost Unicode\nGhost 还原后仍等于原文,隐蔽性最强但更容易破坏解析链\n操作: 先选中原始 ASCII/UTF-8 payload",
"Convert every ASCII char in the selection to Ghost Unicode\nRestores to the original low-byte text; most stealthy but more likely to break parser\nUsage: select raw ASCII/UTF-8 payload first");
I18n.put("tooltip.letters.title",
"Letters — 只编码字母",
"Letters — Letters only");
I18n.put("tooltip.letters.desc",
"只 Ghost 化 a-z A-Z,数字和符号保持原样\n适合绕关键字检测: class / select / union / Runtime\n操作: 先选中原始 ASCII/UTF-8 payload",
"Ghost-encode a-z A-Z only; digits and symbols unchanged\nGood for keyword bypass: class / select / union / Runtime\nUsage: select raw ASCII/UTF-8 payload first");
I18n.put("tooltip.digits.title",
"Digits — 只编码数字",
"Digits — Digits only");
I18n.put("tooltip.digits.desc",
"只 Ghost 化 0-9,字母和符号保持原样\n适合版本号、参数值、\\uXXXX 数字段测试\n操作: 先选中原始 ASCII/UTF-8 payload",
"Ghost-encode 0-9 only; letters and symbols unchanged\nGood for version numbers, param values, \\uXXXX hex digits\nUsage: select raw ASCII/UTF-8 payload first");
I18n.put("tooltip.symbols.title",
"Symbols — 只编码符号",
"Symbols — Symbols only");
I18n.put("tooltip.symbols.desc",
"只 Ghost 化非字母非数字的 ASCII 符号\n包含空格、引号、斜杠、百分号、CR/LF 等\n操作: 先选中原始 ASCII/UTF-8 payload",
"Ghost-encode ASCII symbols only (non-alnum)\nIncludes space, quotes, slash, percent, CR/LF, etc.\nUsage: select raw ASCII/UTF-8 payload first");
I18n.put("tooltip.shuffle.title",
"Shuffle — 换一组 Ghost 字符",
"Shuffle — Pick another Ghost variant");
I18n.put("tooltip.shuffle.desc",
"先按低位还原结果重新随机选 Ghost Unicode\n同一 payload 换不同变体,多试几次碰运气\n操作: 先选中已 Ghost 化或待 Ghost 化文本",
"Re-pick random Ghost Unicode by the low-byte restored text\nProduce different variants of the same payload; try multiple times\nUsage: select Ghost-encoded or to-be-encoded text first");
I18n.put("tooltip.preview.title",
"Preview — 查看 Ghost 还原结果",
"Preview — See Ghost restore result");
I18n.put("tooltip.preview.desc",
"逐字符展示: U+XXXX -> low byte -> ASCII\n操作: 先选中 Ghost 化后的文本",
"Per-char view: U+XXXX -> low byte -> ASCII\nUsage: select Ghost-encoded text first");
I18n.put("tooltip.candidates.title",
"Candidates — 查看候选字符",
"Candidates — Show alternatives");
I18n.put("tooltip.candidates.desc",
"选中一个 ASCII 字符,列出所有可用的 Ghost Unicode 替代品\n批量变形请用上方 Ghost Encode 行按钮",
"Pick one ASCII char to see all usable Ghost Unicode alternatives\nFor batch encoding use buttons in the Ghost Encode row above");
I18n.put("tooltip.8_bit.title", "8-bit — ch & 0xFF (默认)", "8-bit — ch & 0xFF (default)");
I18n.put("tooltip.8_bit.desc",
"大多数场景: (byte)ch / baos.write(ch) / writeBytes\nGhost 还原时取 char 的低 8 位",
"Most cases: (byte)ch / baos.write(ch) / writeBytes\nRestores to the low 8 bits of a char");
I18n.put("tooltip.7_bit.title", "7-bit — ch & 0x7F (Tomcat)", "7-bit — ch & 0x7F (Tomcat)");
I18n.put("tooltip.7_bit.desc",
"少数场景: Tomcat RFC2231 filename* 的 hex 解析\nGhost 还原时取 char 的低 7 位",
"Niche: Tomcat RFC2231 filename* hex parsing\nRestores to the low 7 bits of a char");
// ---------- Ghost Common Payload ----------
// 注意:tooltip key 必须 = "tooltip." + slug(按钮文本) + ".title|.desc"
I18n.put("tooltip.u002e.title", ".%u002e", ".%u002e");
I18n.put("tooltip.u002e.desc",
"生成一个低 8 位还原后等于 .%u002e 的 Ghost 字符串;Unicode 输出不唯一\n后续 URL decode 可变成 ..\n放在 request path 时推荐 Raw Socket 发送\n操作: 先选中要替换的位置",
"Generate a Ghost string whose low-8 restore is .%u002e; Unicode output is not unique\nA later URL decode may become ..\nRaw Socket recommended in request path\nUsage: select the target position first");
I18n.put("tooltip.crlf.title", "CRLF", "CRLF");
I18n.put("tooltip.crlf.desc",
"生成一个低 8 位还原后等于 \\r\\n 的 Ghost 字符串;Unicode 输出不唯一\n用于 Header/SMTP/文本协议边界测试\n放在 header value 时推荐 Raw Socket 发送\n操作: 先选中 header value 或协议字段中的替换位置",
"Generate a Ghost string whose low-8 restore is \\r\\n; Unicode output is not unique\nFor Header/SMTP/text-protocol boundary tests\nRaw Socket recommended in header value\nUsage: select position in header value / protocol field");
I18n.put("tooltip.jsp.title", ".jsp", ".jsp");
I18n.put("tooltip.jsp.desc",
"生成一个低 8 位还原后等于 .jsp 的 Ghost 字符串;Unicode 输出不唯一\n这是裸字符 Ghost,和 Tomcat %HH 的 URL hex Ghost 不同\n操作: 先选中原扩展名或 filename 中要替换的位置",
"Generate a Ghost string whose low-8 restore is .jsp; Unicode output is not unique\nThis is naked-char Ghost, different from Tomcat %HH URL-hex Ghost\nUsage: select original extension or position in filename");
I18n.put("tooltip.type.title", "@type", "@type");
I18n.put("tooltip.type.desc",
"把 @type 转成低位等价 Unicode\n用于 fastjson/Jackson key 相关绕过构造\n操作: 先选中 JSON key 或待替换位置",
"Encode @type into low-byte equivalent Unicode\nFor fastjson/Jackson key bypass payloads\nUsage: select JSON key or replacement position first");
I18n.put("tooltip.jetty_2.title", "Jetty %2>", "Jetty %2>");
I18n.put("tooltip.jetty_2.desc",
"Jetty 非严格 hex 解析案例\n> 经 convertHexDigit 计算可变成 E,%2> 等价 %2E\n这是解析差异,不是标准 char & 0xFF\n操作: 选中 .、%2e,或包含这些 token 的路径片段",
"Jetty loose hex parser case\n'>' goes through convertHexDigit and yields E, so %2> equals %2E\nParserBypass, not standard char & 0xFF\nUsage: select ., %2e, or a path fragment containing them");
I18n.put("tooltip.class.title", "class", "class");
I18n.put("tooltip.class.desc",
"把 class 转成低位等价 Unicode\n用于 Spring/Java Bean path 关键字绕过构造\n操作: 先选中 class 或待替换位置",
"Encode 'class' into low-byte equivalent Unicode\nFor Spring/Java bean path keyword bypass\nUsage: select 'class' or replacement position first");
I18n.put("tooltip.fastjson_x4.title", "fastjson \\x4_", "fastjson \\x4_");
I18n.put("tooltip.fastjson_x4.desc",
"把 @type 里的 @ 改写为 \\x4J;J 在 fastjson 宽松 \\x 表里按 0 参与计算\n\\x4J 可解析为 @\n这是解析差异,不是标准 low-byte fold\n操作: 先选中 @type 或 JSON key 内容",
"Rewrite @ in @type to \\x4J; J is treated as 0 by fastjson loose \\x parsing\n\\x4J may parse as @\nParserBypass, not standard low-byte fold\nUsage: select @type or JSON key content first");
I18n.put("tooltip.fastjson_u.title", "fastjson \\u", "fastjson \\u");
I18n.put("tooltip.fastjson_u.desc",
"把选区转成 \\uXXXX,并把数字位替换为 Unicode 数字\n例如 @type -> \\u٠٠٤٠\\u٠٠٧٤...\n这是 Unicode digit 绕过,不是标准 low-byte fold\n操作: 先选中 @type 或 JSON key 内容",
"Convert selection to \\uXXXX and replace numeric hex digits with Unicode digits\nExample: @type -> \\u٠٠٤٠\\u٠٠٧٤...\nUnicode digit parser bypass, not standard low-byte fold\nUsage: select @type or JSON key content first");
I18n.put("tooltip.jackson_u.title", "jackson \\u", "jackson \\u");
I18n.put("tooltip.jackson_u.desc",
"把选区转成 \\uXXXX,并把 4 个 hex 位换成 Ghost 字符\n低位还原后仍是标准 \\uXXXX,给 Jackson charToHex(ch & 0xFF) 场景用\n只适合 ReaderBasedJsonParser / char[] 输入链\nSpringBoot 默认 UTF8StreamJsonParser 通常不触发\n操作: 先选中要转成 \\u Ghost escape 的 ASCII 文本",
"Convert selection to \\uXXXX and replace the four hex digits with Ghost chars\nLow-byte restore is still standard \\uXXXX; for Jackson charToHex(ch & 0xFF)\nOnly fits ReaderBasedJsonParser / char[] input chains\nSpringBoot usually uses UTF8StreamJsonParser and does not trigger this\nUsage: select ASCII text first");
I18n.put("tooltip.unicode_digits.title", "Unicode 数字", "Unicode Digits");
I18n.put("tooltip.unicode_digits.desc",
"把选区中的 ASCII 数字替换成 Unicode 数字字符\n适合先把 @type 转成 \\u0040type 后,再替换 0040 的数字位\n这是解析差异,不是标准 low-byte fold",
"Replace ASCII digits in the selection with Unicode digit chars\nUse after converting @type to \\u0040type, then mutate the numeric digits\nParserBypass, not standard low-byte fold");
I18n.put("tooltip.fullwidth_url.title", "全角 URL", "Fullwidth URL");
I18n.put("tooltip.fullwidth_url.desc",
"把选区中的 URL 编码字符转成全角形态,但保留 % 本身\n例如 %2e%2e%2f -> %2e%2e%2f\n用于归一化/多阶段 URL 解析差异",
"Convert URL-encoded chars in the selection to fullwidth form, keeping % unchanged\nExample: %2e%2e%2f -> %2e%2e%2f\nFor normalization / multi-stage URL parser differential tests");
I18n.put("tooltip.tomcat_hh.title", "Tomcat %HH", "Tomcat %HH");
I18n.put("tooltip.tomcat_hh.desc",
"把选区每个字符改成 %HH,但 H 用 7-bit Ghost 字符表示\n还原模式等价 ch & 0x7F,适合 Tomcat RFC2231 filename* hex 解析\n例如选中 j 可生成 %鸶繡 这类变体,后端可能解析为 j\n操作: 先选中 filename* 中要隐藏的原始字符,不要选 6a",
"Convert every selected char to %HH, but each H is a 7-bit Ghost char\nEquivalent to ch & 0x7F; for Tomcat RFC2231 filename* hex parsing\nSelecting j may produce variants like %鸶繡, which may parse as j\nUsage: select raw chars inside filename*, not 6a");
// ---------- Bypass Tools - 通用按钮 ----------
I18n.put("tooltip.url_encode.title", "URL Encode — URL 编码", "URL Encode");
I18n.put("tooltip.url_encode.desc",
"把选区做标准 URL 编码\n用于 path/query/header value 中的特殊字符",
"Standard URL encoding on the selection\nFor special chars in path / query / header value");
I18n.put("tooltip.path_encode.title", "Path Encode — 路径编码", "Path Encode");
I18n.put("tooltip.path_encode.desc",
"针对 path 段的安全字符做编码\n保留 / : 等结构字符",
"URL-encode path-safe chars only\nKeep / : etc. structural chars intact");
I18n.put("tooltip.double_url.title", "Double URL — 双重编码", "Double URL");
I18n.put("tooltip.double_url.desc",
"对选区做两轮 URL 编码\n用于 WAF 和后端各解码一次的差异攻击",
"Two passes of URL encoding\nExploit decode-count differential between WAF and backend");
I18n.put("tooltip.mixed_encode.title", "Mixed Encode — 混合编码", "Mixed Encode");
I18n.put("tooltip.mixed_encode.desc",
"随机选择部分字符做 URL 编码\n破坏静态规则的精确字符串匹配",
"Randomly URL-encode a subset of chars\nBreak exact-string rule matching");
I18n.put("tooltip.unicode_.title", "Unicode 转义", "Unicode Escape");
I18n.put("tooltip.unicode_.desc",
"把选区转成 \\uXXXX 转义形式\n用于 JSON/JS 解析层后端解码差异测试",
"Convert to \\uXXXX escapes\nFor JSON/JS parser decode differential tests");
I18n.put("tooltip.base64_encode.title", "Base64 Encode", "Base64 Encode");
I18n.put("tooltip.base64_encode.desc",
"对选区做标准 Base64 编码",
"Standard Base64 encoding on the selection");
// ---------- Noise Atoms - Generated ----------
I18n.put("tooltip.dirtyn.title", "Dirty(N) — 脏数据占位符", "Dirty(N) — Dirty placeholder");
I18n.put("tooltip.dirtyn.desc",
"插入 {{dirty(N)}} 占位符\n发送前展开为 N 个随机脏字符\n用于填充噪音、拉开特征、测试解析容忍度",
"Insert {{dirty(N)}} placeholder\nExpands to N random dirty bytes before send\nPad noise, distort signatures, test parser tolerance");
I18n.put("tooltip.nulln.title", "Null(N) — 空字节占位符", "Null(N) — Null placeholder");
I18n.put("tooltip.nulln.desc",
"插入 {{dirtynull(N)}} 占位符\n发送前展开为 N 个随机空字节/噪音字节\n用于测试截断、二进制噪音和解析差异",
"Insert {{dirtynull(N)}} placeholder\nExpands to N random null/noise bytes before send\nTest truncation, binary noise and parser differentials");
// ---------- Traversal / Path Mutations ----------
I18n.put("tooltip.traversal.selection", "选区: %s -> %s", "Selection: %s -> %s");
I18n.put("tooltip.traversal.no_selection", "无选区: 替换 path 中的 %s", "No selection: replace %s in the path");
I18n.put("tooltip.traversal.u002e.usage",
"用途: %uXXXX Unicode dot, Jetty/IIS 解析后还原为 ..\n可组合 Gh0st Bits: 先变形再 Full 编码",
"Usage: %uXXXX Unicode dot, decodes to .. in Jetty/IIS\nCan compose with Gh0st Bits: mutate first then Full encode");
I18n.put("tooltip.traversal.backslash.usage",
"用途: Windows / 反斜杠路径解析差异",
"Usage: Windows / backslash path parsing differences");
// ---------- Header Bypass ----------
I18n.put("tooltip.xff_127001.title", "X-Forwarded-For: 127.0.0.1", "X-Forwarded-For: 127.0.0.1");
I18n.put("tooltip.xff_127001.desc",
"添加或覆盖 X-Forwarded-For\n用于代理链 IP 信任、访问控制绕过测试",
"Add or overwrite X-Forwarded-For\nFor proxy-chain IP trust and ACL bypass tests");
I18n.put("tooltip.x_real_ip.title", "X-Real-IP: 127.0.0.1", "X-Real-IP: 127.0.0.1");
I18n.put("tooltip.x_real_ip.desc",
"添加或覆盖 X-Real-IP\nNginx/反代场景常见,用于真实客户端 IP 信任测试",
"Add or overwrite X-Real-IP\nCommon in Nginx/reverse proxy; tests real client IP trust");
I18n.put("tooltip.x_client_ip.title", "X-Client-IP: 127.0.0.1", "X-Client-IP: 127.0.0.1");
I18n.put("tooltip.x_client_ip.desc",
"添加或覆盖 X-Client-IP\n用于客户端 IP 伪造测试",
"Add or overwrite X-Client-IP\nFor client IP spoof tests");
I18n.put("tooltip.x_remote_addr.title", "X-Remote-Addr: 127.0.0.1", "X-Remote-Addr: 127.0.0.1");
I18n.put("tooltip.x_remote_addr.desc",
"添加或覆盖 X-Remote-Addr\n用于来源地址信任逻辑测试",
"Add or overwrite X-Remote-Addr\nTest source-address trust logic");
I18n.put("tooltip.cf_connecting_ip.title", "CF-Connecting-IP: 127.0.0.1", "CF-Connecting-IP: 127.0.0.1");
I18n.put("tooltip.cf_connecting_ip.desc",
"添加或覆盖 CF-Connecting-IP\nCloudflare 场景常见,用于边缘代理 IP 信任测试",
"Add or overwrite CF-Connecting-IP\nCommon with Cloudflare; edge-proxy IP trust tests");
I18n.put("tooltip.forwarded.title",
"Forwarded: for=127.0.0.1;proto=http;host=127.0.0.1",
"Forwarded: for=127.0.0.1;proto=http;host=127.0.0.1");
I18n.put("tooltip.forwarded.desc",
"添加或覆盖标准 Forwarded 头\n用于 RFC 7239 代理链解析和来源信任测试",
"Add or overwrite the standard Forwarded header\nFor RFC 7239 proxy-chain parsing and source-trust tests");
I18n.put("tooltip.x_custom_ip.title", "X-Custom-IP-Authorization: 127.0.0.1", "X-Custom-IP-Authorization: 127.0.0.1");
I18n.put("tooltip.x_custom_ip.desc",
"添加或覆盖 X-Custom-IP-Authorization\n用于部分框架/中间件的 IP 信任绕过测试",
"Add or overwrite X-Custom-IP-Authorization\nFor framework/middleware IP-trust bypass tests");
I18n.put("tooltip.referer_local.title", "Referer: http://127.0.0.1", "Referer: http://127.0.0.1");
I18n.put("tooltip.referer_local.desc",
"把 Referer 设置为本地地址\n用于来源校验、CSRF Referer 检查绕过测试",
"Set Referer to a local address\nFor origin validation and CSRF Referer-check bypass tests");
I18n.put("tooltip.x_host_local.title", "X-Host: 127.0.0.1", "X-Host: 127.0.0.1");
I18n.put("tooltip.x_host_local.desc",
"添加或覆盖 X-Host\n用于 Host 派生信任逻辑测试",
"Add or overwrite X-Host\nFor host-derived trust logic tests");
I18n.put("tooltip.xf_host_local.title", "X-Forwarded-Host: 127.0.0.1", "X-Forwarded-Host: 127.0.0.1");
I18n.put("tooltip.xf_host_local.desc",
"添加或覆盖 X-Forwarded-Host\n用于反代 Host 信任、后端路由和 URL 生成差异测试",
"Add or overwrite X-Forwarded-Host\nFor proxy host trust, backend routing and URL generation diff tests");
I18n.put("tooltip.x_original_url.title", "X-Original-URL: /", "X-Original-URL: /");
I18n.put("tooltip.x_original_url.desc",
"添加或覆盖 X-Original-URL\n用于 IIS/反代/重写链路中的原始 URL 解析差异测试",
"Add or overwrite X-Original-URL\nFor IIS / reverse proxy / rewrite original-URL parser diff tests");
I18n.put("tooltip.http_10.title", "HTTP/1.0", "HTTP/1.0");
I18n.put("tooltip.http_10.desc",
"把请求行协议版本改为 HTTP/1.0\n用于代理、连接复用、Host/TE 处理差异测试",
"Change request-line protocol to HTTP/1.0\nFor proxy / keep-alive / Host & TE handling diffs");
// ---------- Body type spoof ----------
I18n.put("tooltip.form.title", "Content-Type: application/x-www-form-urlencoded",
"Content-Type: application/x-www-form-urlencoded");
I18n.put("tooltip.form.desc",
"只修改请求 Content-Type\n不改 body,用于 WAF 和后端对 body 类型理解不一致的测试",
"Modify Content-Type only; body unchanged\nFor WAF/backend body-type mismatch tests");
I18n.put("tooltip.text.title", "Content-Type: text/plain", "Content-Type: text/plain");
I18n.put("tooltip.text.desc",
"只修改请求 Content-Type\n不改 body,用于让 WAF 按纯文本处理 body 的测试",
"Modify Content-Type only; body unchanged\nMakes WAF treat the body as plain text");
I18n.put("tooltip.json.title", "Content-Type: application/json", "Content-Type: application/json");
I18n.put("tooltip.json.desc",
"只修改请求 Content-Type\n不改 body,用于 JSON parser / WAF 类型识别差异测试",
"Modify Content-Type only; body unchanged\nFor JSON parser / WAF type-detection diff tests");
I18n.put("tooltip.xml.title", "Content-Type: application/xml", "Content-Type: application/xml");
I18n.put("tooltip.xml.desc",
"只修改请求 Content-Type\n不改 body,用于 XML parser / WAF 类型识别差异测试",
"Modify Content-Type only; body unchanged\nFor XML parser / WAF type-detection diff tests");
// ---------- Body Convert ----------
I18n.put("tooltip.to_form.title", "To Form — 转 form-urlencoded", "To Form — Convert to form-urlencoded");
I18n.put("tooltip.to_form.desc",
"把当前 body 的普通参数转换成 x-www-form-urlencoded\n支持 form、multipart 文本字段、简单 JSON 对象\n会重写 body、Content-Type 和 Content-Length",
"Convert current body params to x-www-form-urlencoded\nSupports form / multipart text fields / simple JSON objects\nRewrites body, Content-Type and Content-Length");
I18n.put("tooltip.to_multipart.title", "To Multipart — 转 multipart/form-data", "To Multipart — Convert to multipart");
I18n.put("tooltip.to_multipart.desc",
"把当前 body 的普通参数转换成 multipart/form-data\n支持 form、multipart 文本字段、简单 JSON 对象\n跳过文件字段,会重写 body、boundary 和 Content-Length",
"Convert current body params to multipart/form-data\nSupports form / multipart text fields / simple JSON objects\nSkips file parts; rewrites body, boundary and Content-Length");
I18n.put("tooltip.to_json.title", "To JSON — 转 JSON 对象", "To JSON — Convert to JSON");
I18n.put("tooltip.to_json.desc",
"把当前 body 的普通参数转换成 JSON 对象\n支持 form、multipart 文本字段、简单 JSON 对象\n会重写 body、Content-Type 和 Content-Length",
"Convert current body params to a JSON object\nSupports form / multipart text fields / simple JSON objects\nRewrites body, Content-Type and Content-Length");
I18n.put("tooltip.gzip_body.title", "Gzip body — 压缩请求体", "Gzip body — Compress request body");
I18n.put("tooltip.gzip_body.desc",
"压缩请求 body 并设置 Content-Encoding: gzip\n用于 WAF 不解压、后端解压的差异测试",
"Gzip the request body and set Content-Encoding: gzip\nFor WAF-doesn't-decode vs backend-decodes differential tests");
// ---------- Charset ----------
I18n.put("tooltip.charset_first.title", "charset first — charset 放最前", "charset first");
I18n.put("tooltip.charset_first.desc",
"重排 Content-Type 参数,把 charset 放在最前\n例如 multipart/form-data; charset=IBM037; boundary=xxx\n只改 header,不重编码 body",
"Reorder Content-Type params: put charset first\nExample: multipart/form-data; charset=IBM037; boundary=xxx\nHeader-only change, body untouched");
I18n.put("tooltip.charset_last.title", "charset last — charset 放最后", "charset last");
I18n.put("tooltip.charset_last.desc",
"重排 Content-Type 参数,把 charset 放在最后\n例如 multipart/form-data; boundary=xxx; charset=IBM037\n只改 header,不重编码 body",
"Reorder Content-Type params: put charset last\nExample: multipart/form-data; boundary=xxx; charset=IBM037\nHeader-only change, body untouched");
// ---------- Noise placement (RadioButtons) ----------
I18n.put("tooltip.noise.selection.title", "光标处插入", "Insert at caret");
I18n.put("tooltip.noise.selection.desc1",
"点击 Noise Atom 后插入到当前光标位置",
"Click a Noise Atom to insert at the current caret position");
I18n.put("tooltip.noise.selection.desc2",
"Hex 视图下回退为:选中文本前面(编辑器拿不到 caret)",
"Hex view falls back to: before selected text (caret unavailable)");
I18n.put("tooltip.noise.suffix.title", "Path 末尾", "Path suffix");
I18n.put("tooltip.noise.suffix.desc1",
"点击 Noise Atom 后追加到 request path 末尾",
"Click a Noise Atom to append to the end of the request path");
I18n.put("tooltip.noise.suffix.desc2",
"如果有 query,会插在 ? 之前",
"If a query string exists, the atom is inserted before '?'");
I18n.put("tooltip.noise.seg_prefix.title", "每段前", "Per-segment prefix");
I18n.put("tooltip.noise.seg_prefix.desc1",
"点击 Noise Atom 后给每个非空 path segment 加前缀",
"Click a Noise Atom to prefix every non-empty path segment");
I18n.put("tooltip.noise.seg_prefix.desc2",
"例如 /a/b -> /%00a/%00b",
"Example: /a/b -> /%00a/%00b");
I18n.put("tooltip.noise.seg_suffix.title", "每段后", "Per-segment suffix");
I18n.put("tooltip.noise.seg_suffix.desc1",
"点击 Noise Atom 后给每个非空 path segment 加后缀",
"Click a Noise Atom to append to every non-empty path segment");
I18n.put("tooltip.noise.seg_suffix.desc2",
"例如 /a/b -> /a%00/b%00",
"Example: /a/b -> /a%00/b%00");
I18n.put("tooltip.noise.interleave.title", "字符间", "Interleave");
I18n.put("tooltip.noise.interleave.desc1",
"需要先选中文本",
"Requires a selection first");
I18n.put("tooltip.noise.interleave.desc2",
"点击 Noise Atom 后插到选区每两个字符之间",
"Click a Noise Atom to insert between every two chars of the selection");
I18n.put("tooltip.noise.replace_space.title", "替换空格", "Replace spaces");
I18n.put("tooltip.noise.replace_space.desc1",
"有选区时替换选区里的空格",
"When a selection exists, replace spaces inside the selection");
I18n.put("tooltip.noise.replace_space.desc2",
"没选区时只替换 request path 里的空格",
"When nothing is selected, only spaces in the request path are replaced");
}
// =========================================================
// 状态栏 / 弹窗消息
// =========================================================
private static void registerStatus() {
I18n.put("status.ready", "Ready", "Ready");
I18n.put("status.cancelled", "Cancelled", "Cancelled");
I18n.put("status.history_loaded", "已加载历史请求 #%d", "Loaded history request #%d");
I18n.put("status.applied_selection", "已对选区应用 %s", "Applied %s to selection");
I18n.put("status.applied_body", "已对 body 应用 %s", "Applied %s to body");
I18n.put("status.ghost_no_change",
"Gh0st Bits: 当前策略未改变选区;可能已是 Ghost 形态,或没有匹配字符。可用 Shuffle 重新生成。",
"Gh0st Bits: selection unchanged. Already encoded or no matching chars. Use Shuffle to retry.");
I18n.put("status.ghost_shuffle_no_variant",
"Gh0st Bits: Shuffle 未生成新变体,请再试一次或检查选区。",
"Gh0st Bits: Shuffle produced no new variant. Try again or check the selection.");
I18n.put("status.ghost_fold_mode_changed",
"Gh0st Bits restore mode: %s",
"Gh0st Bits restore mode: %s");
I18n.put("status.fold_ok", "Ghost Restore OK: %s -> %s", "Ghost Restore OK: %s -> %s");
I18n.put("status.raw_recommended", "Send: Raw Socket recommended", "Send: Raw Socket recommended");
I18n.put("status.parser_diff",
"Parser diff: %2> -> %2E -> . | Send: Burp OK",
"Parser diff: %2> -> %2E -> . | Send: Burp OK");
I18n.put("status.template_applied_path", "Template applied (path)", "Template applied (path)");
I18n.put("status.template_applied_filename", "Template applied (filename)", "Template applied (filename)");
I18n.put("status.template_applied_header", "Template applied (header %s)", "Template applied (header %s)");
I18n.put("status.sending", "Sending...", "Sending...");
I18n.put("status.send_error", "Error", "Error");
I18n.put("status.no_selection",
"未选中任何文本,请先在 Request 编辑器中选中 payload",
"No selection. Select a payload in the Request editor first.");
I18n.put("status.no_request", "Request 为空,请先加载请求", "Request is empty. Load a request first.");
}
// =========================================================
// 弹窗
// =========================================================
private static void registerDialogs() {
I18n.put("dialog.candidates.title", "候选字符", "Candidates");
I18n.put("dialog.candidates.single_char_only",
"Candidates 只支持单个 ASCII 字符。\n整段变形请使用 Ghost Encode 行的 Minimal / Full / Letters 等按钮。",
"Candidates only supports a single ASCII char.\nFor whole-text encoding use Minimal / Full / Letters in the Ghost Encode row.");
I18n.put("dialog.candidates.ascii_only",
"Candidates 只接受 ASCII 原始字符。已 Ghost 化文本请使用 Preview 查看 Ghost 还原结果。",
"Candidates only accepts raw ASCII. For Ghost-encoded text, use Preview to see the Ghost restore result.");
I18n.put("dialog.tip.title", "提示", "Info");
I18n.put("dialog.error.title", "错误", "Error");
I18n.put("dialog.success.title", "成功", "Success");
I18n.put("dialog.reinit.confirm",
"确认重新初始化配置吗?此操作会覆盖你现有的配置文件。",
"Reinitialize config? This will overwrite your existing config file.");
I18n.put("dialog.reinit.title", "确认", "Confirm");
}
// =========================================================
// ConfigPanel
// =========================================================
private static void registerConfig() {
I18n.put("config.path_label", "Config Path:", "Config Path:");
I18n.put("config.format.profiles", "Format: profiles", "Format: profiles");
I18n.put("config.format.legacy", "Format: unsupported", "Format: unsupported");
I18n.put("config.btn.reload", "重新加载", "Reload");
I18n.put("config.btn.reinit", "恢复默认", "Reinit");
I18n.put("config.btn.save_general", "保存通用配置", "Save General");
I18n.put("config.btn.save_options", "保存选项", "Save Options");
I18n.put("config.tab.general", "通用", "General");
I18n.put("config.tab.access_control", "Auto-权限绕过", "Auto-Access Bypass");
I18n.put("config.tab.waf", "Auto-WAF绕过", "Auto-WAF Bypass");
I18n.put("config.tab.manual_waf", "Manual-WAF绕过", "Manual-WAF Bypass");
I18n.put("config.tab.raw", "原始文件", "Raw");
I18n.put("config.rules.access_control", "Rules: auto_access_bypass", "Rules: auto_access_bypass");
I18n.put("config.rules.waf", "Rules: auto_waf_bypass", "Rules: auto_waf_bypass");
I18n.put("config.rules.manual_waf", "Rules: manual_waf_bypass", "Rules: manual_waf_bypass");
I18n.put("config.general.title", "通用配置", "General Options");
I18n.put("config.general.threads", "线程数 (Threads):", "Threads:");
I18n.put("config.general.max_redirects", "Max Redirects:", "Max Redirects:");
I18n.put("config.general.max_redirects.hint",
"(1-10,Dashboard 和 Manual WAF 的 Follow Redirect 共用)",
"(1-10, shared by Dashboard and Manual WAF Follow Redirect)");
I18n.put("config.general.threshold", "相似度阈值 (Diff Thresh):", "Similarity Threshold:");
I18n.put("config.general.threshold.hint",
"(0-1,值越大越\"宽松\",更容易入表;值越小越\"严格\",更少噪声)",
"(0-1, larger = looser, more entries; smaller = stricter, less noise)");
I18n.put("config.general.lang", "语言 (Language):", "Language:");
I18n.put("config.general.lang.hint",
"切换语言后保存并重新加载插件生效",
"Save and reload the extension to apply language change");
I18n.put("config.general.help",
"说明:\n- 线程数:并发请求数,建议 3-10\n- Max Redirects:Follow Redirect 最大跳转次数,Dashboard 和 Manual WAF 共用\n- 相似度阈值:0-1 表示\"响应与原始响应的相似程度\"。\n - 值越大:越容易入表(更宽松,噪声可能更多)\n - 值越小:越不容易入表(更严格,只保留差异更大的响应)\n- 语言:切换 UI 语言(zh/en),保存后重启插件生效\n- 修改后点击 Save General 保存到配置文件\n- 保存后立即生效(Dashboard 不再单独维护阈值)",
"Notes:\n- Threads: concurrent requests, recommended 3-10\n- Max Redirects: max Follow Redirect hops shared by Dashboard and Manual WAF\n- Similarity threshold: 0-1 = how similar the response is to the baseline.\n - Larger: easier to record (looser, more noise)\n - Smaller: harder to record (stricter, only big diffs kept)\n- Language: UI language (zh/en). Save then reload the extension to apply\n- Click Save General to persist changes\n- Effective immediately after save (Dashboard no longer keeps its own threshold)");
I18n.put("config.waf.options.title",
"Options (仅对 POST/PUT 等有 Body 的请求生效)",
"Options (only for requests with body: POST/PUT/...)");
I18n.put("config.waf.body_charset", "Body 字符集", "Body Charset");
I18n.put("config.waf.body_transform", "Body 变换", "Body Transform");
I18n.put("config.waf.content_type_spoof", "Content-Type 伪装", "Content-Type Spoof");
I18n.put("config.waf.ghost_bits", "Ghost Bits 自动绕过", "Ghost Bits Auto Bypass");
I18n.put("config.waf.ghost_enabled", "启用", "Enabled");
I18n.put("config.waf.ghost_raw_socket", "Raw Socket", "Raw Socket");
I18n.put("config.waf.ghost_max_variants", "最大变体:", "Max Variants:");
I18n.put("config.waf.ghost_templates", "场景模板:", "Scenario Templates:");
I18n.put("config.waf.ghost_generic", "等价变形:", "Equivalent Mutations:");
I18n.put("config.waf.ghost_generic_enabled", "启用", "Enabled");
I18n.put("config.waf.ghost_generic_variants", "每策略变体:", "Variants/strategy:");
I18n.put("config.waf.help", "帮助", "Help");
I18n.put("config.dialog.threads_range",
"线程数应在 1-100 之间",
"Threads must be between 1 and 100");
I18n.put("config.dialog.max_redirects_range",
"Max Redirects 应在 1-10 之间",
"Max Redirects must be between 1 and 10");
I18n.put("config.dialog.threshold_range",
"相似度阈值应在 0-1 之间",
"Threshold must be between 0 and 1");
I18n.put("config.dialog.invalid_number", "请输入有效的数字", "Please enter a valid number");
I18n.put("config.dialog.general_saved",
"通用配置已保存",
"General options saved successfully");
I18n.put("config.dialog.general_save_failed",
"保存通用配置失败",
"Failed to save general options");
I18n.put("config.dialog.options_saved",
"选项已保存",
"Options saved successfully");
I18n.put("config.dialog.options_save_failed",
"保存选项失败",
"Failed to save options");
I18n.put("config.dialog.no_loader",
"ConfigLoader 不可用",
"ConfigLoader not available");
I18n.put("config.lang.restart_hint",
"语言已切换,请重启 Burp 或重新加载插件以使所有界面更新。",
"Language switched. Reload the extension or restart Burp to refresh all UI.");
}
private static void registerRemainingUi() {
I18n.put("tooltip.default.desc",
"点击后对当前请求执行该变换\n有选区的功能通常优先处理选区,没选区则按该按钮的默认范围处理",
"Apply this transformation to the current request.\nSelection-based tools use the selected text; otherwise each tool uses its default scope.");
I18n.put("tooltip.atom.%00",
"URL 编码的 NUL 字节\n常用于截断、解析差异、后缀绕过测试\n位置由上方“Noise 作用方式”决定",
"URL-encoded NUL byte\nFor truncation, parser differences and suffix bypass tests\nPlacement is controlled by Noise placement above");
I18n.put("tooltip.atom.%09",
"URL 编码的 Tab 制表符\n常用于空白字符混淆、关键字分隔、路径解析差异\n位置由上方“Noise 作用方式”决定",
"URL-encoded tab\nFor whitespace obfuscation, keyword splitting and path parsing differences\nPlacement is controlled by Noise placement above");
I18n.put("tooltip.atom.%0a",
"URL 编码的 LF 换行\n常用于 CRLF、Header 注入、协议边界测试\n位置由上方“Noise 作用方式”决定",
"URL-encoded LF\nFor CRLF, header injection and protocol boundary tests\nPlacement is controlled by Noise placement above");
I18n.put("tooltip.atom.%0d",
"URL 编码的 CR 回车\n通常和 %0a 组合测试 CRLF 注入\n位置由上方“Noise 作用方式”决定",
"URL-encoded CR\nUsually combined with %0a for CRLF injection tests\nPlacement is controlled by Noise placement above");
I18n.put("tooltip.atom.%20",
"URL 编码的空格\n常用于关键字分隔、路径空白混淆、参数边界测试\n位置由上方“Noise 作用方式”决定",
"URL-encoded space\nFor keyword splitting, path whitespace and parameter boundary tests\nPlacement is controlled by Noise placement above");
I18n.put("tooltip.atom.%0b",
"URL 编码的 vertical tab\n部分解析器会当空白处理,部分规则不会\n用于空白字符识别差异测试\n位置由上方“Noise 作用方式”决定",
"URL-encoded vertical tab\nParsers and filters may disagree on whether this is whitespace\nFor whitespace handling differences\nPlacement is controlled by Noise placement above");
I18n.put("tooltip.atom.%0c",
"URL 编码的 form feed\n部分解析器会当空白处理,部分规则不会\n用于空白字符识别差异测试\n位置由上方“Noise 作用方式”决定",
"URL-encoded form feed\nParsers and filters may disagree on whether this is whitespace\nFor whitespace handling differences\nPlacement is controlled by Noise placement above");
I18n.put("tooltip.atom.%a0",
"URL 编码的 NBSP 类空白字节\n看起来像空格,但和普通 %20 不同\n用于空白归一化差异测试\n位置由上方“Noise 作用方式”决定",
"URL-encoded NBSP-like byte\nLooks like a space but differs from %20\nFor whitespace normalization differences\nPlacement is controlled by Noise placement above");
I18n.put("tooltip.atom.%2b",
"URL 编码的加号 +\n在 form-urlencoded 中可能被解释为空格\n用于 + / space 解码差异测试\n位置由上方“Noise 作用方式”决定",
"URL-encoded plus sign\nMay be interpreted as a space in form-urlencoded data\nFor plus/space decoding differences\nPlacement is controlled by Noise placement above");
I18n.put("tooltip.atom./**/",
"注释型分隔符\n常用于 SQL 关键字分割、规则匹配绕过\n位置由上方“Noise 作用方式”决定",
"Comment separator\nFor SQL keyword splitting and filter matching tests\nPlacement is controlled by Noise placement above");
I18n.put("tooltip.atom.generic",
"通用噪音原子\n位置由上方“Noise 作用方式”决定",
"Generic noise atom\nPlacement is controlled by Noise placement above");
I18n.put("tooltip.utf_16.title",
"UTF-16",
"UTF-16");
I18n.put("tooltip.utf_16.desc",
"把请求 body 按 UTF-16 重新编码\n同时更新 Content-Type charset 和 Content-Length\n用于 WAF 不识别该字符集、后端能解析的场景",
"Re-encode the request body as UTF-16\nUpdate Content-Type charset and Content-Length\nFor cases where the backend understands a charset that the WAF does not");
I18n.put("tooltip.utf_16be.title",
"UTF-16BE",
"UTF-16BE");
I18n.put("tooltip.utf_16be.desc",
"把请求 body 按 UTF-16BE 重新编码\n同时更新 Content-Type charset 和 Content-Length\n用于 WAF 不识别该字符集、后端能解析的场景",
"Re-encode the request body as UTF-16BE\nUpdate Content-Type charset and Content-Length\nFor cases where the backend understands a charset that the WAF does not");
I18n.put("tooltip.utf_16le.title",
"UTF-16LE",
"UTF-16LE");
I18n.put("tooltip.utf_16le.desc",
"把请求 body 按 UTF-16LE 重新编码\n同时更新 Content-Type charset 和 Content-Length\n用于 WAF 不识别该字符集、后端能解析的场景",
"Re-encode the request body as UTF-16LE\nUpdate Content-Type charset and Content-Length\nFor cases where the backend understands a charset that the WAF does not");
I18n.put("tooltip.utf_32.title",
"UTF-32",
"UTF-32");
I18n.put("tooltip.utf_32.desc",
"把请求 body 按 UTF-32 重新编码\n同时更新 Content-Type charset 和 Content-Length\n用于 WAF 不识别该字符集、后端能解析的场景",
"Re-encode the request body as UTF-32\nUpdate Content-Type charset and Content-Length\nFor cases where the backend understands a charset that the WAF does not");
I18n.put("tooltip.utf_32be.title",
"UTF-32BE",
"UTF-32BE");
I18n.put("tooltip.utf_32be.desc",
"把请求 body 按 UTF-32BE 重新编码\n同时更新 Content-Type charset 和 Content-Length\n用于 WAF 不识别该字符集、后端能解析的场景",
"Re-encode the request body as UTF-32BE\nUpdate Content-Type charset and Content-Length\nFor cases where the backend understands a charset that the WAF does not");
I18n.put("tooltip.utf_32le.title",
"UTF-32LE",
"UTF-32LE");
I18n.put("tooltip.utf_32le.desc",
"把请求 body 按 UTF-32LE 重新编码\n同时更新 Content-Type charset 和 Content-Length\n用于 WAF 不识别该字符集、后端能解析的场景",
"Re-encode the request body as UTF-32LE\nUpdate Content-Type charset and Content-Length\nFor cases where the backend understands a charset that the WAF does not");
I18n.put("tooltip.ibm037.title",
"IBM037",
"IBM037");
I18n.put("tooltip.ibm037.desc",
"把请求 body 按 IBM037 重新编码\n同时更新 Content-Type charset 和 Content-Length\n用于 WAF 不识别该字符集、后端能解析的场景",
"Re-encode the request body as IBM037\nUpdate Content-Type charset and Content-Length\nFor cases where the backend understands a charset that the WAF does not");
I18n.put("tooltip.cp290.title",
"cp290",
"cp290");
I18n.put("tooltip.cp290.desc",
"把请求 body 按 cp290 重新编码\n同时更新 Content-Type charset 和 Content-Length\n用于 WAF 不识别该字符集、后端能解析的场景",
"Re-encode the request body as cp290\nUpdate Content-Type charset and Content-Length\nFor cases where the backend understands a charset that the WAF does not");
I18n.put("tooltip.2.title",
"%2>",
"%2>");
I18n.put("tooltip.2.desc",
"Jetty 非严格 hex 解析案例\n> 经 convertHexDigit 计算可变成 E,%2> 等价 %2E\n这是 parser differential,不是标准 char & 0xFF\n操作: 选中 .、%2e,或包含这些 token 的路径片段",
"Jetty loose hex parsing example\nconvertHexDigit can map > to E, making %2> equivalent to %2E\nThis is a parser differential, not standard char & 0xFF\nSelect a dot, %2e, or a path containing these tokens");
I18n.put("tooltip.spring_path.title",
"Spring Path",
"Spring Path");
I18n.put("tooltip.spring_path.desc",
"替换 request path 为 Spring/Jetty 风格探测路径\n包含 阮严灵丰丰甲来 -> .%u002e 与 %64 URL trigger\n推荐发送: Raw Socket",
"Replace the request path with a Spring/Jetty probe path\nIncludes 阮严灵丰丰甲来 -> .%u002e and a %64 URL trigger\nRecommended sender: Raw Socket");
I18n.put("tooltip.tomcat_filename.title",
"Tomcat filename*",
"Tomcat filename*");
I18n.put("tooltip.tomcat_filename.desc",
"尝试替换 multipart filename/filename* 为 1.陪sp\n低位还原后可能变成 1.jsp\nSpringBoot ContentDisposition 有额外校验,不保证通用",
"Try replacing multipart filename/filename* with 1.陪sp\nLow-bit folding may produce 1.jsp\nSpring Boot ContentDisposition adds validation; this is not universally applicable");
I18n.put("tooltip.header_crlf.title",
"Header CRLF",
"Header CRLF");
I18n.put("tooltip.header_crlf.desc",
"替换选区为 瘍瘊\n低位还原后为 \\r\\n,可用于 header value 断行测试\n推荐发送: Raw Socket\n操作: 先选中 header value 中要替换的位置",
"Replace the selection with 瘍瘊\nFolds to \\r\\n for header line-break tests\nRecommended sender: Raw Socket\nSelect the position to replace in a header value first");
I18n.put("manual.send.auto_tip",
"Send (Auto: 含非 ASCII -> Raw, 否则 Burp)",
"Send (Auto: non-ASCII request line/headers -> Raw; otherwise Burp)");
I18n.put("manual.send.choose_mode",
"选择发送模式",
"Choose sending mode");
I18n.put("manual.undo",
"撤销",
"Undo");
I18n.put("manual.redo",
"恢复",
"Redo");
I18n.put("manual.reset",
"恢复到原始请求",
"Restore the original request");
I18n.put("manual.follow_redirect",
"自动跟随 301/302/303/307/308 跳转",
"Follow 301/302/303/307/308 redirects");
I18n.put("manual.send.auto",
"Auto (含非 ASCII -> Raw)",
"Auto (non-ASCII request line/headers -> Raw)");
I18n.put("manual.send.raw_hint",
"Raw 模式直连目标,不走 Burp 上游代理,禁用证书校验(CTF/测试)",
"Raw connects directly, bypasses Burp upstream proxies, and disables certificate verification (CTF/testing)");
I18n.put("manual.history.load",
"加载请求到编辑器",
"Load request into editor");
I18n.put("manual.history.delete",
"删除此记录",
"Delete this entry");
I18n.put("dialog.path_no_target",
"当前 path 没有可变换的内容,请先选中目标片段",
"The path has no matching content. Select the target text first.");
I18n.put("dialog.request_empty",
"请求为空",
"The request is empty.");
I18n.put("dialog.request_content_empty",
"请求内容为空",
"The request is empty.");
I18n.put("dialog.request_line_missing",
"未识别请求行",
"Could not identify the request line.");
I18n.put("dialog.path_not_found",
"请求行格式不规范,无法定位 path",
"Cannot locate the path in this malformed request line.");
I18n.put("dialog.content_type_missing",
"当前请求没有 Content-Type",
"The request has no Content-Type header.");
I18n.put("dialog.content_type_invalid",
"Content-Type 格式异常",
"The Content-Type header is malformed.");
I18n.put("dialog.charset_missing",
"当前 Content-Type 没有 charset 参数,请先做字符集编码",
"Content-Type has no charset parameter. Apply charset encoding first.");
I18n.put("dialog.dirty_length",
"输入脏数据长度(数字字符数量):",
"Enter the noise length (number of digits):");
I18n.put("dialog.positive_number",
"请输入大于 0 的数字",
"Enter a number greater than 0.");
I18n.put("dialog.valid_number",
"请输入有效数字",
"Enter a valid number.");
I18n.put("dialog.null_count",
"输入 Null 字节数量:",
"Enter the number of null bytes:");
I18n.put("dialog.body_empty",
"请求体为空",
"The request body is empty.");
I18n.put("dialog.body_missing",
"未找到请求体",
"Could not find the request body.");
I18n.put("dialog.gzip_already_header",
"Header 显示已是 Gzip 格式,取消操作。",
"The headers already indicate Gzip encoding. Operation cancelled.");
I18n.put("dialog.gzip_confirm",
"检测到 Body 似乎已经是 Gzip 格式 (Magic Bytes 1F 8B)。\n是否继续强制压缩?(可能导致双重压缩)",
"The body appears to be Gzip data (magic bytes 1F 8B).\nCompress it again? This may cause double compression.");
I18n.put("dialog.warning.title",
"警告",
"Warning");
I18n.put("dialog.no_convertible_params",
"无法从当前 body 提取可转换的普通参数",
"No convertible text parameters were found in the request body.");
I18n.put("dialog.multipart_already",
"当前请求已是 Multipart 格式",
"The request is already in multipart format.");
I18n.put("dialog.body_binary",
"当前请求体看起来已是二进制/已编码数据,请先恢复原请求,再进行字符集编码",
"The request body appears to be binary or already encoded. Use Restore Original before applying charset encoding.");
I18n.put("dialog.ghost_select_original",
"请先选中要 Ghost 化的原始 payload",
"Select the original payload to Ghost-encode first.");
I18n.put("dialog.ghost_line_breaks",
"当前选区包含换行。该策略可能把 CR/LF 也 Ghost 化,导致 HTTP 请求结构被破坏。\n是否继续?",
"The selection contains line breaks. This strategy may Ghost-encode CR/LF and break the HTTP request structure.\nContinue?");
I18n.put("dialog.ghost_select_shuffle",
"请先选中已 Ghost 化或待 Ghost 化的文本",
"Select Ghost-encoded text or text to Ghost-encode first.");
I18n.put("ghost.shuffle.before",
"换组前: ",
"Before shuffle: ");
I18n.put("ghost.shuffle.after",
"换组后: ",
"After shuffle: ");
I18n.put("ghost.fold.before",
"还原前: ",
"Fold before: ");
I18n.put("ghost.fold.after",
"还原后: ",
"Fold after: ");
I18n.put("ghost.fold.unchanged",
" (不变)",
" (unchanged)");
I18n.put("ghost.fold.changed",
" (! 已改变)",
" (! changed)");
I18n.put("dialog.ghost_invalid_utf8",
"当前选区不是有效 UTF-8 文本。Gh0st Bits 只处理 ASCII/UTF-8 文本选区,避免破坏二进制 body。",
"The selection is not valid UTF-8. Gh0st Bits accepts only ASCII/UTF-8 text to avoid corrupting binary bodies.");
I18n.put("dialog.select_replacement",
"请先选中要替换的位置",
"Select the position to replace first.");
I18n.put("dialog.jetty_select",
"Jetty %2> 只处理点号 token。请选中 .、%2e,或包含这些 token 的路径片段。",
"Jetty %2> handles dot tokens only. Select a dot, %2e, or a path containing these tokens.");
I18n.put("dialog.tomcat_select",
"请先选中 filename* 中要隐藏的原始字符,例如 j 或 .jsp",
"Select the original filename* characters to hide, such as j or .jsp.");
I18n.put("dialog.cancel",
"取消",
"Cancel");
I18n.put("dialog.encode_original",
"继续按原文编码",
"Encode original text");
I18n.put("dialog.select_parser",
"请先选中要处理的解析差异片段",
"Select the text to apply the parser transformation to.");
I18n.put("dialog.select_ascii",
"请先选中一个 ASCII 字符(如 . / % / @ / \\r / \\n)",
"Select one ASCII character, such as . / % / @ / \\r / \\n.");
I18n.put("ghost.character",
"字符: ",
"Character: ");
I18n.put("ghost.mode",
"模式: ",
"Mode: ");
I18n.put("ghost.original",
"原文: ",
"Original: ");
I18n.put("ghost.restored",
"Ghost 还原: ",
"Ghost restore: ");
I18n.put("dialog.filename_fallback",
"未在请求中找到 filename= 段。\n是否回退为「替换当前选中文本」?",
"No filename= field was found in the request.\nReplace the currently selected text instead?");
I18n.put("dialog.filename_missing.title",
"filename 定位失败",
"Filename not found");
I18n.put("dialog.header_name",
"输入 header 名:",
"Enter the header name:");
I18n.put("dialog.header_choose",
"选择要替换 value 的 header:",
"Choose the header whose value should be replaced:");
I18n.put("dialog.ghost_select_preview",
"请先选中要预览的 Gh0st Bits 文本",
"Select the Gh0st Bits text to preview first.");
I18n.put("dialog.select_transform",
"请先选中要变换的文本",
"Select the text to transform first.");
I18n.put("dialog.host_empty",
"Host 不能为空",
"Host cannot be empty.");
I18n.put("dialog.port_number",
"端口号必须是数字",
"The port must be a number.");
I18n.put("dialog.selection_not_found",
"未找到选中文本在请求中的位置",
"Could not locate the selected text in the request.");
I18n.put("dialog.scope.selection",
"选区处",
"Selected occurrence");
I18n.put("dialog.scope.title",
"作用域",
"Scope");
I18n.put("dialog.selection_changed",
"选区位置已变化,未找到可替换内容",
"The selection has moved. No matching content was found to replace.");
I18n.put("dialog.select_insertion",
"请先选中插入位置",
"Select the insertion position first.");
I18n.put("config.read_only_hint",
" 《只读,在 BypassPro-config.yaml 中修改》",
" (read-only; edit BypassPro-config.yaml)");
I18n.put("config.read_only_suffix",
" (只读)",
" (read-only)");
I18n.put("tooltip.path.suffix_selection",
"选区: 在选区末尾追加 %s",
"Selection: append %s");
I18n.put("tooltip.path.prefix_selection",
"选区: 在选区前加 %s",
"Selection: prepend %s");
I18n.put("tooltip.path.prefix_default",
"无选区: 给每个 path segment 加 %s",
"No selection: prefix every path segment with %s");
I18n.put("tooltip.path.append_default",
"无选区: 给每个 path segment 追加 %s",
"No selection: append %s to every path segment");
I18n.put("tooltip.path.append_end",
"无选区: 追加到 request path 末尾",
"No selection: append to the request path");
I18n.put("tooltip.path.standard_traversal",
"用途: 绕过只匹配标准 ../ 的规则",
"Purpose: test filters that only match standard ../");
I18n.put("tooltip.path.double_decode",
"用途: 双重 URL decode 后恢复 /",
"Purpose: restore / after double URL decoding");
I18n.put("tooltip.path.overlong",
"用途: 历史 overlong UTF-8 slash 绕过思路",
"Purpose: test legacy overlong UTF-8 slash handling");
I18n.put("tooltip.path.static_suffix",
"用途: 静态资源伪装",
"Purpose: disguise the path as a static resource");
I18n.put("tooltip.path.semicolon_static",
"用途: 分号路径参数 + 静态资源伪装",
"Purpose: combine semicolon path parameters with a static resource suffix");
I18n.put("tooltip.path.normalization",
"用途: 路径规范化差异",
"Purpose: test path normalization differences");
I18n.put("tooltip.path.query_boundary",
"用途: query 边界混淆",
"Purpose: test query boundary handling");
I18n.put("tooltip.path.double_slash",
"用途: 双斜杠规范化 / path collapse 差异",
"Purpose: test double-slash normalization and path collapse");
I18n.put("tooltip.path.current_directory",
"用途: 当前目录规范化差异",
"Purpose: test current-directory normalization");
I18n.put("tooltip.path.encoded_directory",
"用途: 编码当前目录规范化差异",
"Purpose: test encoded current-directory normalization");
I18n.put("tooltip.path.semicolon_segment",
"用途: 分号路径参数 / segment 解析差异",
"Purpose: test semicolon path parameters and segment parsing");
I18n.put("tooltip.path.dot_semicolon",
"用途: 点 + 分号组合解析差异",
"Purpose: test combined dot and semicolon parsing");
I18n.put("tooltip.path.encoded_dot",
"用途: 编码点前缀",
"Purpose: test encoded dot prefixes");
I18n.put("tooltip.path.double_encoded_dot",
"用途: 双重编码点前缀",
"Purpose: test double-encoded dot prefixes");
I18n.put("tooltip.path.encoded_backslash",
"用途: 编码反斜杠路径差异",
"Purpose: test encoded backslash path handling");
I18n.put("tooltip.path.matrix_boundary",
"用途: 矩阵参数 / 分号边界",
"Purpose: test matrix parameters and semicolon boundaries");
I18n.put("tooltip.path.dot_semicolon_parse",
"用途: 点分号解析差异",
"Purpose: test dot-semicolon parsing");
I18n.put("tooltip.path.double_dot_semicolon",
"用途: 点点分号解析差异",
"Purpose: test double-dot-semicolon parsing");
I18n.put("tooltip.path.matrix_params",
"用途: 矩阵参数混淆",
"Purpose: test matrix parameter handling");
I18n.put("tooltip.path.java_session",
"用途: Java session path 参数",
"Purpose: test Java session path parameters");
I18n.put("tooltip.path.semicolon_params",
"用途: 泛化 matrix param / 分号参数解析差异",
"Purpose: test matrix and semicolon parameter parsing");
}
// 模板原文也可作为 key:仅匹配内置说明,保留用户自定义文本。
private static void registerParameterizedUi() {
I18n.put("dialog.error.gzip",
"Gzip 错误: %s",
"Gzip error: %s");
I18n.put("dialog.error.form",
"Form 转换错误: %s",
"Form conversion error: %s");
I18n.put("dialog.error.multipart",
"Multipart 转换错误: %s",
"Multipart conversion error: %s");
I18n.put("dialog.error.json",
"JSON 转换错误: %s",
"JSON conversion error: %s");
I18n.put("dialog.error.encoding",
"编码错误: %s",
"Encoding error: %s");
I18n.put("dialog.force_url_encode",
"当前选区按标准 URL 编码后没有变化。\n\n这通常是因为选区只包含字母、数字等 URL 安全字符。\n是否仍然强制把选区每个原始字节编码成 %XX?",
"Standard URL encoding did not change the selection.\n\nIt may contain only URL-safe characters such as letters and digits.\nEncode every selected byte as %XX anyway?");
I18n.put("dialog.force_path_encode",
"当前选区按 Path 编码后没有变化。\n\n这通常是因为选区只包含路径安全字符。\n是否仍然强制把选区每个原始字节编码成 %XX?",
"Path encoding did not change the selection.\n\nIt may contain only path-safe characters.\nEncode every selected byte as %XX anyway?");
I18n.put("dialog.force_double_encode",
"当前选区按双重 URL 编码后没有变化。\n\n这通常是因为选区只包含字母、数字等 URL 安全字符。\n是否仍然强制编码安全字符?例如 d -> %64 -> %2564。",
"Double URL encoding did not change the selection.\n\nIt may contain only URL-safe characters such as letters and digits.\nForce encoding of safe characters, for example d -> %64 -> %2564?");
I18n.put("dialog.tomcat_hex_input",
"Tomcat %%HH 接收原始字符,不接收 hex 字符串。\n例如要隐藏 j,请选中 j;不要选中 6a。\n\n如果继续,工具会把字符 %s 本身逐字节编码。",
"Tomcat %%HH expects original characters, not a hex string.\nTo hide j, select j rather than 6a.\n\nContinuing will encode the literal characters %s byte by byte.");
I18n.put("dialog.template_empty",
"模板 %s 渲染结果为空,请检查 YAML pattern",
"Template %s rendered no content. Check its YAML pattern.");
I18n.put("dialog.header_missing",
"未找到 header: %s",
"Header not found: %s");
I18n.put("dialog.template_preview",
"模板已生成,请先选中要替换的位置(target=%s)后再应用:\n\n%s",
"Template generated. Select the position to replace (target=%s), then apply it:\n\n%s");
I18n.put("dialog.selection_unchanged",
"当前操作对选区没有产生变化。\n\n常见原因:选区字符在该规则下属于安全字符,或已经符合目标形态。",
"This operation did not change the selection.\n\nThe selected characters may be safe under this rule or already in the target form.");
I18n.put("dialog.scope.all",
"全部 (%d 处)",
"All (%d matches)");
I18n.put("dialog.scope.occurrence",
"第 %d 处: ...%s...",
"Match %d: ...%s...");
I18n.put("dialog.scope.prompt",
"请求中有 %d 处匹配,选择作用域:",
"Found %d matches in the request. Choose the scope:");
I18n.put("template.source",
"来自 YAML: profiles.manual_waf_bypass.ghost_bits.templates.%s",
"YAML source: profiles.manual_waf_bypass.ghost_bits.templates.%s");
I18n.put("template.target",
"目标: %s",
"Target: %s");
I18n.put("template.sender",
"发送: %s",
"Sender: %s");
I18n.put("template.action",
"操作: 按模板 target 自动处理;selection 模板需先选中替换位置",
"Usage: apply to the template target; select the replacement position first for selection templates");
I18n.put("template.notes",
"说明: %s",
"Notes: %s");
I18n.put("Jetty %2> Loose Hex (Openfire 进阶)",
"Jetty %2> Loose Hex (Openfire 进阶)",
"Jetty %2> Loose Hex (Openfire advanced)");
I18n.put("Spring 检查阶段看不到 ../,后续解析阶段低位还原为 .%u002e 并继续解码为 ..",
"Spring 检查阶段看不到 ../,后续解析阶段低位还原为 .%u002e 并继续解码为 ..",
"Spring validation does not see ../; later parsing folds to .%u002e and decodes it to ..");
I18n.put("TypeUtil.convertHexDigit 容错: %2> -> %2E -> .",
"TypeUtil.convertHexDigit 容错: %2> -> %2E -> .",
"TypeUtil.convertHexDigit loose parsing: %2> -> %2E -> .");
I18n.put("RFC2231 multipart filename* 解析差异: 陪 -> j",
"RFC2231 multipart filename* 解析差异: 陪 -> j",
"RFC2231 multipart filename* parsing difference: 陪 -> j");
I18n.put("RFC2231 multipart filename* 解析差异,%HH 中的 H 使用 7-bit Ghost 字符,鸶繡 低 7 位还原为 6a",
"RFC2231 multipart filename* 解析差异,%HH 中的 H 使用 7-bit Ghost 字符,鸶繡 低 7 位还原为 6a",
"RFC2231 multipart filename* parsing difference: the H characters in %HH use 7-bit Ghost characters; 鸶繡 folds to 6a");
I18n.put("(byte) chars[i] 把 char 直接写为 byte",
"(byte) chars[i] 把 char 直接写为 byte",
"(byte) chars[i] writes a char directly as a byte");
I18n.put("\\x 解析表未填充位置按 0 参与计算: \\x4_ -> 0x40 -> @",
"\\x 解析表未填充位置按 0 参与计算: \\x4_ -> 0x40 -> @",
"Unfilled entries in the \\x parsing table are treated as 0: \\x4_ -> 0x40 -> @");
I18n.put("全角 %2e 在多重规范化后还原为 %2e -> .",
"全角 %2e 在多重规范化后还原为 %2e -> .",
"Fullwidth %2e normalizes to %2e -> . after multiple normalization steps");
I18n.put("\\u 转义 hex 解析使用 Character.digit(): Arabic-Indic ٠٠٤٠ → 0040 → @。⚠️ 警告:此漏洞基于真实的数字属性,请勿对其使用“换组”操作!",
"\\u 转义 hex 解析使用 Character.digit(): Arabic-Indic ٠٠٤٠ → 0040 → @。⚠️ 警告:此漏洞基于真实的数字属性,请勿对其使用“换组”操作!",
"\\u hex parsing uses Character.digit(): Arabic-Indic ٠٠٤٠ -> 0040 -> @. Warning: this relies on actual digit properties. Do not use Shuffle!");
I18n.put("Jackson ReaderBasedJsonParser 的 charToHex(ch & 255): Ghost 化 \\u0040 的 4 个 hex 位,低位还原后仍为 @type;SpringBoot 默认 UTF8StreamJsonParser 通常不触发",
"Jackson ReaderBasedJsonParser 的 charToHex(ch & 255): Ghost 化 \\u0040 的 4 个 hex 位,低位还原后仍为 @type;SpringBoot 默认 UTF8StreamJsonParser 通常不触发",
"Jackson ReaderBasedJsonParser charToHex(ch & 255): Ghost-encode the four hex digits in \\u0040 to restore @type after folding. The default Spring Boot UTF8StreamJsonParser is usually unaffected.");
I18n.put("$$BCEL$$ 前缀必须保持字面量;真正 Ghost 化的是后续 gzip/class encoded bytes,本模板只插入前缀",
"$$BCEL$$ 前缀必须保持字面量;真正 Ghost 化的是后续 gzip/class encoded bytes,本模板只插入前缀",
"Keep the $$BCEL$$ prefix literal. Ghost encoding applies to the following gzip/class encoded bytes. This template inserts only the prefix.");
I18n.put("Integer.parseInt() 接受 Unicode 数字变体(如 Arabic-Indic ٢):%٢e%٢e -> %2e%2e -> .. ⚠️ 警告:此漏洞基于真实的数字属性,请勿对其使用“换组”操作!",
"Integer.parseInt() 接受 Unicode 数字变体(如 Arabic-Indic ٢):%٢e%٢e -> %2e%2e -> .. ⚠️ 警告:此漏洞基于真实的数字属性,请勿对其使用“换组”操作!",
"Integer.parseInt() accepts Unicode digits such as Arabic-Indic ٢: %٢e%٢e -> %2e%2e -> .. Warning: this relies on actual digit properties. Do not use Shuffle!");
I18n.put("inspector.empty_payload",
"空 payload",
"Empty payload");
I18n.put("inspector.custom_payload",
"自定义 payload",
"Custom payload");
}
}