Add 0.8 normal hardening transforms

This commit is contained in:
ashton
2026-06-17 20:45:45 -05:00
parent 56c466aa08
commit 76ba5def91
12 changed files with 395 additions and 10 deletions
+6
View File
@@ -35,6 +35,8 @@ def _parser() -> argparse.ArgumentParser:
p.add_argument("--no-anti-debug", action="store_false", dest="anti_debug", default=None)
p.add_argument("--abyss", action="store_true", default=None, help="virtualize eligible functions into encrypted Abyss VM assets")
p.add_argument("--abyss-functions", action="append", default=None, metavar="NAME[,NAME]", help="only virtualize the named function(s); repeatable or comma-separated")
p.add_argument("--no-lower-fstrings", action="store_false", dest="lower_fstrings", default=None)
p.add_argument("--no-lower-match", action="store_false", dest="lower_match", default=None)
p.add_argument("--audit-only", action="store_true", help="analyze the input and exit without writing obfuscated output")
p.add_argument("--audit-json", metavar="PATH", help="write static audit metadata as JSON")
p.add_argument("--manifest", metavar="PATH", help="write build manifest with hashes, options, and audit metadata")
@@ -73,6 +75,8 @@ def _effective_config(args: argparse.Namespace) -> dict[str, object]:
"lazy_funcs",
"anti_debug",
"abyss",
"lower_fstrings",
"lower_match",
"max_output_bytes",
"max_ratio",
"max_review_indicators",
@@ -103,6 +107,8 @@ def _obfuscator_options(config: dict[str, object]) -> dict[str, object]:
"anti_debug": config["anti_debug"],
"abyss": config["abyss"],
"abyss_functions": config["abyss_functions"],
"lower_fstrings": config["lower_fstrings"],
"lower_match": config["lower_match"],
"layers": config["layers"],
"stage2_layers": config["stage2_layers"],
"keep": sorted(config["keep"]),