mirror of
https://github.com/Momoko-Ayase/Senbei.git
synced 2026-11-25 18:52:47 +08:00
feat(gui): finalize native desktop release 1.4.0
Apply the reviewed five-language wording and action-button sizing fixes. Preserve serialized English messages and report wire values. Honor configured resource limits during added-file identification, with regression tests for UI requests and native package inspection. Build and package the CLI and desktop app together in CI and release archives, including the font license and usage instructions. Bump workspace and browser bindings to 1.4.0 without upgrading third-party dependencies.
This commit is contained in:
1 parent
5121ec8ee3
commit
20a68b1c73
24 files changed
+537
-351
No files matched your search
+19
-20
@@ -82,7 +82,7 @@ pub(crate) fn step(step: &Step) -> Cow<'static, str> {
|
||||
Step::RebuildHeaders => "Reconstructing PE headers...".into(),
|
||||
Step::Pe32LocateConfig => "Locating config layout (PE32)...".into(),
|
||||
Step::Pe32Stages => "Decrypting stages (PE32)...".into(),
|
||||
Step::Pe32EighthStage => "Decrypting eighthStage (PE32)...".into(),
|
||||
Step::Pe32EighthStage => "Decrypting stage 8 (PE32)...".into(),
|
||||
Step::Pe32Load => "Loading and decompressing file data (PE32)...".into(),
|
||||
Step::Pe32Text { formula } => {
|
||||
format!("Decrypting .text (PE32 dd8, formula={formula})...").into()
|
||||
@@ -189,9 +189,9 @@ pub(crate) fn cli(cli: &Cli) -> Cow<'static, str> {
|
||||
Cli::UnknownOption { option } => format!("unknown option '{option}'").into(),
|
||||
Cli::MultipleInputs { first, second } => format!("multiple input paths given ('{first}' and '{second}')").into(),
|
||||
Cli::SubcommandNeedsPath { subcommand } => format!("'{subcommand}' requires an input path").into(),
|
||||
Cli::InspectNoDryRun => "'inspect' writes nothing; drop --dry-run".into(),
|
||||
Cli::InspectNoOut => "'inspect' writes nothing; --out is not allowed".into(),
|
||||
Cli::DryRunNoOut => "--dry-run writes no output; --out is not allowed".into(),
|
||||
Cli::InspectNoDryRun => "'inspect' does not save output files; omit --dry-run".into(),
|
||||
Cli::InspectNoOut => "'inspect' does not save output files; --out is not allowed".into(),
|
||||
Cli::DryRunNoOut => "--dry-run does not save output files; --out is not allowed".into(),
|
||||
Cli::ColorRequiresMode => "--color requires auto, always, or never".into(),
|
||||
Cli::ThreadsRequiresInteger => "--threads requires a positive integer argument".into(),
|
||||
Cli::LimitRequiresInteger { flag } => format!("{flag} requires an unsigned integer argument").into(),
|
||||
@@ -205,21 +205,20 @@ pub(crate) fn cli(cli: &Cli) -> Cow<'static, str> {
|
||||
\x20 these. The bare form is the same as 'unpack'."
|
||||
.into(),
|
||||
Cli::HelpInspect => " inspect PATH\n\
|
||||
\x20 run the real static recovery for research, and report\n\
|
||||
\x20 everything observed: recognition evidence, each route\n\
|
||||
\x20 tried and why it was rejected, the route selected, the\n\
|
||||
\x20 static check's verdict, and the engines' own structural\n\
|
||||
\x20 evidence (protected-header fields, seeds, module records,\n\
|
||||
\x20 restored-image facts). Nothing is kept: no output file,\n\
|
||||
\x20 no log, no temporary tree, and the input is never run."
|
||||
\x20 run static recovery for research and report all collected\n\
|
||||
\x20 evidence: recognition evidence, candidate routes tried and\n\
|
||||
\x20 rejection reasons, the selected route, static validation\n\
|
||||
\x20 verdict, and structural evidence (protected-header fields,\n\
|
||||
\x20 seeds, module records, and restored-image details). Saves\n\
|
||||
\x20 no output files or logs, removes temporary workspaces,\n\
|
||||
\x20 and never executes the input."
|
||||
.into(),
|
||||
Cli::HelpUnpack => " unpack PATH detection and recovery; writes outputs (the default).".into(),
|
||||
Cli::HelpJson => " --json write one versioned machine-readable report to stdout and\n\
|
||||
\x20 nothing else. Implies quiet and --no-log."
|
||||
.into(),
|
||||
Cli::HelpDryRun => " --dry-run run the real recovery but keep nothing: no output tree and\n\
|
||||
\x20 no log. Android extraction still uses its own temporary\n\
|
||||
\x20 workspace, which is discarded."
|
||||
Cli::HelpDryRun => " --dry-run run recovery without saving output files or logs.\n\
|
||||
\x20 Temporary extraction workspaces are removed after the run."
|
||||
.into(),
|
||||
Cli::HelpThreads => " --threads N positive worker cap for this run. Overrides SENBEI_THREADS;\n\
|
||||
\x20 1 selects the sequential path. The environment is unchanged."
|
||||
@@ -233,12 +232,12 @@ pub(crate) fn cli(cli: &Cli) -> Cow<'static, str> {
|
||||
\x20 size floor; other filenames remain excluded."
|
||||
.into(),
|
||||
Cli::HelpStrictIntegrity => " --strict-integrity\n\
|
||||
\x20 exit non-zero when any output fails the static integrity\n\
|
||||
\x20 check (a suspect) or a file errors. Off by default: a\n\
|
||||
\x20 suspect is still written and the process exits 0 unless\n\
|
||||
\x20 a file errors. Quiet levels are unchanged.\n\
|
||||
\x20 With 'inspect', the check applies to the image actually\n\
|
||||
\x20 recovered for research; no output file is retained."
|
||||
\x20 exit non-zero when any output fails static validation\n\
|
||||
\x20 (suspect) or a file errors. Off by default: suspect files\n\
|
||||
\x20 are still written and the process exits 0 unless a file\n\
|
||||
\x20 errors. Quiet levels are unchanged.\n\
|
||||
\x20 With 'inspect', the check applies to the recovered image;\n\
|
||||
\x20 no output file is saved."
|
||||
.into(),
|
||||
Cli::HelpLimits { entry_mib, total_mib, entries, depth } => format!(
|
||||
" Android resource limits (MiB = 1048576 bytes):\n\
|
||||
|
||||
@@ -6,7 +6,7 @@ use crate::{Cli, Msg, Step, Term};
|
||||
|
||||
pub(crate) fn msg(msg: &Msg) -> Cow<'static, str> {
|
||||
match msg {
|
||||
Msg::CompanionMissing => "コンパニオンが見つからない可能性があります。このローダーには対応する<input>._ペイロードが必要です。入力ファイルの隣に配置して再試行してください。".into(),
|
||||
Msg::CompanionMissing => "コンパニオンファイルが見つかりません。このローダーには対応する<input>._ペイロードが必要です。入力ファイルと同じフォルダーに配置(ブラウザ版では両方のファイルを追加)して再試行してください。".into(),
|
||||
Msg::CompanionMismatch => "コンパニオンが一致しません。指定された._ペイロードが短すぎるか、ヘッダーがローダーと異なります。同じビルドのコンパニオンを使用してください (いずれかのファイルが破損している可能性があります)。".into(),
|
||||
Msg::InputTooShort { actual, required } => format!("入力が短すぎます (最低{required}バイト必要ですが、{actual}バイトです)").into(),
|
||||
Msg::NotProtected => "CrackProofで保護されたファイルではありません".into(),
|
||||
@@ -99,7 +99,7 @@ pub(crate) fn step(step: &Step) -> Cow<'static, str> {
|
||||
Step::DllSections => "セクションを復号・展開中...".into(),
|
||||
Step::FixHeaders => "PEヘッダーとセクションテーブルを修正中...".into(),
|
||||
Step::AndroidPrimary => "プライマリ0x9D対象イメージコンテナーをデコード中...".into(),
|
||||
Step::AndroidAuxiliary => "補助0x9D ELF実体化コンテナーをデコード中...".into(),
|
||||
Step::AndroidAuxiliary => "補助0x9D ELF再構築用コンテナーをデコード中...".into(),
|
||||
Step::AndroidTables => "静的ELF動的リンカーテーブルを再構築中...".into(),
|
||||
Step::WriteTo { dest } => format!("{dest}に書き込み").into(),
|
||||
}
|
||||
@@ -188,9 +188,9 @@ pub(crate) fn cli(cli: &Cli) -> Cow<'static, str> {
|
||||
Cli::UnknownOption { option } => format!("不明なオプション '{option}'").into(),
|
||||
Cli::MultipleInputs { first, second } => format!("複数の入力パスが指定されています ('{first}' と '{second}')").into(),
|
||||
Cli::SubcommandNeedsPath { subcommand } => format!("'{subcommand}' には入力パスが必要です").into(),
|
||||
Cli::InspectNoDryRun => "'inspect' は何も書き込まないため、--dry-runは不要です".into(),
|
||||
Cli::InspectNoOut => "'inspect' は何も書き込まないため、--outは指定できません".into(),
|
||||
Cli::DryRunNoOut => "--dry-runは何も出力しないため、--outは指定できません".into(),
|
||||
Cli::InspectNoDryRun => "'inspect' は出力ファイルを保存しないため、--dry-runは不要です".into(),
|
||||
Cli::InspectNoOut => "'inspect' は出力ファイルを保存しないため、--outは指定できません".into(),
|
||||
Cli::DryRunNoOut => "--dry-runは出力ファイルを保存しないため、--outは指定できません".into(),
|
||||
Cli::ColorRequiresMode => "--colorにはauto、always、またはneverが必要です".into(),
|
||||
Cli::ThreadsRequiresInteger => "--threadsには正の整数引数が必要です".into(),
|
||||
Cli::LimitRequiresInteger { flag } => format!("{flag}には符号なし整数引数が必要です").into(),
|
||||
@@ -228,7 +228,7 @@ pub(crate) fn cli(cli: &Cli) -> Cow<'static, str> {
|
||||
\x20 always/neverはこれらの変数を上書きします。JSONと保存される\n\
|
||||
\x20 ログは常にプレーンテキストのままです。"
|
||||
.into(),
|
||||
Cli::HelpScanAll => " --scan-all サイズ下限未満の対象名 (.exe/.dll/.so/メタデータ) も\n\
|
||||
Cli::HelpScanAll => " --scan-all 最小サイズ未満の対象ファイル (.exe/.dll/.so/メタデータ) も\n\
|
||||
\x20 プローブします。それ以外のファイル名は引き続き除外されます。"
|
||||
.into(),
|
||||
Cli::HelpStrictIntegrity => " --strict-integrity\n\
|
||||
@@ -255,7 +255,7 @@ pub(crate) fn cli(cli: &Cli) -> Cow<'static, str> {
|
||||
\x20 2 コマンドライン引数の却下。"
|
||||
.into(),
|
||||
Cli::ReportScanHeading => "スキャン".into(),
|
||||
Cli::ReportScan { skipped, walk_errors, probe_errors } => format!("プローブした対象外 {skipped} · 走査エラー {walk_errors} · プローブエラー {probe_errors}").into(),
|
||||
Cli::ReportScan { skipped, walk_errors, probe_errors } => format!("対象外 (プローブ済み) {skipped} · 走査エラー {walk_errors} · プローブエラー {probe_errors}").into(),
|
||||
Cli::ReportScanIncomplete => "解析が不完全です。一部のディレクトリ項目または選択したファイルを調査できませんでした".into(),
|
||||
Cli::AnalysisIncomplete => "解析不完全".into(),
|
||||
Cli::AnalysisIncompleteInput => "I/O、リソース上限、または基盤の問題により要求された処理を完了できませんでした".into(),
|
||||
|
||||
+23
-23
@@ -6,7 +6,7 @@ use crate::{Cli, Msg, Step, Term};
|
||||
|
||||
pub(crate) fn msg(msg: &Msg) -> Cow<'static, str> {
|
||||
match msg {
|
||||
Msg::CompanionMissing => "컴패니언 파일이 누락되었습니까? 이 로더는 일치하는 <input>._ 페이로드를 필요로 합니다. 입력 파일 옆에 두고 다시 시도하십시오.".into(),
|
||||
Msg::CompanionMissing => "컴패니언 파일이 없습니다. 이 로더에는 대응하는 <input>._ 페이로드가 필요합니다. 입력 파일과 같은 폴더에 두고(브라우저에서는 두 파일을 모두 추가하고) 다시 시도하십시오.".into(),
|
||||
Msg::CompanionMismatch => "컴패니언 파일이 일치하지 않습니다: 제공된 ._ 페이로드가 너무 짧거나 헤더가 로더의 헤더와 다릅니다. 동일한 빌드의 컴패니언 파일을 사용하십시오. 두 파일 중 하나가 손상되었을 수 있습니다.".into(),
|
||||
Msg::InputTooShort { actual, required } => format!(
|
||||
"입력이 너무 짧습니다 (최소 {required}바이트 필요, 실제 {actual}바이트)"
|
||||
@@ -110,7 +110,7 @@ pub(crate) fn msg(msg: &Msg) -> Cow<'static, str> {
|
||||
"섹션 #{index} 원시 데이터 [0x{start:X}..0x{end:X}]이(가) 파일 크기 0x{file_len:X}을(를) 초과합니다"
|
||||
)
|
||||
.into(),
|
||||
Msg::NoBaseRelocations => "네이티브 DLL에 기준 재배치 테이블이 없습니다 (DD[5]가 0임) — 기본 주소가 아닌 위치에 로드될 때 충돌합니다".into(),
|
||||
Msg::NoBaseRelocations => "네이티브 DLL에 베이스 재배치 테이블이 없습니다 (DD[5]가 0임) — 기본 ImageBase가 아닌 주소에 로드되면 크래시합니다".into(),
|
||||
Msg::ZeroEntryPoint => "엔트리 포인트 RVA가 0입니다".into(),
|
||||
Msg::EntryUnmapped { rva } => {
|
||||
format!("엔트리 포인트 RVA 0x{rva:X}이(가) 어느 섹션에도 매핑되지 않습니다").into()
|
||||
@@ -132,7 +132,7 @@ pub(crate) fn msg(msg: &Msg) -> Cow<'static, str> {
|
||||
)
|
||||
.into(),
|
||||
Msg::ImportNameUnreadable { index, rva } => format!(
|
||||
"RVA 0x{rva:X}에 있는 임포트 디스크립터 {index}의 DLL 이름이 읽을 수 있는 ASCII가 아닙니다 (임포트가 암호화된 채로 남았습니까?)"
|
||||
"임포트 디스크립터 {index}의 DLL 이름(RVA 0x{rva:X})이 읽을 수 있는 ASCII가 아닙니다 (임포트가 복호화되지 않았을 수 있음)"
|
||||
)
|
||||
.into(),
|
||||
Msg::ClrDirectoryUnmapped { rva } => {
|
||||
@@ -146,7 +146,7 @@ pub(crate) fn msg(msg: &Msg) -> Cow<'static, str> {
|
||||
format!("CLR MetaData RVA 0x{rva:X}이(가) 어느 섹션에도 매핑되지 않습니다").into()
|
||||
}
|
||||
Msg::ClrMetadataNoBsjb { rva } => format!(
|
||||
"RVA 0x{rva:X}의 CLR MetaData에 'BSJB' 서명이 없습니다 (메타데이터 손상 — 관리되는 이미지가 로드되지 않습니다)"
|
||||
"RVA 0x{rva:X}의 CLR MetaData에 'BSJB' 서명이 없습니다 (메타데이터 손상 — 관리형 이미지가 로드되지 않습니다)"
|
||||
)
|
||||
.into(),
|
||||
}
|
||||
@@ -184,7 +184,7 @@ pub(crate) fn step(step: &Step) -> Cow<'static, str> {
|
||||
Step::DllSections => "섹션 복호화 및 압축 해제 중...".into(),
|
||||
Step::FixHeaders => "PE 헤더 및 섹션 테이블 보정 중...".into(),
|
||||
Step::AndroidPrimary => "기본 0x9D 대상 이미지 컨테이너 디코딩 중...".into(),
|
||||
Step::AndroidAuxiliary => "보조 0x9D ELF 구체화 컨테이너 디코딩 중...".into(),
|
||||
Step::AndroidAuxiliary => "보조 0x9D ELF 재구성 컨테이너 디코딩 중...".into(),
|
||||
Step::AndroidTables => "정적 ELF 동적 링커 테이블 재구성 중...".into(),
|
||||
Step::WriteTo { dest } => format!("{dest}(으)로 기록").into(),
|
||||
}
|
||||
@@ -193,20 +193,20 @@ pub(crate) fn step(step: &Step) -> Cow<'static, str> {
|
||||
pub(crate) fn term(term: &Term) -> Cow<'static, str> {
|
||||
match term {
|
||||
Term::Ok => "정상",
|
||||
Term::Suspect => "의심됨",
|
||||
Term::Suspect => "주의 필요",
|
||||
Term::Recognized => "인식됨",
|
||||
Term::NotRecognized => "인식되지 않음",
|
||||
Term::Skipped => "건너뜀",
|
||||
Term::Error => "오류",
|
||||
Term::Restored => "복원됨",
|
||||
Term::Duplicate => "중복",
|
||||
Term::NotTarget => "비대상",
|
||||
Term::NotTarget => "대상 아님",
|
||||
Term::Unchanged => "변경 없음",
|
||||
Term::Inventoried => "목록화됨",
|
||||
Term::Failed => "실패함",
|
||||
Term::Inventoried => "목록 확인됨",
|
||||
Term::Failed => "실패",
|
||||
Term::Blocked => "차단됨",
|
||||
Term::NotAttempted => "시도 안 함",
|
||||
Term::Succeeded => "성공함",
|
||||
Term::Succeeded => "성공",
|
||||
Term::Rejected => "거부됨",
|
||||
Term::Clean => "정상",
|
||||
Term::Warnings => "경고",
|
||||
@@ -216,7 +216,7 @@ pub(crate) fn term(term: &Term) -> Cow<'static, str> {
|
||||
Term::Unmatched => "일치하지 않음",
|
||||
Term::Unreadable => "읽을 수 없음",
|
||||
Term::Detection => "탐지",
|
||||
Term::ManifestInventory => "매니페스트 목록화",
|
||||
Term::ManifestInventory => "매니페스트 목록 확인",
|
||||
Term::EntryProbe => "항목 프로브",
|
||||
Term::Recovery => "복원",
|
||||
Term::StaticValidation => "정적 검증",
|
||||
@@ -267,7 +267,7 @@ pub(crate) fn cli(cli: &Cli) -> Cow<'static, str> {
|
||||
suspect,
|
||||
metadata,
|
||||
} => format!(
|
||||
"언패킹 {unpacked} · 건너뜀 {skipped} · 오류 {errors} · 의심됨 {suspect} · 메타데이터 {metadata}"
|
||||
"언패킹 {unpacked} · 건너뜀 {skipped} · 오류 {errors} · 주의 필요 {suspect} · 메타데이터 {metadata}"
|
||||
)
|
||||
.into(),
|
||||
Cli::SummaryPackages { packages } => format!(" · 패키지 {packages}").into(),
|
||||
@@ -301,12 +301,12 @@ pub(crate) fn cli(cli: &Cli) -> Cow<'static, str> {
|
||||
format!("'{subcommand}'에는 입력 경로가 필요합니다").into()
|
||||
}
|
||||
Cli::InspectNoDryRun => {
|
||||
"'inspect'는 아무것도 기록하지 않습니다. --dry-run을 제거하십시오".into()
|
||||
"'inspect'는 출력 파일을 저장하지 않으므로 --dry-run은 불필요합니다".into()
|
||||
}
|
||||
Cli::InspectNoOut => {
|
||||
"'inspect'는 아무것도 기록하지 않습니다. --out은 허용되지 않습니다".into()
|
||||
"'inspect'는 출력 파일을 저장하지 않으므로 --out을 사용할 수 없습니다".into()
|
||||
}
|
||||
Cli::DryRunNoOut => "--dry-run은 출력을 기록하지 않습니다. --out은 허용되지 않습니다".into(),
|
||||
Cli::DryRunNoOut => "--dry-run은 출력 파일을 저장하지 않으므로 --out을 사용할 수 없습니다".into(),
|
||||
Cli::ColorRequiresMode => "--color에는 auto, always 또는 never가 필요합니다".into(),
|
||||
Cli::ThreadsRequiresInteger => "--threads에는 양의 정수 인수가 필요합니다".into(),
|
||||
Cli::LimitRequiresInteger { flag } => {
|
||||
@@ -349,16 +349,16 @@ pub(crate) fn cli(cli: &Cli) -> Cow<'static, str> {
|
||||
\x20 always/never는 이 변수들보다 우선합니다. JSON 및 저장된 로그는\n\
|
||||
\x20 일반 텍스트로 유지됩니다."
|
||||
.into(),
|
||||
Cli::HelpScanAll => " --scan-all 최소 크기 기준 미만인 지정된 .exe/.dll/.so/메타데이터 이름을\n\
|
||||
Cli::HelpScanAll => " --scan-all 최소 크기 기준 미만인 대상 파일(.exe/.dll/.so/메타데이터)도\n\
|
||||
\x20 프로브합니다. 다른 파일 이름은 계속 제외됩니다."
|
||||
.into(),
|
||||
Cli::HelpStrictIntegrity => " --strict-integrity\n\
|
||||
\x20 출력이 정적 무결성 검사에 실패하거나 (의심됨) 파일에 오류가\n\
|
||||
\x20 출력이 정적 무결성 검사에 실패하거나 (주의 필요) 파일에 오류가\n\
|
||||
\x20 발생하면 0이 아닌 코드로 종료합니다. 기본값은 해제 상태이며,\n\
|
||||
\x20 의심됨 항목도 파일로 기록되고 파일 오류가 없는 한 프로세스는\n\
|
||||
\x20 주의 필요 항목도 파일로 저장되고 파일 오류가 없는 한 프로세스는\n\
|
||||
\x20 0으로 종료합니다. quiet 수준은 변경되지 않습니다.\n\
|
||||
\x20 'inspect'와 함께 사용하면 연구를 위해 실제로 복원된 이미지에\n\
|
||||
\x20 검사가 적용되며 출력 파일은 유지되지 않습니다."
|
||||
\x20 'inspect'와 함께 사용하면 분석을 위해 실제로 복원된 이미지에\n\
|
||||
\x20 검사가 적용되며 출력 파일은 저장되지 않습니다."
|
||||
.into(),
|
||||
Cli::HelpLimits {
|
||||
entry_mib,
|
||||
@@ -378,15 +378,15 @@ pub(crate) fn cli(cli: &Cli) -> Cow<'static, str> {
|
||||
\x20 시스템 언어를 사용합니다. JSON 및 저장된 로그는 영어로\n\
|
||||
\x20 유지됩니다."
|
||||
.into(),
|
||||
Cli::HelpExitCodes => " 종료 코드: 0 성공, 1 대상 실패 (--strict-integrity 사용 시 의심됨 포함),\n\
|
||||
\x20 2 명령줄이 거부됨."
|
||||
Cli::HelpExitCodes => " 종료 코드: 0 성공, 1 대상 실패 (--strict-integrity 사용 시 주의 필요 포함),\n\
|
||||
\x20 2 명령줄 인수가 거부됨."
|
||||
.into(),
|
||||
Cli::ReportScanHeading => "스캔".into(),
|
||||
Cli::ReportScan {
|
||||
skipped,
|
||||
walk_errors,
|
||||
probe_errors,
|
||||
} => format!("프로브한 비대상 {skipped} · 탐색 오류 {walk_errors} · 프로브 오류 {probe_errors}").into(),
|
||||
} => format!("비대상 (프로브됨) {skipped} · 탐색 오류 {walk_errors} · 프로브 오류 {probe_errors}").into(),
|
||||
Cli::ReportScanIncomplete => {
|
||||
"분석이 불완전합니다: 일부 디렉터리 항목 또는 선택한 파일을 조사할 수 없었습니다".into()
|
||||
}
|
||||
|
||||
+18
-20
@@ -6,7 +6,7 @@ use crate::{Cli, Msg, Step, Term};
|
||||
|
||||
pub(crate) fn msg(msg: &Msg) -> Cow<'static, str> {
|
||||
match msg {
|
||||
Msg::CompanionMissing => "缺少伴生文件?此加载器需要匹配的 <input>._ 载荷。请将其放在输入文件旁并重试。".into(),
|
||||
Msg::CompanionMissing => "缺少伴生文件:此加载器需要匹配的 <input>._ 载荷。请将它放在输入文件所在的文件夹中,然后重试。浏览器版需同时添加这两个文件。".into(),
|
||||
Msg::CompanionMismatch => "伴生文件不匹配:提供的 ._ 载荷过短,或其头部与加载器不一致。请使用来自同一构建版本的伴生文件;其中任一文件都可能已损坏。".into(),
|
||||
Msg::InputTooShort { actual, required } => format!("输入过短(至少需要 {required} 字节,实际为 {actual} 字节)").into(),
|
||||
Msg::NotProtected => "不是受 CrackProof 保护的文件".into(),
|
||||
@@ -81,7 +81,7 @@ pub(crate) fn step(step: &Step) -> Cow<'static, str> {
|
||||
Step::RebuildHeaders => "正在重建 PE 头部...".into(),
|
||||
Step::Pe32LocateConfig => "正在定位配置布局 (PE32)...".into(),
|
||||
Step::Pe32Stages => "正在解密各阶段 (PE32)...".into(),
|
||||
Step::Pe32EighthStage => "正在解密 eighthStage (PE32)...".into(),
|
||||
Step::Pe32EighthStage => "正在解密第八阶段 (PE32)...".into(),
|
||||
Step::Pe32Load => "正在加载并解压文件数据 (PE32)...".into(),
|
||||
Step::Pe32Text { formula } => {
|
||||
format!("正在解密 .text (PE32 dd8, formula={formula})...").into()
|
||||
@@ -99,7 +99,7 @@ pub(crate) fn step(step: &Step) -> Cow<'static, str> {
|
||||
Step::DllSections => "正在解密并解压各节...".into(),
|
||||
Step::FixHeaders => "正在修正 PE 头部与节表...".into(),
|
||||
Step::AndroidPrimary => "正在解码主 0x9D 目标映像容器...".into(),
|
||||
Step::AndroidAuxiliary => "正在解码辅助 0x9D ELF 物化容器...".into(),
|
||||
Step::AndroidAuxiliary => "正在解码辅助 0x9D ELF 容器...".into(),
|
||||
Step::AndroidTables => "正在重建静态 ELF 动态链接器表...".into(),
|
||||
Step::WriteTo { dest } => format!("写入 {dest}").into(),
|
||||
}
|
||||
@@ -123,7 +123,7 @@ pub(crate) fn term(term: &Term) -> Cow<'static, str> {
|
||||
Term::NotAttempted => "未尝试",
|
||||
Term::Succeeded => "成功",
|
||||
Term::Rejected => "已拒绝",
|
||||
Term::Clean => "干净",
|
||||
Term::Clean => "通过",
|
||||
Term::Warnings => "警告",
|
||||
Term::NotRun => "未运行",
|
||||
Term::Absent => "无",
|
||||
@@ -188,9 +188,9 @@ pub(crate) fn cli(cli: &Cli) -> Cow<'static, str> {
|
||||
Cli::UnknownOption { option } => format!("未知选项 '{option}'").into(),
|
||||
Cli::MultipleInputs { first, second } => format!("指定了多个输入路径('{first}' 与 '{second}')").into(),
|
||||
Cli::SubcommandNeedsPath { subcommand } => format!("'{subcommand}' 需要输入路径").into(),
|
||||
Cli::InspectNoDryRun => "'inspect' 不写出任何内容;请移除 --dry-run".into(),
|
||||
Cli::InspectNoOut => "'inspect' 不写出任何内容;不允许使用 --out".into(),
|
||||
Cli::DryRunNoOut => "--dry-run 不写出输出;不允许使用 --out".into(),
|
||||
Cli::InspectNoDryRun => "'inspect' 不保存输出文件;无需指定 --dry-run".into(),
|
||||
Cli::InspectNoOut => "'inspect' 不保存输出文件;不能与 --out 同时使用".into(),
|
||||
Cli::DryRunNoOut => "--dry-run 不保存输出文件;不能与 --out 同时使用".into(),
|
||||
Cli::ColorRequiresMode => "--color 需要 auto、always 或 never".into(),
|
||||
Cli::ThreadsRequiresInteger => "--threads 需要正整数参数".into(),
|
||||
Cli::LimitRequiresInteger { flag } => format!("{flag} 需要无符号整数参数").into(),
|
||||
@@ -204,20 +204,18 @@ pub(crate) fn cli(cli: &Cli) -> Cow<'static, str> {
|
||||
\x20 文件夹。省略子命令时等同于 'unpack'。"
|
||||
.into(),
|
||||
Cli::HelpInspect => " inspect PATH\n\
|
||||
\x20 执行实际的静态恢复以供研究,并报告观察到的全部内容:\n\
|
||||
\x20 识别依据、尝试过的每条路线及其被拒绝的原因、最终选用的\n\
|
||||
\x20 路线、静态检查的结论,以及各引擎自身的结构化依据(保护\n\
|
||||
\x20 头部字段、种子、模块记录、恢复映像信息)。不保留任何\n\
|
||||
\x20 内容:不写输出文件、不写日志、不留临时目录,且绝不执行\n\
|
||||
\x20 输入项。"
|
||||
\x20 执行完整的静态恢复并输出详细分析报告:识别依据、尝试过\n\
|
||||
\x20 的各恢复方案及排除原因、最终选用的方案、静态验证结论,\n\
|
||||
\x20 以及保护头部字段、种子、模块记录与恢复映像结构数据。\n\
|
||||
\x20 不保存恢复后的输出文件或日志,自动清理临时目录,且绝不\n\
|
||||
\x20 执行输入文件。"
|
||||
.into(),
|
||||
Cli::HelpUnpack => " unpack PATH 检测并恢复;写出输出(默认)。".into(),
|
||||
Cli::HelpJson => " --json 向标准输出写出单份带版本号的机器可读报告,不输出其他\n\
|
||||
\x20 内容。隐含静默模式与 --no-log。"
|
||||
.into(),
|
||||
Cli::HelpDryRun => " --dry-run 执行实际的恢复但不保留任何内容:不写输出目录,也不写\n\
|
||||
\x20 日志。Android 提取仍会使用其自身的临时工作区,随后即被\n\
|
||||
\x20 丢弃。"
|
||||
Cli::HelpDryRun => " --dry-run 执行完整的恢复流程,但不保存输出文件与日志。Android 提取\n\
|
||||
\x20 期间使用的临时工作区会在完成后自动清理。"
|
||||
.into(),
|
||||
Cli::HelpThreads => " --threads N 本次运行的工作线程数上限(正整数)。覆盖 SENBEI_THREADS;\n\
|
||||
\x20 设为 1 则使用顺序执行路径。环境变量保持不变。"
|
||||
@@ -264,14 +262,14 @@ pub(crate) fn cli(cli: &Cli) -> Cow<'static, str> {
|
||||
Cli::KindUnavailable => "种类不适用或不可用".into(),
|
||||
Cli::ProtectionRecognition { status } => format!("保护识别: {status}").into(),
|
||||
Cli::Evidence { evidence } => format!("依据: {evidence}").into(),
|
||||
Cli::Route { route, outcome } => format!("路线 {route}: {outcome}").into(),
|
||||
Cli::SelectedRoute { route } => format!("已选用路线: {route}").into(),
|
||||
Cli::Route { route, outcome } => format!("方案 {route}: {outcome}").into(),
|
||||
Cli::SelectedRoute { route } => format!("已选用方案: {route}").into(),
|
||||
Cli::StaticRecovery { status } => format!("静态恢复: {status}").into(),
|
||||
Cli::OutputValidation { status } => format!("输出静态验证: {status}").into(),
|
||||
Cli::Companion { state } => format!("伴生文件: {state}").into(),
|
||||
Cli::CompanionIdentity { size, sha256 } => format!("{size} 字节 · SHA-256 {sha256}").into(),
|
||||
Cli::InputView { view } => format!("分析输入视图: {view}").into(),
|
||||
Cli::InputViewSplicedNote => "低于 0x1000 的文件偏移针对存根寻址;自 0x1000 起的偏移针对伴生文件偏移(文件偏移 - 0x1000)寻址".into(),
|
||||
Cli::InputViewSplicedNote => "小于 0x1000 的文件偏移对应加载器存根;0x1000 及以上的偏移对应伴生文件中的 (文件偏移 - 0x1000)".into(),
|
||||
Cli::MetadataIdentity { version, layout } => format!("IL2CPP 元数据版本: {version} · 布局定义 {layout}").into(),
|
||||
Cli::SeededTokens { value } => format!("基于种子的方法令牌: {}", yes_no(*value)).into(),
|
||||
Cli::StructuralTokens { value } => format!("结构化方法令牌: {}", yes_no(*value)).into(),
|
||||
@@ -282,7 +280,7 @@ pub(crate) fn cli(cli: &Cli) -> Cow<'static, str> {
|
||||
Cli::Candidate { entry } => format!("候选: {entry}").into(),
|
||||
Cli::MetadataEvidence => "元数据变换依据".into(),
|
||||
Cli::Entry { name, status } => format!("条目 {name}: {status}").into(),
|
||||
Cli::EntryRoute { route } => format!("路线: {route}").into(),
|
||||
Cli::EntryRoute { route } => format!("方案: {route}").into(),
|
||||
Cli::EntryMetadataVersion { version } => format!("元数据版本: {version}").into(),
|
||||
Cli::EntryRemapped { remapped } => format!("已重映射方法字段: {remapped}").into(),
|
||||
Cli::ModuleContextSource { source } => format!("模块上下文来源: {source}").into(),
|
||||
|
||||
+23
-25
@@ -6,7 +6,7 @@ use crate::{Cli, Msg, Step, Term};
|
||||
|
||||
pub(crate) fn msg(msg: &Msg) -> Cow<'static, str> {
|
||||
match msg {
|
||||
Msg::CompanionMissing => "缺少伴生檔案?此載入器需要相符的 <input>._ 載荷。請將它放在輸入檔案旁並再試一次。".into(),
|
||||
Msg::CompanionMissing => "缺少伴生檔案:此載入器需要相符的 <input>._ 載荷。請將它放在輸入檔案所在的資料夾中,再試一次。瀏覽器版需同時加入這兩個檔案。".into(),
|
||||
Msg::CompanionMismatch => "伴生檔案不相符:所提供的 ._ 載荷過短,或其標頭與載入器不同。請使用來自同一組建的伴生檔案;兩個檔案其中之一可能已損毀。".into(),
|
||||
Msg::InputTooShort { actual, required } => format!("輸入過短(至少需要 {required} 位元組,實際為 {actual} 位元組)").into(),
|
||||
Msg::NotProtected => "不是受 CrackProof 保護的檔案".into(),
|
||||
@@ -71,7 +71,7 @@ pub(crate) fn step(step: &Step) -> Cow<'static, str> {
|
||||
match step {
|
||||
Step::DecryptHeader => "解密檔案標頭...".into(),
|
||||
Step::DecryptPayload => "解密載荷...".into(),
|
||||
Step::LocateConfig => "定位組態配置...".into(),
|
||||
Step::LocateConfig => "尋找設定結構...".into(),
|
||||
Step::DecryptStage2 => "解密 stage2...".into(),
|
||||
Step::DecryptStages3To5 => "解密階段 3-5...".into(),
|
||||
Step::DecryptSections => "解密節區資料...".into(),
|
||||
@@ -79,9 +79,9 @@ pub(crate) fn step(step: &Step) -> Cow<'static, str> {
|
||||
Step::LoadSections => "載入並解壓縮節區...".into(),
|
||||
Step::DecryptImports => "解密匯入字串...".into(),
|
||||
Step::RebuildHeaders => "重建 PE 標頭...".into(),
|
||||
Step::Pe32LocateConfig => "定位組態配置 (PE32)...".into(),
|
||||
Step::Pe32LocateConfig => "尋找設定結構 (PE32)...".into(),
|
||||
Step::Pe32Stages => "解密各階段 (PE32)...".into(),
|
||||
Step::Pe32EighthStage => "解密 eighthStage (PE32)...".into(),
|
||||
Step::Pe32EighthStage => "解密第八階段 (PE32)...".into(),
|
||||
Step::Pe32Load => "載入並解壓縮檔案資料 (PE32)...".into(),
|
||||
Step::Pe32Text { formula } => format!("解密 .text (PE32 dd8, formula={formula})...").into(),
|
||||
Step::Pe32TextSkip => "略過 .text dd8(已為明文)...".into(),
|
||||
@@ -97,7 +97,7 @@ pub(crate) fn step(step: &Step) -> Cow<'static, str> {
|
||||
Step::DllSections => "解密並解壓縮節區...".into(),
|
||||
Step::FixHeaders => "修補 PE 標頭與節區表...".into(),
|
||||
Step::AndroidPrimary => "解碼主要 0x9D 目標映像容器...".into(),
|
||||
Step::AndroidAuxiliary => "解碼輔助 0x9D ELF 實體化容器...".into(),
|
||||
Step::AndroidAuxiliary => "解碼輔助 0x9D ELF 容器...".into(),
|
||||
Step::AndroidTables => "重建靜態 ELF 動態連結器表...".into(),
|
||||
Step::WriteTo { dest } => format!("寫入至 {dest}").into(),
|
||||
}
|
||||
@@ -121,7 +121,7 @@ pub(crate) fn term(term: &Term) -> Cow<'static, str> {
|
||||
Term::NotAttempted => "未嘗試",
|
||||
Term::Succeeded => "成功",
|
||||
Term::Rejected => "已拒絕",
|
||||
Term::Clean => "乾淨",
|
||||
Term::Clean => "通過",
|
||||
Term::Warnings => "警告",
|
||||
Term::NotRun => "未執行",
|
||||
Term::Absent => "無",
|
||||
@@ -136,9 +136,9 @@ pub(crate) fn term(term: &Term) -> Cow<'static, str> {
|
||||
Term::OutputWrite => "輸出寫入",
|
||||
Term::SharedLibrary => "共用程式庫",
|
||||
Term::Metadata => "中繼資料",
|
||||
Term::ExeStyle => "EXE 風格",
|
||||
Term::Dll => "DLL",
|
||||
Term::AndroidStaged => "Android 分階段",
|
||||
Term::ExeStyle => "EXE 風格載入器",
|
||||
Term::Dll => "DLL 載入器",
|
||||
Term::AndroidStaged => "Android 分階段載入器",
|
||||
Term::MetadataSeeded => "基於種子的中繼資料",
|
||||
Term::MetadataStructural => "結構化中繼資料",
|
||||
Term::MetadataMethodIndices => "中繼資料方法索引",
|
||||
@@ -186,9 +186,9 @@ pub(crate) fn cli(cli: &Cli) -> Cow<'static, str> {
|
||||
Cli::UnknownOption { option } => format!("未知的選項 '{option}'").into(),
|
||||
Cli::MultipleInputs { first, second } => format!("指定了多個輸入路徑('{first}' 與 '{second}')").into(),
|
||||
Cli::SubcommandNeedsPath { subcommand } => format!("'{subcommand}' 需要指定輸入路徑").into(),
|
||||
Cli::InspectNoDryRun => "'inspect' 不會寫入任何內容;請移除 --dry-run".into(),
|
||||
Cli::InspectNoOut => "'inspect' 不會寫入任何內容;不允許使用 --out".into(),
|
||||
Cli::DryRunNoOut => "--dry-run 不會寫入任何輸出;不允許使用 --out".into(),
|
||||
Cli::InspectNoDryRun => "'inspect' 不儲存輸出檔案;無須指定 --dry-run".into(),
|
||||
Cli::InspectNoOut => "'inspect' 不儲存輸出檔案;不可與 --out 同時使用".into(),
|
||||
Cli::DryRunNoOut => "--dry-run 不儲存輸出檔案;不可與 --out 同時使用".into(),
|
||||
Cli::ColorRequiresMode => "--color 需要指定 auto、always 或 never".into(),
|
||||
Cli::ThreadsRequiresInteger => "--threads 需要指定正整數引數".into(),
|
||||
Cli::LimitRequiresInteger { flag } => format!("{flag} 需要指定無號整數引數").into(),
|
||||
@@ -202,20 +202,18 @@ pub(crate) fn cli(cli: &Cli) -> Cow<'static, str> {
|
||||
\x20 上述項目的資料夾。省略子命令時等同於 'unpack'。"
|
||||
.into(),
|
||||
Cli::HelpInspect => " inspect PATH\n\
|
||||
\x20 執行研究用的真實靜態恢復流程,並回報觀測到的一切:\n\
|
||||
\x20 識別依據、嘗試過的各條路線及其遭拒原因、選用的路線、\n\
|
||||
\x20 靜態檢查的判定結果,以及引擎本身的結構依據(保護標頭\n\
|
||||
\x20 欄位、種子、模組記錄、恢復映像資訊)。不會保留任何\n\
|
||||
\x20 內容:無輸出檔案、無記錄檔、無暫存目錄,且絕不執行\n\
|
||||
\x20 輸入項。"
|
||||
\x20 執行完整的靜態復原並輸出詳細分析報告:識別依據、嘗試過\n\
|
||||
\x20 的各復原方案及排除原因、最終選用的方案、靜態驗證結果,\n\
|
||||
\x20 以及保護標頭欄位、種子、模組記錄與復原映像結構資料。\n\
|
||||
\x20 不儲存復原後的輸出檔案或記錄檔,自動清理暫存目錄,且絕\n\
|
||||
\x20 不執行輸入檔案。"
|
||||
.into(),
|
||||
Cli::HelpUnpack => " unpack PATH 偵測並恢復;將結果寫入輸出(預設動作)。".into(),
|
||||
Cli::HelpJson => " --json 將單一含版本資訊的機器可讀報告寫入 stdout,不輸出其他\n\
|
||||
\x20 內容。隱含安靜模式與 --no-log。"
|
||||
.into(),
|
||||
Cli::HelpDryRun => " --dry-run 執行真實恢復流程但不保留任何內容:無輸出目錄,亦無\n\
|
||||
\x20 記錄檔。Android 提取仍會使用其專屬的暫存工作區,完成後\n\
|
||||
\x20 即會捨棄。"
|
||||
Cli::HelpDryRun => " --dry-run 執行完整的復原流程,但不儲存輸出檔案與記錄檔。Android\n\
|
||||
\x20 提取期間使用的暫存工作區會在完成後自動清理。"
|
||||
.into(),
|
||||
Cli::HelpThreads => " --threads N 此次執行的工作執行緒正整數上限。會覆寫 SENBEI_THREADS;\n\
|
||||
\x20 設為 1 會使用循序執行路徑。環境變數本身不會變更。"
|
||||
@@ -262,14 +260,14 @@ pub(crate) fn cli(cli: &Cli) -> Cow<'static, str> {
|
||||
Cli::KindUnavailable => "種類不適用或無法使用".into(),
|
||||
Cli::ProtectionRecognition { status } => format!("保護識別: {status}").into(),
|
||||
Cli::Evidence { evidence } => format!("依據: {evidence}").into(),
|
||||
Cli::Route { route, outcome } => format!("路線 {route}: {outcome}").into(),
|
||||
Cli::SelectedRoute { route } => format!("已選用路線: {route}").into(),
|
||||
Cli::Route { route, outcome } => format!("方案 {route}: {outcome}").into(),
|
||||
Cli::SelectedRoute { route } => format!("已選用方案: {route}").into(),
|
||||
Cli::StaticRecovery { status } => format!("靜態恢復: {status}").into(),
|
||||
Cli::OutputValidation { status } => format!("輸出靜態驗證: {status}").into(),
|
||||
Cli::Companion { state } => format!("伴生檔案: {state}").into(),
|
||||
Cli::CompanionIdentity { size, sha256 } => format!("{size} 位元組 · SHA-256 {sha256}").into(),
|
||||
Cli::InputView { view } => format!("分析輸入檢視: {view}").into(),
|
||||
Cli::InputViewSplicedNote => "低於 0x1000 的檔案偏移定址載入器存根;自 0x1000 起的偏移定址伴生檔案偏移(檔案偏移 - 0x1000)".into(),
|
||||
Cli::InputViewSplicedNote => "小於 0x1000 的檔案偏移對應載入器存根;從 0x1000 起的偏移對應伴生檔案中的 (檔案偏移 - 0x1000)".into(),
|
||||
Cli::MetadataIdentity { version, layout } => format!("IL2CPP 中繼資料版本: {version} · 結構配置定義 {layout}").into(),
|
||||
Cli::SeededTokens { value } => format!("基於種子的方法權杖: {}", yes_no(*value)).into(),
|
||||
Cli::StructuralTokens { value } => format!("結構化方法權杖: {}", yes_no(*value)).into(),
|
||||
@@ -280,7 +278,7 @@ pub(crate) fn cli(cli: &Cli) -> Cow<'static, str> {
|
||||
Cli::Candidate { entry } => format!("候選: {entry}").into(),
|
||||
Cli::MetadataEvidence => "中繼資料轉換依據".into(),
|
||||
Cli::Entry { name, status } => format!("條目 {name}: {status}").into(),
|
||||
Cli::EntryRoute { route } => format!("路線: {route}").into(),
|
||||
Cli::EntryRoute { route } => format!("方案: {route}").into(),
|
||||
Cli::EntryMetadataVersion { version } => format!("中繼資料版本: {version}").into(),
|
||||
Cli::EntryRemapped { remapped } => format!("已重新映射的方法欄位: {remapped}").into(),
|
||||
Cli::ModuleContextSource { source } => format!("模組上下文來源: {source}").into(),
|
||||
|
||||
Reference in new issue
Block a user