SkillAgentSearch skills...

LNKSmuggler

A Python script for creating `.lnk` (shortcut) files with embedded encoded data and packaging them into ZIP archives.

Install / Use

/learn @kapellos/LNKSmuggler
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

LNK Smuggler

image

A Python script for creating .lnk (shortcut) files with embedded encoded data and packaging them into ZIP archives. The resulting LNK file extracts the embedded files and executes the first file provided (so it can be used with AppDomainManager technique) effectively bypassing MOTW and the download of files over the Internet. Before the embedded file is executed the LNK opens up a Decoy URL for the user. Idea originated from Balliskit author @EmericNasi (https://github.com/sevagas/Advanced_Initial_access_in_2024_OffensiveX/blob/main/breach_the_gates_extended.pdf)

Table of Contents


About the Project

This project automates the creation of ZIP files containing a Windows shortcut (.lnk) file with embedded arbitrary files, which are extracted and executed when a user runs the resulting .lnk file. It is designed to be used as a ZIP archive to be downloaded in a Phishing Campaign.

Built With

  • Python
  • Standard libraries: tarfile, base64, os, sys, zipfile
  • External libraries: pywin32, pyfiglet

Features

  • Create .lnk shortcut files with:
    • Obfuscated cmd commands.
    • Embedded Base64-encoded tarball data.
  • Extract and append data to shortcuts at runtime.
  • Package the generated shortcuts into ZIP archives.

Installation

  1. Clone the repository:

    git clone https://github.com/kapellos/LNKSmuggler.git
    cd LNKSmuggler
    
  2. Install dependencies:

    pip install pywin32 pyfiglet
    

Usage

Run the script with the following command:

python3 lnksmuggler.py <lnk_name> <decoy_url> <file1> <file2> ...

Arguments

  • lnk_name: The name of the .lnk file to create.
  • decoy_url: The URL to open when the shortcut is executed.
  • file1, file2, ...: List of files to encode and embed in the shortcut.

Example

python3 lnksmuggler.py example.lnk "https://example.com" file1.exe file2.dll

License

Distributed under the MIT License. See LICENSE for more information.


Credits

  • EmericNasi [https://www.linkedin.com/in/emeric-nasi-84950528/]
View on GitHub
GitHub Stars93
CategoryDevelopment
Updated7d ago
Forks7

Languages

Python

Security Score

95/100

Audited on Mar 30, 2026

No findings