# david942j/one_gadget

The best tool for finding one gadget RCE in libc.so.6

Repository: https://github.com/david942j/one_gadget
Canonical: https://ross.abutalabs.com/products/one_gadget
Language: Ruby
License: MIT
License Family: permissive
Topics: ctf, pwnable, pwn, glibc, one-gadget-rce, shell, exploit, gadget, libc
Last push: 2026-08-25T12:26:17+00:00

## Health v2 (maintenance only)
Score: 67/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 99, release rhythm 8, longevity 100
- inputs: {"age_days": 3494, "days_push": 8, "days_rel": 698, "gap_med": null, "n_releases_24m": 1}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2346, forks 149 (observed 2026-08-28T04:06:39.887237+00:00)

## What it is
A Ruby command-line tool that finds one-gadget RCE candidates (execve('/bin/sh',...) call sites) in libc binaries for CTF pwn challenges. It uses backward symbolic execution from exec/posix_spawn calls to derive the constraints each gadget requires, supporting i386, amd64, arm, and aarch64.

## Use cases
- find one gadget rce offsets in libc.so.6
- find execve /bin/sh gadgets in glibc for ctf pwn challenges
- get constraints for one_gadget exploitation
- search libc for one-shot shell gadgets without objdump or IDA
- find one_gadget addresses for a given libc binary
- locate execve gadgets in libc for ret2libc exploits

## When to choose
- you are solving CTF pwn challenges and need one-gadget RCE offsets quickly
- you want automatically derived constraints for each gadget instead of manual reverse engineering
- you need support for x86, amd64, arm, and aarch64 libc binaries

## When to avoid
- you need general ROP gadget search rather than execve-based one gadgets
- you are doing defensive security analysis rather than exploitation
- you need a library API in a language other than Ruby

## Facets
- artifact type: cli-tool
- maturity: active
- function: security, reverse-engineering, cli
- domain: security, penetration-testing, developer-tools
- platform: windows, cli
- tags: ctf, pwn, binary-exploitation, glibc, one-gadget-rce, ruby-gem, exploit-development, command-line, linux, macos

## Member repositories
- david942j/one_gadget (main) score 67

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:39.887237+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:37:01.598117+00:00, confidence not recorded.
  - readme: https://github.com/david942j/one_gadget (fetched 2026-08-28T04:06:39.887237+00:00, sha 653f8c6a25cb)
- Data as of 2026-08-30T08:39:29.467469+00:00.
