From 9afe574be715cda46c786855f125c63b1e0a13c2 Mon Sep 17 00:00:00 2001 From: "Mariusz B. / mgeeky" Date: Wed, 6 May 2020 19:23:51 +0200 Subject: [PATCH] README --- red-teaming/code-exec-templates/README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/red-teaming/code-exec-templates/README.md b/red-teaming/code-exec-templates/README.md index f27fd27..b960788 100644 --- a/red-teaming/code-exec-templates/README.md +++ b/red-teaming/code-exec-templates/README.md @@ -9,6 +9,8 @@ Windows Script Host (WSH) subsystem can execute VBScript/JScript scritplets usin - `wscript.exe` - For general scripts execution. **This one loads AMSI** +--- + #### VBScript - **`download-file-and-exec.vbs`** - Downloads a binary file using `Msxml2.ServerXMLHTTP`, stores it to the disk `Adodb.Stream` and then launches it via `Wscript.Shell Run` @@ -20,9 +22,13 @@ Windows Script Host (WSH) subsystem can execute VBScript/JScript scritplets usin - **`wscript-shell-stdin-code-exec.vbs`** - Code execution via `WScript.Shell` in a hidden window through a command passed from StdIn to `powershell` +--- + #### JScript +--- + #### XSL XSL files can be executed in the following ways: @@ -40,6 +46,8 @@ Templates: +--- + #### COM Scriptlets Sample code execution with `regsvr32` can be following: @@ -50,6 +58,8 @@ regsvr32 /u /n /s /i:wscript-shell-run-jscript-scriptlet.sct scrobj.dll - **`wscript-shell-run-jscript-scriptlet.sct`** - SCT file with JSCript code execution via `WScript.Shell.Run` +--- + #### HTA HTA files are HTML Applications