Giter VIP home page Giter VIP logo

lnk-builder's Introduction

LNK File Builder

Programmatically build a LNK file (shortcut file) that executes certain powershell script. Built mainly for spearphishing red-team engagement, with cpp and meson.

Disclaimer: I, the creator of this program, has no responsibility for whatever you do with this tool. This tool was made solely for training and demonstration. Do anything at your own risk.

Building / Installation

You can either build this tool from the source code with meson, or just simply downloading the precompiled binary. This tool currently only support 64 bit windows environment and I have no intention to support any other environment.

Building From Source

Make sure you have meson installed, its easier to use meson rather than gcc or visual studio but you can choose anything you desire.

git clone https://github.com/idfp/lnk-builder
cd lnk-builder/

Build the project first before compiling it again with meson.

meson build
cd build
meson compile

If everything went smooth, you'll get an executable named lnkbuilder.exe.

Precompiled Binary

Download the precompiled binary from the Release Page. And use it normally.

Usage

Usage: lnkbuilder.exe [Options]                                             
Options:
  --description / -d set description for lnk file.                                                 
  --payload / -p payload to be executed, must be powershell script.                                               
  --file / -f get payload from ps1 file.                                                 
  --icon / -i icon to be used.                                                 
  --output / -o name of output files, should ends with .lnk                                                   
    
Example: lnkbuilder.exe --payload "Start-Process notepad.exe" -o notepad.lnk                                                   

lnk-builder's People

Contributors

idfp avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.