Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Windows Shortcut parser and generator (WIP)

License

NotificationsYou must be signed in to change notification settings

hacklab-esgi/LNKat

Repository files navigation

  ,-.       _,---._ __  / \ /  )    .-'       `./ /   \(  (   ,'            `/    /| \  `-"             \'\   / |  `.              ,  \ \ /  |   /`.          ,'-`----Y   |  (            ;        |   '  |  ,-.    ,-'         |  /  |  | (   |      LNKat | /  )  |  \  `.___________|/  `--'   `--'

The goal to develop LNKat is to get a versatil tool which can be used for :

  • Malware triage : read and analyse LNK files
  • Offensive tactics : generate malicious.lnk payloads

And it would be create to provide an API to be integred with other tools.

Why

Couldn't find any viable tool on Linux to generate malicious LNK files.
And I wanna play with theconstruct library and therye tooling.

The generator capability would be useful to build any kind of LNK-related attacks.

Installation

The recommanded way is to usepipx :

pipx install git+https://github.com/hacklab-esgi/LNKat

Usage

Once installed on your system, use the following command to analyse:

lnkat<file_path>

Example

Test with our samples :

lnkat samples/calc.exe.lnk

Roadmap

First milestone for parsing ability :

  • ReadSHELL_LINK_HEADER
  • ReadLINKTARGET_IDLIST
    • Documented structures
    • Undocumented structures
  • ReadLINKINFO
  • ReadSTRING_DATA
  • ReadEXTRA_DATA
  • Provide an initial clean output

Second milestone for generation ability:

  • Generate a file with "default" values
  • Custom target path
  • Custom icon path
  • More to come

Third milestone for QoL :

  • Python API to use LNKat as a library
  • Generate HTML reports
  • Modify existing file ascat input.lnk | lnkat.py > output.lnk
  • Configuration files
  • More to come

Contributing

This project is usingrye for project and package management.

All the parsing logicmust be written insideConstruct's structs, mostly using theAdapter class.

Please review the contribution guideCONTRIBUTING.md.

License

Distributed under the MIT License. SeeLICENSE for more information.

Credits

About

Windows Shortcut parser and generator (WIP)

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp