Windows Shortcut file (LNK) parser
Low maintenance activity. Last release 9 months ago, commits in 0 of the last 26 weeks. Weaker on commit activity and release cadence.
pip install lnkparse3LnkParse3
Windows Shortcut file (LNK) parser
LnkParse3 is a minimalistic python package for forensics of a binary file with LNK extension aka Microsoft Shell Link aka Windows shortcut. It is aimed to dig up as much data as possible and to process even malformed files. It is not able to create or modify files.
Features
- easy to use
- CLI tool & package
- JSON output
Background
This is a fork of lnkfile available here.
Improvements:
- much more extracted data
- many bug fixes
- made to not fail on malformed files
NOTE: master branch history was rewritten and has different commits metadata than the upstream master.
Installation
pip install LnkParse3
Usage
Can be used as a package or as a command line tool. It accepts several arguments, including setting the output format to JSON or a more human-readable form. For all parameters, see the program description below.
usage: lnkparse [-h] [-t] [-j] [-c CP] [-a] FILE
Windows Shortcut file (LNK) parser
positional arguments:
FILE absolute or relative path to the file
optional arguments:
-h, --help show this help message and exit
-t, --target print target only
-j, --json print output in JSON
-c CP, --codepage CP set codepage of ASCII strings
-a, --all print all extracted data (i.e. offsets and sizes)