-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
29 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<p allign="center"> | ||
<img src="img/akane.jpg"> | ||
<h1>Soinjector</h1> | ||
<div> | ||
<img src="https://img.shields.io/badge/license-unlicense-green"> | ||
<img src="https://img.shields.io/github/languages/code-size/meth1337/soinjector"> | ||
<img src="https://img.shields.io/badge/language-C-lightgrey"> | ||
</div> | ||
</p> | ||
|
||
<p>This is a simple Linux library injector that allows you to inject a shared library into a running process. It uses <code>ptrace</code> to attach to the target process, call <code>dlopen</code> with the specified library path, and detach from the process.</p> | ||
<h2 id="download">Download</h2> | ||
<p>You can get the latest stable binary from <a href="https://github.com/meth1337/soinjector/releases/latest">here</a> (filename: <code>injector</code>)</p> | ||
<h2 id="usage">Usage</h2> | ||
<p>To use the injector, you must have root privileges. You can run the program with the following command:</p> | ||
<pre><code>sudo ./injector <span class="hljs-tag"><<span class="hljs-name">lib_path</span>></span> <span class="hljs-tag"><<span class="hljs-name">pid</span>></span> | ||
</code></pre><p>Where <code><lib_path></code> is the path to the shared library you want to inject and <code><pid></code> is the process ID of the target process.<br><br> | ||
Example:</p> | ||
<pre><code>sudo .<span class="hljs-regexp">/inject /</span>path<span class="hljs-regexp">/to/</span>libexample.so <span class="hljs-number">1234</span> | ||
</code></pre><p>The injector will attach to the process, call <code>dlopen</code> with the specified library path, and detach from the process. If successful, it will print <code>[*] Library injected successfully!</code> to the console.</p> | ||
<h2 id="docs">Docs</h2> | ||
<p>The documentation of this tool is <a href="https://github.com/meth1337/soinjector/wiki">here</a>.</p> | ||
<hr> | ||
<pre><code> [<span class="hljs-name">x0@0x0-80tx</span> ~]$ sudo ./injector libexample.so <span class="hljs-number">1952</span> | ||
[<span class="hljs-name"><span class="hljs-builtin-name">*</span></span>] Dlopen memory address: <span class="hljs-number">0</span>x7fa06a5b0700 | ||
[<span class="hljs-name"><span class="hljs-builtin-name">*</span></span>] Found library path: libexample.so | ||
[<span class="hljs-name"><span class="hljs-builtin-name">*</span></span>] Library injected successfully! | ||
[<span class="hljs-name"><span class="hljs-builtin-name">*</span></span>] Resumed the target process: <span class="hljs-number">1952</span> | ||
</code></pre><h3 id="my-telegram-channel-https-t-me-quasquaswexinvoke-3">My Telegram <a href="https://t.me/quasquaswexinvoke">channel</a><3</h3> |