{"id":17384255,"url":"https://github.com/christhecoolhut/angry_gadget","last_synced_at":"2025-04-15T06:14:40.521Z","repository":{"id":57410373,"uuid":"267998138","full_name":"ChrisTheCoolHut/angry_gadget","owner":"ChrisTheCoolHut","description":"A tool for finding the one gadget RCE in libc","archived":false,"fork":false,"pushed_at":"2020-05-30T03:38:29.000Z","size":777,"stargazers_count":76,"open_issues_count":1,"forks_count":8,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-15T06:14:34.919Z","etag":null,"topics":["angr","ctf","libc","one-gadget-rce","pwn"],"latest_commit_sha":null,"homepage":"","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/ChrisTheCoolHut.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":"2020-05-30T02:56:00.000Z","updated_at":"2025-04-03T21:49:57.000Z","dependencies_parsed_at":"2022-09-04T22:51:50.025Z","dependency_job_id":null,"html_url":"https://github.com/ChrisTheCoolHut/angry_gadget","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/ChrisTheCoolHut%2Fangry_gadget","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChrisTheCoolHut%2Fangry_gadget/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChrisTheCoolHut%2Fangry_gadget/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChrisTheCoolHut%2Fangry_gadget/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ChrisTheCoolHut","download_url":"https://codeload.github.com/ChrisTheCoolHut/angry_gadget/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249016641,"owners_count":21198833,"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":["angr","ctf","libc","one-gadget-rce","pwn"],"created_at":"2024-10-16T07:44:58.434Z","updated_at":"2025-04-15T06:14:40.505Z","avatar_url":"https://github.com/ChrisTheCoolHut.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Angry Gadget\n\nLocating OneGadgets in libc.\n\nInspired by [OneGadget](https://github.com/david942j/one_gadget) this tool is written in python and uses [angr](https://github.com/angr/angr) to test constraints for gadgets executing `execve('/bin/sh', NULL, NULL)`\n\nIf you've run out gadgets to try from OneGadget, Angry Gadget gives a lot more with complicated constraints to try!\n\n# Installation\n```\npip install angry_gadget\n```\nor\n```\ngit clone https://github.com/ChrisTheCoolHut/angry_gadget.git\ncd angry_gadget\npip install -e .\n```\n\n# Usage\n\nThe python script accepts one positional argument.\n\n```\n$ angry_gadget.py -h\nusage: angry_gadget.py [-h] binary\n\npositional arguments:\n  binary\n\noptional arguments:\n  -h, --help  show this help message and exit\n```\n\n# Example \n\n```\n$ angry_gadget.py examples/libc6_2.23-0ubuntu10_amd64.so \nBuilding CFG, this will take a moment\n100% |###############################################################################################| Elapsed Time: 0:03:08 Time:  0:03:08\nIterating over XREFs looking for gadget\n100%|#######################################################################################################| 14/14 [00:01\u003c00:00,  8.39it/s]\nTrying 0x4f0fe9: 100%|######################################################################################| 16/16 [02:03\u003c00:00,  7.75s/it]\nlibc_base + 0xf6661 :\n\t\u003cBool reg_rbx_114460_64{UNINITIALIZED}[60:0] == 0x1fffffffffffffff\u003e\n\t\u003cBool !(reg_cc_dep1_114463_64{UNINITIALIZED}[6:6] == 0)\u003e\n\t\u003cBool reg_rbp_114471_64{UNINITIALIZED} == 0xf6\u003e\n\t\u003cBool True\u003e\n\t\u003cBool reg_rcx_114473_64{UNINITIALIZED} \u003c= 0xffffffffffffffff\u003e\n\t\u003cBool reg_rcx_114473_64{UNINITIALIZED} == 0xfffffffffff80000\u003e\nlibc_base + 0xf6669 :\n\t\u003cBool reg_rbx_114476_64{UNINITIALIZED}[60:0] == 0x1ffffffffffffffe\u003e\n\t\u003cBool !(reg_cc_dep1_114478_64{UNINITIALIZED}[6:6] == 0)\u003e\n\t\u003cBool reg_rbp_114486_64{UNINITIALIZED} == 0xf4\u003e\n\t\u003cBool True\u003e\n\t\u003cBool reg_rcx_114488_64{UNINITIALIZED} \u003c= 0xffffffffffffffff\u003e\n\t\u003cBool reg_rcx_114488_64{UNINITIALIZED} == 0x8000000000000000\u003e\n ----- SNIP ------\nlibc_base + 0xf115d :\n\t\u003cBool True\u003e\n\t\u003cBool reg_rsi_114729_64{UNINITIALIZED} \u003c= 0xffffffffffffffff\u003e\n\t\u003cBool reg_rsi_114729_64{UNINITIALIZED} == 0xffffffffffffffc0\u003e\nlibc_base + 0x6f5bb :\n\t\u003cBool reg_rsi_114534_64{UNINITIALIZED} == 0x0\u003e\nlibc_base + 0x6f5be :\n\t\u003cBool reg_rsi_114544_64{UNINITIALIZED} == 0x0\u003e\nlibc_base + 0x6f5c1 :\n\t\u003cBool reg_rsi_114555_64{UNINITIALIZED} == 0x0\u003e\nlibc_base + 0x6f5c3 :\n\t\u003cBool reg_rsi_114567_64{UNINITIALIZED} == 0x0\u003e\nlibc_base + 0x4526a :\nlibc_base + 0xf02a4 :\nlibc_base + 0xf1147 :\n```\n\n# Notes\n\n * It's slower than OneGadget, so you should probably still use that.\n * It's only 64bit, if there is interest, I can expand it to 32bit.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchristhecoolhut%2Fangry_gadget","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchristhecoolhut%2Fangry_gadget","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchristhecoolhut%2Fangry_gadget/lists"}