# yangyangwithgnu/bypass_disablefunc_via_LD_PRELOAD

bypass disable_functions via LD_PRELOA  (no need /usr/sbin/sendmail)

Repository: https://github.com/yangyangwithgnu/bypass_disablefunc_via_LD_PRELOAD
Canonical: https://ross.abutalabs.com/products/bypass_disablefunc_via_ld_preload
Language: C
License Family: other
Last push: 2021-08-07T13:51:01+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 2818, "days_push": 1852, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1171, forks 279 (observed 2026-08-28T04:03:51.528939+00:00)

## What it is
A small PHP exploit script plus compiled shared object that bypasses PHP's disable_functions restriction to execute OS commands via LD_PRELOAD environment variable hijacking, without requiring /usr/sbin/sendmail. It is a red-team/pentest utility for exploiting misconfigured PHP servers.

## Use cases
- bypass php disable_functions to run system commands
- execute commands from a webshell when exec functions are disabled
- ld_preload shared object hijacking on php servers
- pentest php app where system exec shell_exec are disabled
- bypass disable_functions without sendmail installed

## When to choose
- you are doing authorized penetration testing on a PHP host with disable_functions enabled
- the target lacks /usr/sbin/sendmail so classic mail()-based bypasses fail
- you need a lightweight two-file exploit (php + .so) with no dependencies

## When to avoid
- you are a defender looking for hardening guidance rather than an exploit
- the target is not PHP or does not allow putenv()
- you need a maintained, licensed tool - it has no license and infrequent updates

## Facets
- artifact type: cli-tool
- maturity: maintenance
- function: security, penetration-testing, reverse-engineering
- domain: security, penetration-testing, web-development
- platform: cli
- tags: php, ld-preload, webshell, disable-functions, red-team, privilege-escalation, exploit, linux, web-server

## Member repositories
- yangyangwithgnu/bypass_disablefunc_via_LD_PRELOAD (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:51.528939+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-30T06:28:33.977708+00:00, confidence not recorded.
  - readme: https://github.com/yangyangwithgnu/bypass_disablefunc_via_LD_PRELOAD (fetched 2026-08-28T04:03:51.528939+00:00, sha 6a5c0b702775)
- Data as of 2026-08-30T08:39:29.467469+00:00.
