{"id":48070078,"url":"https://github.com/strayge/pylnk","last_synced_at":"2026-04-04T14:40:58.096Z","repository":{"id":48712863,"uuid":"174931828","full_name":"strayge/pylnk","owner":"strayge","description":"Python library for reading and writing Windows shortcut files (.lnk). Python 3 only.","archived":false,"fork":false,"pushed_at":"2025-08-08T10:15:19.000Z","size":201,"stargazers_count":94,"open_issues_count":2,"forks_count":17,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-09-29T06:22:02.900Z","etag":null,"topics":["forensics","hactoberfest","lnk","lnk-files","python-library","shortcuts"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/strayge.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2019-03-11T05:31:32.000Z","updated_at":"2025-09-25T06:20:57.000Z","dependencies_parsed_at":"2023-01-27T17:30:33.867Z","dependency_job_id":"7a3c72f5-398b-4393-a84a-dae2fd06f548","html_url":"https://github.com/strayge/pylnk","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/strayge/pylnk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/strayge%2Fpylnk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/strayge%2Fpylnk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/strayge%2Fpylnk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/strayge%2Fpylnk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/strayge","download_url":"https://codeload.github.com/strayge/pylnk/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/strayge%2Fpylnk/sbom","scorecard":{"id":854843,"data":{"date":"2025-08-11","repo":{"name":"github.com/strayge/pylnk","commit":"d80737c04ea659d3e56d0fd152d7818b067e6d02"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.9,"checks":[{"name":"Maintained","score":4,"reason":"4 commit(s) and 1 issue activity found in the last 90 days -- score normalized to 4","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":1,"reason":"Found 4/22 approved changesets -- score normalized to 1","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tests.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/strayge/pylnk/tests.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tests.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/strayge/pylnk/tests.yml/master?enable=pin","Warn: pipCommand not pinned by hash: .github/workflows/tests.yml:21","Warn: pipCommand not pinned by hash: .github/workflows/tests.yml:22","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   2 pipCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/tests.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: GNU Lesser General Public License v3.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 18 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-23T23:37:34.517Z","repository_id":48712863,"created_at":"2025-08-23T23:37:34.517Z","updated_at":"2025-08-23T23:37:34.517Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31403267,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-04T10:20:44.708Z","status":"ssl_error","status_checked_at":"2026-04-04T10:20:06.846Z","response_time":60,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["forensics","hactoberfest","lnk","lnk-files","python-library","shortcuts"],"created_at":"2026-04-04T14:40:51.640Z","updated_at":"2026-04-04T14:40:58.083Z","avatar_url":"https://github.com/strayge.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PyLnk 3\n\n[![PyPI version shields.io](https://img.shields.io/pypi/v/pylnk3.svg)](https://pypi.python.org/pypi/pylnk3/)\n[![PyPI pyversions](https://img.shields.io/pypi/pyversions/pylnk3.svg)](https://pypi.python.org/pypi/pylnk3/)\n[![PyPI download month](https://img.shields.io/pypi/dm/pylnk3.svg)](https://pypi.python.org/pypi/pylnk3/)\n\nPython library for reading and writing Windows shortcut files (.lnk).  \nConverted to support python 3.\n\nThis library can parse .lnk files and extract all relevant information from\nthem. Parsing a .lnk file yields a LNK object which can be altered and saved\nagain. Moreover, .lnk file can be created from scratch be creating a LNK\nobject, populating it with data and then saving it to a file. As that\nprocess requires some knowledge about the internals of .lnk files, some\nconvenience functions are provided.\n\nLimitation: Windows knows lots of different types of shortcuts which all have\ndifferent formats. This library currently only supports shortcuts to files and\nfolders on the local machine. \n\n## CLI\n\nMainly tool has two basic commands.\n\n#### Parse existed lnk file\n\n```sh\npylnk3 parse [-h] filename [props [props ...]]\n\npositional arguments:\n  filename    lnk filename to read\n  props       props path to read\n\noptional arguments:\n  -h, --help  show this help message and exit\n```\n\n#### Create new lnk file\n\n```sh\nusage: pylnk3 create [-h] [--arguments [ARGUMENTS]] [--description [DESCRIPTION]] [--icon [ICON]]\n                     [--icon-index [ICON_INDEX]] [--workdir [WORKDIR]] [--mode [{Maximized,Normal,Minimized}]]\n                     target name\n\npositional arguments:\n  target                target path\n  name                  lnk filename to create\n\noptional arguments:\n  -h, --help            show this help message and exit\n  --arguments [ARGUMENTS], -a [ARGUMENTS]\n                        additional arguments\n  --description [DESCRIPTION], -d [DESCRIPTION]\n                        description\n  --icon [ICON], -i [ICON]\n                        icon filename\n  --icon-index [ICON_INDEX], -ii [ICON_INDEX]\n                        icon index\n  --workdir [WORKDIR], -w [WORKDIR]\n                        working directory\n  --mode [{Maximized,Normal,Minimized}], -m [{Maximized,Normal,Minimized}]\n                        window mode\n```\n\n#### Examples\n```sh\npylnk3 p filename.lnk\npylnk3 c c:\\prog.exe shortcut.lnk\npylnk3 c \\\\192.168.1.1\\share\\file.doc doc.lnk\npylnk3 create c:\\1.txt text.lnk -m Minimized -d \"Description\"\n```\n\n## Changes\n\n**0.4.3**  \nremove unnecessary print\n\n**0.4.2**  \nchanged logic for Lnk.path choose (in case of different paths presents at different structures)  \nread links with root as GUID of KNOWN_FOLDER  \n[FIX] disabled padding for writing LinkInfo.local_base_path  \n\n**0.4.0**  \nadded support for network links  \nreworked CLI (added more options for creating links)  \nadded entry point for call tool just like `pylnk3`  \n[FIX] allow build links for non-existed (from this machine) paths  \n[FIX] correct building links on Linux (now expect Windows-like path)  \n[FIX] fixed path priority at parsing with both local \u0026 remote presents  \n\n\n**0.3.0**  \nadded support links to UWP apps  \n\n\n**0.2.1**  \nreleased to PyPI\n\n  \n**0.2.0**  \nconverted to python 3  \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstrayge%2Fpylnk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstrayge%2Fpylnk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstrayge%2Fpylnk/lists"}