@paa1997/metho 1.0.3 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/scripts/findsomething_secrets.py +4 -4
- package/scripts/html_secret_gen.py +711 -0
- package/src/cli.js +27 -2
- package/src/engine.js +165 -11
- package/src/gui.html +240 -42
- package/src/server.js +35 -13
- package/src/steps/findsomething.js +1 -1
package/package.json
CHANGED
|
@@ -859,7 +859,7 @@ def main():
|
|
|
859
859
|
help="Output file path. Default: <list_file>_secrets.txt when --list is used.",
|
|
860
860
|
)
|
|
861
861
|
parser.add_argument(
|
|
862
|
-
"--html
|
|
862
|
+
"--html",
|
|
863
863
|
nargs="?",
|
|
864
864
|
const="",
|
|
865
865
|
help="Generate HTML report. Optional path (defaults to <output>.html).",
|
|
@@ -893,13 +893,13 @@ def main():
|
|
|
893
893
|
list_stem = os.path.splitext(os.path.basename(args.list.rstrip(os.sep)))[0] or "scan"
|
|
894
894
|
args.output = f"{list_stem}_secrets.txt"
|
|
895
895
|
|
|
896
|
-
html_requested = args.
|
|
896
|
+
html_requested = args.html is not None
|
|
897
897
|
html_output_path: Optional[str] = None
|
|
898
898
|
if html_requested:
|
|
899
899
|
if not args.output:
|
|
900
|
-
parser.error("--html
|
|
900
|
+
parser.error("--html requires --output to be set.")
|
|
901
901
|
base, _ = os.path.splitext(args.output)
|
|
902
|
-
html_output_path = args.
|
|
902
|
+
html_output_path = args.html if args.html else (base or args.output) + ".html"
|
|
903
903
|
|
|
904
904
|
# Reset globals per run
|
|
905
905
|
STOP_EVENT.clear()
|