דילוג לתוכן
New

DeepSeek V4.1 Flash free for 7 days: 10M tokens a day after a top-up of $10 or more. Until Nov 30.

How it works
aeondave/patchelfהנדסה לאחור ו-fuzzing

patchelf

⁨Auth/lab ref: ELF patching utility for changing interpreters, RPATH/RUNPATH, DT_NEEDED entries, and SONAME fields.⁩

v2026.11.13-21cd5683 התקנות⁦+3⁩ ב-7 ימים39 כוכביםGPL-3.0סונכרן לפני 11 שעות

התקנה

עדיין אין לכם את ה-CLI של NotHoly? התקינו אותו קודם.

$ curl -fsSL https://notholy.com/install.sh | sh
$ notholy skills install aeondave/patchelf

נכתב אל ⁦~/.notholy/skills⁩ אחרי בדיקת החתימה וה-SHA-256.

חתימהחתום, ed25519
stD4Z/aHmM…LKl3p8CA==ה-CLI בודק את ה-SHA-256 ואת החתימה לפני שהוא כותב קובץ כלשהו.
חבילהb57c95c8…ff573d4e
b57c95c8aef5…a3c0ff573d4eקובץ אחד · ⁦1.2 KB⁩
סריקהנמוךאין ממצאים
הסריקה לא מצאה בגרסה הזו שום דבר שצריך לסמן.לסריקה המלאה
מקורgithub.com/AeonDave/malskill/tree/main/offensive-tools/rev/patchelf@21cd568

הפריט הזה עדיין לא נכתב בעברית, ולכן הוא מוצג בשפה אחרת: English.

Patch existing ELF metadata without recompiling the target.

When to use patchelf

Use patchelf when you need to:

  • force an ELF to use a specific dynamic loader
  • point a binary at a custom libc or bundled libraries
  • trim or rewrite RPATH/RUNPATH entries
  • add, remove, or replace DT_NEEDED dependencies
  • change a shared library SONAME

This is especially useful in exploit labs, portable bundles, and offline ELF repair workflows.

Quick Start

bash
# Set custom loader
patchelf --set-interpreter /lib64/ld-linux-x86-64.so.2 ./prog

# Set custom RPATH
patchelf --set-rpath '$ORIGIN/libs' ./prog

# Replace one needed library with another
patchelf --replace-needed libold.so libnew.so ./prog

High-Value Operations

Change interpreter

bash
patchelf --set-interpreter /path/to/ld-linux.so.2 ./prog

Use when a binary must run with a matching loader for a bundled libc.

Set or shrink RPATH

bash
patchelf --set-rpath /opt/app/lib:/other/lib ./prog
patchelf --shrink-rpath ./prog
patchelf --shrink-rpath --allowed-rpath-prefixes /usr/lib:/opt/app/lib ./prog

Change dependencies

bash
patchelf --remove-needed libfoo.so.1 ./prog
patchelf --add-needed libbar.so.1 ./prog
patchelf --replace-needed libold.so.1 libnew.so.1 ./prog

Change shared library SONAME

bash
patchelf --set-soname libcustom.so.1 ./libtarget.so

Canonical Exploit-Lab Workflow

bash
cp ./vuln ./vuln.patched
patchelf --set-interpreter ./ld-linux-x86-64.so.2 ./vuln.patched
patchelf --set-rpath '$ORIGIN' ./vuln.patched

Then verify with ldd, readelf, or by executing under a controlled directory.

Practical Notes

  • Always patch a copy first.
  • Verify before and after with readelf -l, readelf -d, and ldd.
  • Prefer $ORIGIN-based RPATHs for portable bundles.
  • Use patchelf for loader/runtime metadata, not for arbitrary code patching.

Caveats

  • ELF only.
  • Bad interpreter or dependency changes can make the binary unloadable.
  • Patching dependency layout does not fix ABI mismatches by itself.

Resources

No bundled scripts/, references/, or assets/. Use upstream README for build/install variants and the complete option set.

הקבצים בגרסה הזו

הרשאות

הרשאההוצהרנמצא בסריקה
קורא קבציםלאלא
כותב קבציםלאלא
מריץ פקודות shellכןכן
משתמש ברשתלאלא
משתמש במחבריםלאלא
שולט בדפדפןלאלא

ממצאי הסריקה

נבדק ב-13 בנוב׳ 2026

הסריקה לא מצאה בגרסה הזו שום דבר שצריך לסמן.

סריקה נקייה מורידה את הסיכון, אבל לא מוכיחה שהחבילה בטוחה. כדאי לקרוא מה מתקינים.

גרסהפורסמהCommitSHA-256חתימהשינוי בהרשאות
v2026.11.13-21cd56813 בנוב׳ 202621cd568b57c95c8חתומה–

שאלו כל מה שהסקופ מאפשר.

יוצרים חשבון, מוסיפים קרדיטים ושואלים את השאלה הראשונה בצ׳אט או בטרמינל.

  1. 1/3

    יצירת חשבון

    פרטי או חברה. אפשר לעבור לחשבון חברה אחר כך בלי לאבד יתרה או מפתחות.

    פרטיחברה
  2. 2/3

    הוספת קרדיטים

    בכרטיס אשראי. תשלום לפי טוקן, בלי מנוי.

    $5.00טעינה מינימלית
  3. 3/3

    שאלה ראשונה

    בצ׳אט, או להתקין את ה-CLI ולהריץ notholy login בטרמינל.

    $ notholy login