From 3dba76910c86ecb308f9364a2b60ca773817854c Mon Sep 17 00:00:00 2001 From: Jacob Pimental Date: Thu, 6 Apr 2023 15:49:59 -0400 Subject: [PATCH] Fix --download flag not working --- lib.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib.js b/lib.js index 1238b4a..e6e1211 100644 --- a/lib.js +++ b/lib.js @@ -206,7 +206,7 @@ module.exports = { process.env.NODE_TLS_REJECT_UNAUTHORIZED = "0"; logUrl(method, url); logIOC("UrlFetch", {method, url, headers, body}, "The script fetched an URL."); - if (!doDownload) { + if (!argv.download) { lib.info("Returning HTTP 404 (Not found); use --download to try to download the payload"); return { body: new Buffer(""),