{"id":20292483,"url":"https://github.com/mauricelambert/binaryfilereader","last_synced_at":"2025-03-04T05:13:48.530Z","repository":{"id":57415087,"uuid":"350028986","full_name":"mauricelambert/BinaryFileReader","owner":"mauricelambert","description":"This package read binary file to get all strings or read it like a hexareader.","archived":false,"fork":false,"pushed_at":"2021-03-21T14:53:07.000Z","size":22,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-14T09:14:41.753Z","etag":null,"topics":["binary","hexadecimal","pypi-package","python3","reverse-engineering"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mauricelambert.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-03-21T14:52:25.000Z","updated_at":"2021-03-21T14:55:48.000Z","dependencies_parsed_at":"2022-09-01T16:51:49.357Z","dependency_job_id":null,"html_url":"https://github.com/mauricelambert/BinaryFileReader","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mauricelambert%2FBinaryFileReader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mauricelambert%2FBinaryFileReader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mauricelambert%2FBinaryFileReader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mauricelambert%2FBinaryFileReader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mauricelambert","download_url":"https://codeload.github.com/mauricelambert/BinaryFileReader/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241787485,"owners_count":20020101,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["binary","hexadecimal","pypi-package","python3","reverse-engineering"],"created_at":"2024-11-14T15:17:29.900Z","updated_at":"2025-03-04T05:13:48.508Z","avatar_url":"https://github.com/mauricelambert.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# BinaryFileReader\r\n\r\n## Description\r\nThis package read binary file to get all strings or read it like a hexareader.\r\n\r\n## Requirements\r\nThis package require :\r\n - python3\r\n - python3 Standard Library\r\n\r\n## Installation\r\n```bash\r\npip install BinaryFileReader\r\n```\r\n\r\n## Launcher\r\n\r\n## Command line:\r\n```bash\r\nGetStrings -h # get help message\r\nGetStrings test.bin # get strings in test.bin\r\nGetStrings -m 7 -M 1 test.dump # get strings with minimum length of 7 characters and with one non printable character between characters\r\nHexaReader test.bin # Read test.bin as hexadecimal and ascii printable\r\n```\r\n\r\n### Python script\r\n```python\r\nfrom BinaryFileReader import Strings, HexaReader\r\n\r\nhexareader = HexaReader(\"test.bin\")\r\nfor line in hexareader.reader():\r\n    print(line)\r\n\r\nstrings = Strings(\"test.bin\")\r\nfor line in strings.reader():\r\n    print(line)\r\n\r\nstrings = Strings(\"test.dmp\", chars=b\"abcdeABCDE0123./$\", minimum_chars=7, number_bad_chars=1, accepted_bad_chars=b'\\x00', encoding=\"latin1\")\r\nfor line in strings.reader():\r\n    print(line)\r\n```\r\n\r\n### Python executable:\r\n```bash\r\npython3 BinaryFileReader.pyz strings -m 7 -M 1 test.dump\r\npython3 BinaryFileReader.pyz strings test.bin\r\n\r\n# OR\r\nchmod u+x BinaryFileReader.pyz # add execute rights\r\n./BinaryFileReader.pyz hexareader test.bin # execute file\r\n```\r\n\r\n### Python module (command line):\r\n\r\n```bash\r\npython3 -m BinaryFileReader hexareader test.bin\r\npython3 -m BinaryFileReader.Strings -m 7 -M 1 test.dump\r\n```\r\n\r\n## Links\r\n - [Github Page](https://github.com/mauricelambert/BinaryFileReader/)\r\n - [Documentation](https://mauricelambert.github.io/info/python/code/BinaryFileReader.html)\r\n - [Download as python executable](https://mauricelambert.github.io/info/python/code/BinaryFileReader.pyz)\r\n - [Pypi package](https://pypi.org/project/BinaryFileReader/)\r\n\r\n## Licence\r\nLicensed under the [GPL, version 3](https://www.gnu.org/licenses/).\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmauricelambert%2Fbinaryfilereader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmauricelambert%2Fbinaryfilereader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmauricelambert%2Fbinaryfilereader/lists"}