Skip to content

Commit

Permalink
AHAHAH
Browse files Browse the repository at this point in the history
  • Loading branch information
hinqiwame authored Apr 12, 2023
1 parent 838f724 commit ba09300
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 41 deletions.
41 changes: 0 additions & 41 deletions README.md

This file was deleted.

29 changes: 29 additions & 0 deletions index.html
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">&lt;<span class="hljs-name">lib_path</span>&gt;</span> <span class="hljs-tag">&lt;<span class="hljs-name">pid</span>&gt;</span>
</code></pre><p>Where <code>&lt;lib_path&gt;</code> is the path to the shared library you want to inject and <code>&lt;pid&gt;</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>&lt;3</h3>

0 comments on commit ba09300

Please sign in to comment.