{ "info": { "author": "Mat\u00fa\u0161 Jasnick\u00fd", "author_email": "matusjas.work@gmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "# LnkParse\nWindows Shortcut file (LNK) parser\n\nThis is the fork of `lnkfile` available [here](https://github.com/silascutler/LnkParse)\n\nImprovements:\n* migrated to python 3\n* more extracted data\n* many bug fixes\n\nSee lnk format: https://msdn.microsoft.com/en-us/library/dd871305.aspx\n\nInstall:\n`pip install LnkParse3`\n\n\n# Example:\nCLI tool\n```\n$ python lnkparser.py -f tests/microsoft_example.lnk\nWindows Shortcut Information:\n\tLink Flags: HasLinkInfo | EnableTargetMetadata | HasWorkingDir | IsUnicode | HasTargetIDList | HasRelativePath - (524443)\n\tFile Flags: FILE_ATTRIBUTE_ARCHIVE - (32)\n\n\tCreation Timestamp: 2008-09-12 22:27:17\n\tModified Timestamp: 2008-09-12 22:27:17\n\tAccessed Timestamp: 2008-09-12 22:27:17\n\n\tFile Size: 0 (r: 459)\n\tIcon Index: 0 \n\tWindow Style: SW_NORMAL \n\tHotKey: UNSET - {0x0000} \n\n\trelativePath: .\\a.txt\n\tworkingDirectory: C:\\test\n\n\tEXTRA BLOCKS:\n\t\tDISTRIBUTED_LINK_TRACKER_BLOCK\n\t\t\t[size] 96\n\t\t\t[length] 88\n\t\t\t[version] 0\n\t\t\t[machine_identifier] chris-xps\n\t\t\t[droid_volume_identifier] 4078c79447fac746b3565c2dc6b6d115\n\t\t\t[droid_file_identifier] ec46cd7b227fdd11949900137216874a\n\t\t\t[birth_droid_volume_identifier] 4078c79447fac746b3565c2dc6b6d115\n\t\t\t[birth_droid_file_identifier] ec46cd7b227fdd11949900137216874a\n```\n\npip package\n```\n>>> import LnkParse3\n>>> indata = open('tests/microsoft_example.lnk', 'rb')\n>>> x = LnkParse3.lnk_file(indata)\n>>> x.print_lnk_file()\nWindows Shortcut Information:\n\tLink Flags: HasLinkInfo | EnableTargetMetadata | HasWorkingDir | IsUnicode | HasTargetIDList | HasRelativePath - (524443)\n\tFile Flags: FILE_ATTRIBUTE_ARCHIVE - (32)\n\n\tCreation Timestamp: 2008-09-12 22:27:17\n\tModified Timestamp: 2008-09-12 22:27:17\n\tAccessed Timestamp: 2008-09-12 22:27:17\n\n\tFile Size: 0 (r: 459)\n\tIcon Index: 0 \n\tWindow Style: SW_NORMAL \n\tHotKey: UNSET - {0x0000} \n\n\trelativePath: .\\a.txt\n\tworkingDirectory: C:\\test\n\n\tEXTRA BLOCKS:\n\t\tDISTRIBUTED_LINK_TRACKER_BLOCK\n\t\t\t[size] 96\n\t\t\t[length] 88\n\t\t\t[version] 0\n\t\t\t[machine_identifier] chris-xps\n\t\t\t[droid_volume_identifier] 4078c79447fac746b3565c2dc6b6d115\n\t\t\t[droid_file_identifier] ec46cd7b227fdd11949900137216874a\n\t\t\t[birth_droid_volume_identifier] 4078c79447fac746b3565c2dc6b6d115\n\t\t\t[birth_droid_file_identifier] ec46cd7b227fdd11949900137216874a\n\n>>> x.print_json()\n{\n\t\"header\": {\n\t\t\"guid\": \"0114020000000000c000000000000046\",\n\t\t\"r_link_flags\": 524443,\n\t\t\"r_file_flags\": 32,\n\t\t\"creation_time\": \"2008-09-12 22:27:17\",\n\t\t\"accessed_time\": \"2008-09-12 22:27:17\",\n\t\t\"modified_time\": \"2008-09-12 22:27:17\",\n\t\t\"file_size\": 0,\n\t\t\"r_file_size\": \"00000000\",\n\t\t\"icon_index\": 0,\n\t\t\"windowstyle\": \"SW_NORMAL\",\n\t\t\"hotkey\": \"UNSET - UNSET {0x0000}\",\n\t\t\"r_hotkey\": 0,\n\t\t\"link_flags\": [\n\t\t\t\"HasTargetIDList\",\n\t\t\t\"HasLinkInfo\",\n\t\t\t\"HasRelativePath\",\n\t\t\t\"HasWorkingDir\",\n\t\t\t\"IsUnicode\",\n\t\t\t\"EnableTargetMetadata\"\n\t\t],\n\t\t\"file_flags\": [\n\t\t\t\"FILE_ATTRIBUTE_ARCHIVE\"\n\t\t]\n\t},\n\t\"data\": {\n\t\t\"relative_path\": \".\\\\a.txt\",\n\t\t\"working_directory\": \"C:\\\\test\"\n\t},\n\t\"target\": {\n\t\t\"items\": []\n\t},\n\t\"link_info\": {\n\t\t\"link_info_flags\": 1,\n\t\t\"local_base_path\": \"C:\\\\test\\\\a.txt\",\n\t\t\"location\": \"Local\",\n\t\t\"location_info\": {\n\t\t\t\"volume_id_size\": 17,\n\t\t\t\"r_drive_type\": 3,\n\t\t\t\"drive_serial_number\": \"0x307a8a81\",\n\t\t\t\"volume_label_offset\": 16,\n\t\t\t\"drive_type\": \"DRIVE_FIXED\",\n\t\t\t\"volume_label\": \"\"\n\t\t}\n\t},\n\t\"extra\": {\n\t\t\"DISTRIBUTED_LINK_TRACKER_BLOCK\": {\n\t\t\t\"size\": 96,\n\t\t\t\"length\": 88,\n\t\t\t\"version\": 0,\n\t\t\t\"machine_identifier\": \"chris-xps\",\n\t\t\t\"droid_volume_identifier\": \"4078c79447fac746b3565c2dc6b6d115\",\n\t\t\t\"droid_file_identifier\": \"ec46cd7b227fdd11949900137216874a\",\n\t\t\t\"birth_droid_volume_identifier\": \"4078c79447fac746b3565c2dc6b6d115\",\n\t\t\t\"birth_droid_file_identifier\": \"ec46cd7b227fdd11949900137216874a\"\n\t\t}\n\t}\n}\n```\n\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/Matmaus/LnkParse", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "LnkParse3", "package_url": "https://pypi.org/project/LnkParse3/", "platform": "", "project_url": "https://pypi.org/project/LnkParse3/", "project_urls": { "Homepage": "https://github.com/Matmaus/LnkParse" }, "release_url": "https://pypi.org/project/LnkParse3/0.3.3/", "requires_dist": null, "requires_python": "", "summary": "Windows Shortcut file (LNK) parser", "version": "0.3.3" }, "last_serial": 5149365, "releases": { "0.3.0": [ { "comment_text": "", "digests": { "md5": "7a205853151d0ff03970629d734c1458", "sha256": "d98d5b67292d35dd8ed193f9f80cdd70148d3b967377b84db52486ef4f6cdd56" }, "downloads": -1, "filename": "LnkParse3-0.3.0-py3-none-any.whl", "has_sig": false, "md5_digest": "7a205853151d0ff03970629d734c1458", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 21650, "upload_time": "2019-04-01T20:15:05", "url": "https://files.pythonhosted.org/packages/68/60/5c83c6f23d40adec09b1000dda72be77b0ee0d190d355dcf407efdc6e40c/LnkParse3-0.3.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "c19d237fae5d9c0b767fb74dcd4f82c7", "sha256": "997713347bb54660cfdc6cb062667205c89f697e5e96235c76f4a88674657552" }, "downloads": -1, "filename": "LnkParse3-0.3.0.tar.gz", "has_sig": false, "md5_digest": "c19d237fae5d9c0b767fb74dcd4f82c7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10702, "upload_time": "2019-04-01T20:15:06", "url": "https://files.pythonhosted.org/packages/17/3f/b189fe43d540b91691ba6c340c26f6a2d409658b2b752dc1fb81b17a89cf/LnkParse3-0.3.0.tar.gz" } ], "0.3.1": [ { "comment_text": "", "digests": { "md5": "0baf869ad18fb2c6184fc03b70043bb3", "sha256": "a28a24698eace156a24532ee338f338abd485c4aedbb7520dcb0fb36975d43ea" }, "downloads": -1, "filename": "LnkParse3-0.3.1-py3-none-any.whl", "has_sig": false, "md5_digest": "0baf869ad18fb2c6184fc03b70043bb3", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 22167, "upload_time": "2019-04-06T13:57:09", "url": "https://files.pythonhosted.org/packages/d7/ae/de82e0ac0706c8a8e59be0217b47d4de41abc84551f9a62790d98af73088/LnkParse3-0.3.1-py3-none-any.whl" } ], "0.3.2": [ { "comment_text": "", "digests": { "md5": "11337a718f6054c3937e519167ab77c3", "sha256": "d33691ded98f4571334fff048ecd56b02f7e45ef85e4a6b9a1ae8416b4aa53c3" }, "downloads": -1, "filename": "LnkParse3-0.3.2-py3-none-any.whl", "has_sig": false, "md5_digest": "11337a718f6054c3937e519167ab77c3", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 22179, "upload_time": "2019-04-15T15:07:50", "url": "https://files.pythonhosted.org/packages/5b/4e/11b8538e34f7ec25e452ae6dc6b9fec0cc4f19371f7ffffac57b2c45afba/LnkParse3-0.3.2-py3-none-any.whl" } ], "0.3.3": [ { "comment_text": "", "digests": { "md5": "0ff4198cf729b5c97862f88946312843", "sha256": "ccc4be9786d5bf2b8a094dd19ce006624ed9b6952ae32d41ab403883d0f9ee08" }, "downloads": -1, "filename": "LnkParse3-0.3.3-py3-none-any.whl", "has_sig": false, "md5_digest": "0ff4198cf729b5c97862f88946312843", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 22191, "upload_time": "2019-04-16T10:24:49", "url": "https://files.pythonhosted.org/packages/dd/f9/3b846e61ad8e213dec89309dd601d0c5342f5691b8d230c8d8197a22a132/LnkParse3-0.3.3-py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "0ff4198cf729b5c97862f88946312843", "sha256": "ccc4be9786d5bf2b8a094dd19ce006624ed9b6952ae32d41ab403883d0f9ee08" }, "downloads": -1, "filename": "LnkParse3-0.3.3-py3-none-any.whl", "has_sig": false, "md5_digest": "0ff4198cf729b5c97862f88946312843", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 22191, "upload_time": "2019-04-16T10:24:49", "url": "https://files.pythonhosted.org/packages/dd/f9/3b846e61ad8e213dec89309dd601d0c5342f5691b8d230c8d8197a22a132/LnkParse3-0.3.3-py3-none-any.whl" } ] }