From 1e45ce428c7d350f1f4900ab03360174d9976428 Mon Sep 17 00:00:00 2001 From: "Namhyeon, Go" Date: Mon, 30 May 2022 19:30:15 +0900 Subject: [PATCH 1/4] Update http.js --- lib/http.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/lib/http.js b/lib/http.js index 12ca315..283d0fc 100644 --- a/lib/http.js +++ b/lib/http.js @@ -745,6 +745,16 @@ var HTTPObject = function(engine) { switch(_debugger) { case "FIDDLER": + this.proxy = { + "enabled": true, + "protocol": "http", + "host": "127.0.0.1", + "port": 8888, + "credential": null + }; + break; + + case "FIDDLER2": this.proxy = { "enabled": true, "protocol": "http", @@ -753,7 +763,7 @@ var HTTPObject = function(engine) { "credential": null }; break; - + case "MITMPROXY": this.proxy = { "enabled": true, From feebc38410662ebfe117fef1c4df78297ad45e38 Mon Sep 17 00:00:00 2001 From: "Namhyeon, Go" Date: Mon, 30 May 2022 19:38:37 +0900 Subject: [PATCH 2/4] Update http.js --- lib/http.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/http.js b/lib/http.js index 283d0fc..5f479cc 100644 --- a/lib/http.js +++ b/lib/http.js @@ -773,6 +773,16 @@ var HTTPObject = function(engine) { "credential": null }; break; + + case "BURPSUITE": + this.proxy = { + "enabled": true, + "protocol": "http", + "host": "127.0.0.1", + "port": 8080, + "credential": null + }; + break; default: this.proxy = { From 27c3c6fad9e8f0f23456902da86bd3ecccae3b99 Mon Sep 17 00:00:00 2001 From: "Namhyeon, Go" Date: Mon, 30 May 2022 19:42:12 +0900 Subject: [PATCH 3/4] Update http.js --- lib/http.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/http.js b/lib/http.js index 5f479cc..bed8fee 100644 --- a/lib/http.js +++ b/lib/http.js @@ -1,7 +1,7 @@ //////////////////////////////////////////////////////////////////////// // HTTP API //////////////////////////////////////////////////////////////////////// -var SYS = require("lib/sys"); +var SYS = require("lib/system"); var FILE = require("lib/file"); var SHELL = require("lib/shell"); var RAND = require("lib/rand"); From 9ad7d904e5e6d0ab67523949e5e0d303c490aa21 Mon Sep 17 00:00:00 2001 From: "Namhyeon, Go" Date: Mon, 30 May 2022 19:50:07 +0900 Subject: [PATCH 4/4] Update system.js --- lib/system.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/system.js b/lib/system.js index 6b41c33..2e3453f 100644 --- a/lib/system.js +++ b/lib/system.js @@ -50,7 +50,7 @@ exports.isElevated = function() { }; exports.getOS = function() { - return WMI.execQuery("SELECT * FROM Win32_OperatingSystem").fetch().get("Caption").rtrim(); + return WMI.execQuery("SELECT * FROM Win32_OperatingSystem").fetch().get("Caption").trim(); }; exports.getDCName = function() { @@ -71,7 +71,7 @@ exports.getUUID = function() { exports.getCurrentWorkingDirectory = function() { try { - cwd = SHELL.exec("cd", "cwd.txt").rtrim(); + cwd = SHELL.exec("cd", "cwd.txt").trim(); return cwd; } catch (e) {} };