## gen-embed-zip

This program creates an embed-zip LNK, which is a LNK shortcut file with appended ZIP archive.


### Usage

```
Usage: gen-embed-zip.exe <zip-path> <output-lnk-path> <what-to-run-in-zip> [icon-path]
```

Parameters:

- `<zip-path>` - path to the .ZIP file containing our executable/document to be run after extracting it
- `<output-lnk-path>` - where to save produced LNK
- `<what-to-run-in-zip>` - A file that's in the .ZIP that will get executed as soon ZIP contents are extracted
- `[icon-path]` - optional path to .ico or executable (exe/dll) containing an icon to be used (index=0)


### Compilation

Compilation with _x64_x86 Cross Build Tools Command Prompt for VS 2019_:

```
cmd> cl.exe gen-embed-zip.cpp
```


### Credits

This is a modified version of x86matthew's EmbedExeLnk program, available here:
www.x86matthew.com/view_post?id=embed_exe_lnk

Adapted by:
Mariusz Banach / mgeeky, mb[at]binary-offensive.com
