From b7c09aabb447897e00ac28bf52126580ac37b0d8 Mon Sep 17 00:00:00 2001 From: Aleff Date: Thu, 7 Nov 2024 15:50:21 +0100 Subject: [PATCH] cleaning --- out/cpanel/code_panel_view_provider.js | 265 --------------------- out/cpanel/code_panel_view_provider.js.map | 1 - out/cpanel/run.js | 18 -- out/cpanel/run.js.map | 1 - out/extension.js | 20 -- out/extension.js.map | 1 - out/utils/consts.js | 26 -- out/utils/consts.js.map | 1 - 8 files changed, 333 deletions(-) delete mode 100644 out/cpanel/code_panel_view_provider.js delete mode 100644 out/cpanel/code_panel_view_provider.js.map delete mode 100644 out/cpanel/run.js delete mode 100644 out/cpanel/run.js.map delete mode 100644 out/extension.js delete mode 100644 out/extension.js.map delete mode 100644 out/utils/consts.js delete mode 100644 out/utils/consts.js.map diff --git a/out/cpanel/code_panel_view_provider.js b/out/cpanel/code_panel_view_provider.js deleted file mode 100644 index 8f13aba..0000000 --- a/out/cpanel/code_panel_view_provider.js +++ /dev/null @@ -1,265 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.CodePanelViewProvider = void 0; -const vscode = require("vscode"); -const consts_1 = require("../utils/consts"); -const cpanel = require("./run"); -class CodePanelViewProvider { - constructor(_extension) { - this._extension = _extension; - } - resolveWebviewView(webviewView, context, _token) { - webviewView.webview.options = { - // Allow scripts in the webview - enableScripts: true, - enableForms: true, - enableCommandUris: true, - localResourceRoots: [ - this._extension.extensionUri - ] - }; - webviewView.webview.html = this._getHtmlForWebview(webviewView.webview); - webviewView.webview.onDidReceiveMessage(data => { - // select text - const active = vscode.window.activeTextEditor; - if (!active) { - return; - } // null check - const selection = active.selection; - if (!selection) { - return; - } // null check - switch (data.type) { - // DuckyScript 3.0 Payloads - case 'PAYLOAD_INTRO_3_0': - active.edit(editBuilder => { - const code = new cpanel.Code(this._extension.extensionUri); - editBuilder.replace(selection, code.duckyscript(this._extension.asAbsolutePath(consts_1.PATH_TO_COOKBOOK.PAYLOAD_INTRO_3_0))); - }); - break; - case 'DETECT_READY_3_0': - active.edit(editBuilder => { - const code = new cpanel.Code(this._extension.extensionUri); - editBuilder.replace(selection, code.duckyscript(this._extension.asAbsolutePath(consts_1.PATH_TO_COOKBOOK.DETECT_READY_3_0))); - }); - break; - case 'PASSIVE_WINDOWS_DETECT_3_0': - active.edit(editBuilder => { - const code = new cpanel.Code(this._extension.extensionUri); - editBuilder.replace(selection, code.duckyscript(this._extension.asAbsolutePath(consts_1.PATH_TO_COOKBOOK.PASSIVE_WINDOWS_DETECT_3_0))); - }); - break; - case 'ERASE_TRACES_SHELL_3_0': - active.edit(editBuilder => { - const code = new cpanel.Code(this._extension.extensionUri); - editBuilder.replace(selection, code.duckyscript(this._extension.asAbsolutePath(consts_1.PATH_TO_COOKBOOK.ERASE_TRACES_SHELL_3_0))); - }); - break; - case 'ERASE_TRACES_POWERSHELL_3_0': - active.edit(editBuilder => { - const code = new cpanel.Code(this._extension.extensionUri); - editBuilder.replace(selection, code.duckyscript(this._extension.asAbsolutePath(consts_1.PATH_TO_COOKBOOK.ERASE_TRACES_POWERSHELL_3_0))); - }); - break; - case 'EXFILTRATE_FILES_USING_DROPBOX_WINDOWS_3_0': - active.edit(editBuilder => { - const code = new cpanel.Code(this._extension.extensionUri); - editBuilder.replace(selection, code.duckyscript(this._extension.asAbsolutePath(consts_1.PATH_TO_COOKBOOK.EXFILTRATE_FILES_USING_DROPBOX_WINDOWS_3_0))); - }); - break; - case 'OPEN_POWERSHELL_3_0': - active.edit(editBuilder => { - const code = new cpanel.Code(this._extension.extensionUri); - editBuilder.replace(selection, code.duckyscript(this._extension.asAbsolutePath(consts_1.PATH_TO_COOKBOOK.OPEN_POWERSHELL_3_0))); - }); - break; - case 'SAVE_FILES_IN_RUBBER_DUCKY_STORAGE_WINDOWS_3_0': - active.edit(editBuilder => { - const code = new cpanel.Code(this._extension.extensionUri); - editBuilder.replace(selection, code.duckyscript(this._extension.asAbsolutePath(consts_1.PATH_TO_COOKBOOK.SAVE_FILES_IN_RUBBER_DUCKY_STORAGE_WINDOWS_3_0))); - }); - break; - case 'GENERALIZED_WINDOWS_USER_PATH_3_0': - active.edit(editBuilder => { - const code = new cpanel.Code(this._extension.extensionUri); - editBuilder.replace(selection, code.duckyscript(this._extension.asAbsolutePath(consts_1.PATH_TO_COOKBOOK.GENERALIZED_WINDOWS_USER_PATH_3_0))); - }); - break; - // DuckyScript 1.0 Payloads - case 'PAYLOAD_INTRO_1_0': - active.edit(editBuilder => { - const code = new cpanel.Code(this._extension.extensionUri); - editBuilder.replace(selection, code.duckyscript(this._extension.asAbsolutePath(consts_1.PATH_TO_COOKBOOK.PAYLOAD_INTRO_1_0))); - }); - break; - case 'ERASE_TRACES_POWERSHELL_1_0': - active.edit(editBuilder => { - const code = new cpanel.Code(this._extension.extensionUri); - editBuilder.replace(selection, code.duckyscript(this._extension.asAbsolutePath(consts_1.PATH_TO_COOKBOOK.ERASE_TRACES_POWERSHELL_1_0))); - }); - break; - case 'ERASE_TRACES_SHELL_1_0': - active.edit(editBuilder => { - const code = new cpanel.Code(this._extension.extensionUri); - editBuilder.replace(selection, code.duckyscript(this._extension.asAbsolutePath(consts_1.PATH_TO_COOKBOOK.ERASE_TRACES_SHELL_1_0))); - }); - break; - case 'EXFILTRATE_FILES_USING_DROPBOX_WINDOWS_1_0': - active.edit(editBuilder => { - const code = new cpanel.Code(this._extension.extensionUri); - editBuilder.replace(selection, code.duckyscript(this._extension.asAbsolutePath(consts_1.PATH_TO_COOKBOOK.EXFILTRATE_FILES_USING_DROPBOX_WINDOWS_1_0))); - }); - break; - case 'OPEN_POWERSHELL_1_0': - active.edit(editBuilder => { - const code = new cpanel.Code(this._extension.extensionUri); - editBuilder.replace(selection, code.duckyscript(this._extension.asAbsolutePath(consts_1.PATH_TO_COOKBOOK.OPEN_POWERSHELL_1_0))); - }); - break; - case 'GENERALIZED_WINDOWS_USER_PATH_1_0': - active.edit(editBuilder => { - const code = new cpanel.Code(this._extension.extensionUri); - editBuilder.replace(selection, code.duckyscript(this._extension.asAbsolutePath(consts_1.PATH_TO_COOKBOOK.GENERALIZED_WINDOWS_USER_PATH_1_0))); - }); - break; - // Both - case 'OPEN_SHELL': - active.edit(editBuilder => { - const code = new cpanel.Code(this._extension.extensionUri); - editBuilder.replace(selection, code.duckyscript(this._extension.asAbsolutePath(consts_1.PATH_TO_COOKBOOK.OPEN_SHELL))); - }); - break; - // showPanel - case 'showPanel': - this.showPanel(webviewView.webview); - break; - } - }); - vscode.window.onDidChangeActiveTextEditor((editor) => { - this.showPanel(webviewView.webview); - }); - } - _getHtmlForWebview(webview) { - // Do the same for the stylesheet. - const styleMainUri = webview.asWebviewUri(vscode.Uri.joinPath(this._extension.extensionUri, 'media', 'css', 'main.css')); - // Get the local path to main script run in the webview, then convert it to a uri we can use in the webview. - const scriptMainUri = webview.asWebviewUri(vscode.Uri.joinPath(this._extension.extensionUri, 'media', 'js', 'main.js')); - // Use a nonce to only allow a specific script to be run. - const nonce = getNonce(); - const cpBody = getCodePanelBody(); - return ` - - - - - - - - DuckyScript Cookbook - - - ${cpBody} - - - `; - } - showPanel(webview) { - const active = vscode.window.activeTextEditor; - if (!active) - return; - const type = active.document.fileName.split('.').pop(); - webview.postMessage({ command: type }); - } -} -exports.CodePanelViewProvider = CodePanelViewProvider; -CodePanelViewProvider.viewType = 'duckyscript.Cookbook'; -function getNonce() { - let text = ''; - const possible = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789'; - for (let i = 0; i < 32; i++) { - text += possible.charAt(Math.floor(Math.random() * possible.length)); - } - return text; -} -function getCodePanelBody() { - const htmlBody = ` -
-

Cookbook

-
-
-

DuckyScript 3.0

-
-
- `; - return htmlBody; -} -//# sourceMappingURL=code_panel_view_provider.js.map \ No newline at end of file diff --git a/out/cpanel/code_panel_view_provider.js.map b/out/cpanel/code_panel_view_provider.js.map deleted file mode 100644 index 1ac6829..0000000 --- a/out/cpanel/code_panel_view_provider.js.map +++ /dev/null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F,OAAO,QAAQ,CAAC;AACjB,CAAC"} \ No newline at end of file diff --git a/out/cpanel/run.js b/out/cpanel/run.js deleted file mode 100644 index 50df892..0000000 --- a/out/cpanel/run.js +++ /dev/null @@ -1,18 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Code = void 0; -const fs = require("fs"); -class Code { - constructor(_extensionUri) { - this._extensionUri = _extensionUri; - } - duckyscript(code_type) { - let code = ''; - if (fs.existsSync(code_type)) { - code = fs.readFileSync(code_type, 'utf-8'); - } - return code; - } -} -exports.Code = Code; -//# sourceMappingURL=run.js.map \ No newline at end of file diff --git a/out/cpanel/run.js.map b/out/cpanel/run.js.map deleted file mode 100644 index 788d91c..0000000 --- a/out/cpanel/run.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"run.js","sourceRoot":"","sources":["../../src/cpanel/run.ts"],"names":[],"mappings":";;;AAAA,yBAAyB;AAQzB,MAAa,IAAI;IACb,YAAqB,aAAyB;QAAzB,kBAAa,GAAb,aAAa,CAAY;IAAI,CAAC;IAEnD,WAAW,CAAC,SAAiB;QACzB,IAAI,IAAI,GAAG,EAAE,CAAC;QACd,IAAI,EAAE,CAAC,UAAU,CAAC,SAAS,CAAC,EAAE,CAAC;YAC3B,IAAI,GAAG,EAAE,CAAC,YAAY,CAAC,SAAS,EAAC,OAAO,CAAC,CAAC;QAC9C,CAAC;QACD,OAAO,IAAI,CAAC;IAChB,CAAC;CACJ;AAVD,oBAUC"} \ No newline at end of file diff --git a/out/extension.js b/out/extension.js deleted file mode 100644 index ad165b5..0000000 --- a/out/extension.js +++ /dev/null @@ -1,20 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.activate = activate; -const vscode = require("vscode"); -const code_panel_view_provider_1 = require("./cpanel/code_panel_view_provider"); -function activate(context) { - //Cookbook - const provider = new code_panel_view_provider_1.CodePanelViewProvider(context); - context.subscriptions.push(vscode.window.registerWebviewViewProvider(code_panel_view_provider_1.CodePanelViewProvider.viewType, provider)); - vscode.commands.registerCommand('duckyscript.Cookbook', () => { - context.subscriptions.push(vscode.window.registerWebviewViewProvider(code_panel_view_provider_1.CodePanelViewProvider.viewType, provider)); - }); -} -// eslint-disable-next-line @typescript-eslint/no-empty-function -function deactivate() { } -module.exports = { - activate, - deactivate -}; -//# sourceMappingURL=extension.js.map \ No newline at end of file diff --git a/out/extension.js.map b/out/extension.js.map deleted file mode 100644 index cbcc898..0000000 --- a/out/extension.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"extension.js","sourceRoot":"","sources":["../src/extension.ts"],"names":[],"mappings":";;AAGA,4BAUC;AAbD,iCAAiC;AACjC,gFAA0E;AAE1E,SAAgB,QAAQ,CAAC,OAAgC;IACxD,UAAU;IACV,MAAM,QAAQ,GAAG,IAAI,gDAAqB,CAAC,OAAO,CAAC,CAAC;IACpD,OAAO,CAAC,aAAa,CAAC,IAAI,CACzB,MAAM,CAAC,MAAM,CAAC,2BAA2B,CAAC,gDAAqB,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAC;IACtF,MAAM,CAAC,QAAQ,CAAC,eAAe,CAAC,sBAAsB,EAAE,GAAG,EAAE;QAC5D,OAAO,CAAC,aAAa,CAAC,IAAI,CACzB,MAAM,CAAC,MAAM,CAAC,2BAA2B,CAAC,gDAAqB,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAC;IACvF,CAAC,CAAC,CAAC;AAEJ,CAAC;AAED,gEAAgE;AAChE,SAAS,UAAU,KAAK,CAAC;AAEzB,MAAM,CAAC,OAAO,GAAG;IAChB,QAAQ;IACR,UAAU;CACV,CAAC"} \ No newline at end of file diff --git a/out/utils/consts.js b/out/utils/consts.js deleted file mode 100644 index 36c3e7f..0000000 --- a/out/utils/consts.js +++ /dev/null @@ -1,26 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.PATH_TO_COOKBOOK = void 0; -const ROOT_DIR = "assets/"; -const DUCKYSCRIPT_CODE_DIR = "code/"; -const FULL_PATH = ROOT_DIR + DUCKYSCRIPT_CODE_DIR; -const COOKBOOK_EXTENSION_FILE = ".txt"; -exports.PATH_TO_COOKBOOK = { - PAYLOAD_INTRO_3_0: FULL_PATH + "3_0_PAYLOAD_INTRO" + COOKBOOK_EXTENSION_FILE, - DETECT_READY_3_0: FULL_PATH + "3_0_DETECT_READY" + COOKBOOK_EXTENSION_FILE, - PASSIVE_WINDOWS_DETECT_3_0: FULL_PATH + "3_0_PASSIVE_WINDOWS_DETECT" + COOKBOOK_EXTENSION_FILE, - ERASE_TRACES_POWERSHELL_3_0: FULL_PATH + "3_0_ERASE_TRACES_POWERSHELL" + COOKBOOK_EXTENSION_FILE, - ERASE_TRACES_SHELL_3_0: FULL_PATH + "3_0_ERASE_TRACES_SHELL" + COOKBOOK_EXTENSION_FILE, - EXFILTRATE_FILES_USING_DROPBOX_WINDOWS_3_0: FULL_PATH + "3_0_EXFILTRATE_FILES_USING_DROPBOX_WINDOWS" + COOKBOOK_EXTENSION_FILE, - OPEN_POWERSHELL_3_0: FULL_PATH + "3_0_OPEN_POWERSHELL" + COOKBOOK_EXTENSION_FILE, - SAVE_FILES_IN_RUBBER_DUCKY_STORAGE_WINDOWS_3_0: FULL_PATH + "3_0_SAVE_FILES_IN_RUBBER_DUCKY_STORAGE_WINDOWS" + COOKBOOK_EXTENSION_FILE, - GENERALIZED_WINDOWS_USER_PATH_3_0: FULL_PATH + "3_0_GENERALIZED_WINDOWS_USER_PATH" + COOKBOOK_EXTENSION_FILE, - PAYLOAD_INTRO_1_0: FULL_PATH + "1_0_PAYLOAD_INTRO" + COOKBOOK_EXTENSION_FILE, - ERASE_TRACES_POWERSHELL_1_0: FULL_PATH + "1_0_ERASE_TRACES_POWERSHELL" + COOKBOOK_EXTENSION_FILE, - ERASE_TRACES_SHELL_1_0: FULL_PATH + "1_0_ERASE_TRACES_SHELL" + COOKBOOK_EXTENSION_FILE, - EXFILTRATE_FILES_USING_DROPBOX_WINDOWS_1_0: FULL_PATH + "1_0_EXFILTRATE_FILES_USING_DROPBOX_WINDOWS" + COOKBOOK_EXTENSION_FILE, - OPEN_POWERSHELL_1_0: FULL_PATH + "1_0_OPEN_POWERSHELL" + COOKBOOK_EXTENSION_FILE, - GENERALIZED_WINDOWS_USER_PATH_1_0: FULL_PATH + "1_0_GENERALIZED_WINDOWS_USER_PATH" + COOKBOOK_EXTENSION_FILE, - OPEN_SHELL: FULL_PATH + "OPEN_SHELL" + COOKBOOK_EXTENSION_FILE -}; -//# sourceMappingURL=consts.js.map \ No newline at end of file diff --git a/out/utils/consts.js.map b/out/utils/consts.js.map deleted file mode 100644 index 75b6582..0000000 --- a/out/utils/consts.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"consts.js","sourceRoot":"","sources":["../../src/utils/consts.ts"],"names":[],"mappings":";;;AAAA,MAAM,QAAQ,GAAG,SAAS,CAAC;AAC3B,MAAM,oBAAoB,GAAG,OAAO,CAAC;AACrC,MAAM,SAAS,GAAG,QAAQ,GAAC,oBAAoB,CAAC;AAChD,MAAM,uBAAuB,GAAG,MAAM,CAAC;AAG1B,QAAA,gBAAgB,GAAG;IAC/B,iBAAiB,EAAG,SAAS,GAAG,mBAAmB,GAAG,uBAAuB;IAC7E,gBAAgB,EAAG,SAAS,GAAG,kBAAkB,GAAG,uBAAuB;IAC3E,0BAA0B,EAAG,SAAS,GAAG,4BAA4B,GAAG,uBAAuB;IAC/F,2BAA2B,EAAG,SAAS,GAAG,6BAA6B,GAAG,uBAAuB;IACjG,sBAAsB,EAAG,SAAS,GAAG,wBAAwB,GAAG,uBAAuB;IACvF,0CAA0C,EAAG,SAAS,GAAG,4CAA4C,GAAG,uBAAuB;IAC/H,mBAAmB,EAAG,SAAS,GAAG,qBAAqB,GAAG,uBAAuB;IACjF,8CAA8C,EAAG,SAAS,GAAG,gDAAgD,GAAG,uBAAuB;IACvI,iCAAiC,EAAG,SAAS,GAAG,mCAAmC,GAAG,uBAAuB;IAC7G,iBAAiB,EAAG,SAAS,GAAG,mBAAmB,GAAG,uBAAuB;IAC7E,2BAA2B,EAAG,SAAS,GAAG,6BAA6B,GAAG,uBAAuB;IACjG,sBAAsB,EAAG,SAAS,GAAG,wBAAwB,GAAG,uBAAuB;IACvF,0CAA0C,EAAG,SAAS,GAAG,4CAA4C,GAAG,uBAAuB;IAC/H,mBAAmB,EAAG,SAAS,GAAG,qBAAqB,GAAG,uBAAuB;IACjF,iCAAiC,EAAG,SAAS,GAAG,mCAAmC,GAAG,uBAAuB;IAC7G,UAAU,EAAG,SAAS,GAAG,YAAY,GAAG,uBAAuB;CAC/D,CAAC"} \ No newline at end of file