<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[DDL Injection]]></title><description><![CDATA[<p>Hallo ich lese hier immer wieder etwas über &quot;DDL Injection&quot; aber was genau macht man da und wofür braucht man das ?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/239339/ddl-injection</link><generator>RSS for Node</generator><lastBuildDate>Mon, 06 Apr 2026 14:31:37 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/239339.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 22 Apr 2009 06:39:45 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to DDL Injection on Wed, 22 Apr 2009 06:39:45 GMT]]></title><description><![CDATA[<p>Hallo ich lese hier immer wieder etwas über &quot;DDL Injection&quot; aber was genau macht man da und wofür braucht man das ?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1699504</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1699504</guid><dc:creator><![CDATA[ddl]]></dc:creator><pubDate>Wed, 22 Apr 2009 06:39:45 GMT</pubDate></item><item><title><![CDATA[Reply to DDL Injection on Wed, 22 Apr 2009 07:00:29 GMT]]></title><description><![CDATA[<p>Eine einfache Methode um Code in einen (fremden) Prozess einzuschleusen.<br />
Dies könnte so aussehen:</p>
<ol>
<li>Speicher im fremden Prozess allozieren</li>
<li>Vollen Pfad der DLL reinschreiben</li>
<li>CreateRemoteThread() mit der Adresse von LoadLibraryA() und dem eben allozierten Speicher als Parameter aufrufen</li>
<li>Auf den Thread warten &amp; alles Aufräumen</li>
</ol>
]]></description><link>https://www.c-plusplus.net/forum/post/1699509</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1699509</guid><dc:creator><![CDATA[Clash]]></dc:creator><pubDate>Wed, 22 Apr 2009 07:00:29 GMT</pubDate></item><item><title><![CDATA[Reply to DDL Injection on Wed, 22 Apr 2009 08:54:56 GMT]]></title><description><![CDATA[<p>Und wofür macht man das?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1699550</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1699550</guid><dc:creator><![CDATA[ddl]]></dc:creator><pubDate>Wed, 22 Apr 2009 08:54:56 GMT</pubDate></item><item><title><![CDATA[Reply to DDL Injection on Wed, 22 Apr 2009 09:03:14 GMT]]></title><description><![CDATA[<p>Clash schrieb:</p>
<blockquote>
<p>um Code in einen (fremden) Prozess einzuschleusen</p>
</blockquote>
]]></description><link>https://www.c-plusplus.net/forum/post/1699557</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1699557</guid><dc:creator><![CDATA[Clash]]></dc:creator><pubDate>Wed, 22 Apr 2009 09:03:14 GMT</pubDate></item><item><title><![CDATA[Reply to DDL Injection on Wed, 22 Apr 2009 09:47:55 GMT]]></title><description><![CDATA[<p>Ja ok ^^</p>
<p>Aber was hab ich davon wenn ich Code wo anders einschleuse ?<br />
Irgendwie hört sich das nach nicht legalen Aktionen an^^</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1699576</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1699576</guid><dc:creator><![CDATA[ddl]]></dc:creator><pubDate>Wed, 22 Apr 2009 09:47:55 GMT</pubDate></item><item><title><![CDATA[Reply to DDL Injection on Wed, 22 Apr 2009 10:20:20 GMT]]></title><description><![CDATA[<p>man könnte zum Beispiel ein Plugin für Notepad schreiben, das eine Webseite aus dem Internet lädt und dann den Quellcode im Programm anzeigt. Der Nutzen sei bei dem Beispiel zwar dahingestellt, aber es ist ja nur ein Beispiel.</p>
<p>greetz KN4CK3R</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1699592</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1699592</guid><dc:creator><![CDATA[KN4CK3R]]></dc:creator><pubDate>Wed, 22 Apr 2009 10:20:20 GMT</pubDate></item><item><title><![CDATA[Reply to DDL Injection on Wed, 22 Apr 2009 10:45:48 GMT]]></title><description><![CDATA[<p>Die Bits in deinem RAM gehören dir.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1699599</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1699599</guid><dc:creator><![CDATA[Clash]]></dc:creator><pubDate>Wed, 22 Apr 2009 10:45:48 GMT</pubDate></item><item><title><![CDATA[Reply to DDL Injection on Wed, 22 Apr 2009 10:53:05 GMT]]></title><description><![CDATA[<p>Clash schrieb:</p>
<blockquote>
<p>Die Bits in deinem RAM gehören dir.</p>
</blockquote>
<p>guter Spruch *gemerkt* <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
<p>greetz KN4CK3R</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1699604</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1699604</guid><dc:creator><![CDATA[KN4CK3R]]></dc:creator><pubDate>Wed, 22 Apr 2009 10:53:05 GMT</pubDate></item><item><title><![CDATA[Reply to DDL Injection on Wed, 22 Apr 2009 11:22:35 GMT]]></title><description><![CDATA[<p>ddl schrieb:</p>
<blockquote>
<p>Irgendwie hört sich das nach nicht legalen Aktionen an^^</p>
</blockquote>
<p>Jupp. Es gibt sehr wenig legale Anwendungsbereiche.<br />
Ein Grund, dass ich solche Threads meistens gar nicht beachte <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
<p>Meistens geht es um das Hacken von Spielen, um das (evtl. illegale) Abfangen von Tastatureingaben.<br />
Allerdings werden DLLs auch injeziert wenn es um globale Hooks geht. Hier gibt es manchmal vernünftige Anwendungsbereiche.<br />
Manchmal möchte man Programmen ene Zusatzfunktion verpassen, die es aufwertet... (oder aber auch nicht).</p>
<p>In jedem Fall nimmt in diesen Foren DLL-Injection und Hooks<br />
Just my 2 cents.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1699621</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1699621</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Wed, 22 Apr 2009 11:22:35 GMT</pubDate></item><item><title><![CDATA[Reply to DDL Injection on Wed, 22 Apr 2009 12:53:55 GMT]]></title><description><![CDATA[<p>Hört sich ganz interessant an, aber ich will nix Ilegales machen kann man auch in so einfache Programme Injecten ?</p>
<p>z.b.</p>
<pre><code class="language-cpp">#include &lt;iostream&gt;

int main()
{
std::cout&lt;&lt;&quot;hallo&quot;;
return 0;
}
</code></pre>
<p>Weil dann schau ich mir das auch mal an (:</p>
<p>Ach nochwas muss man für die Sachen gut Assembler können?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1699666</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1699666</guid><dc:creator><![CDATA[ddl]]></dc:creator><pubDate>Wed, 22 Apr 2009 12:53:55 GMT</pubDate></item><item><title><![CDATA[Reply to DDL Injection on Wed, 22 Apr 2009 13:00:31 GMT]]></title><description><![CDATA[<p>Nochmal: Du darfst mit deinen Bits machen was du willst.<br />
Zu deinen Fragen: Ja und Nein</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1699670</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1699670</guid><dc:creator><![CDATA[Clash]]></dc:creator><pubDate>Wed, 22 Apr 2009 13:00:31 GMT</pubDate></item><item><title><![CDATA[Reply to DDL Injection on Wed, 22 Apr 2009 13:39:55 GMT]]></title><description><![CDATA[<p>versteh ich nich. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1699683</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1699683</guid><dc:creator><![CDATA[ddl]]></dc:creator><pubDate>Wed, 22 Apr 2009 13:39:55 GMT</pubDate></item><item><title><![CDATA[Reply to DDL Injection on Wed, 22 Apr 2009 14:00:06 GMT]]></title><description><![CDATA[<p>ddl schrieb:</p>
<blockquote>
<p>versteh ich nich. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /></p>
</blockquote>
<p>Clash will Dir sagen:<br />
Solange Du auf Deinem Rechner (in Deinem RAM, mit Deinen Bytes, Bits etc.) arbeitest, machst Du nix illegales.<br />
Auch in so einfache Programme kann man Code injecten.<br />
Assemblerkenntnisse sind nicht erforderlich.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1699693</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1699693</guid><dc:creator><![CDATA[Belli]]></dc:creator><pubDate>Wed, 22 Apr 2009 14:00:06 GMT</pubDate></item><item><title><![CDATA[Reply to DDL Injection on Wed, 22 Apr 2009 14:10:56 GMT]]></title><description><![CDATA[<p>achso ok^^</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1699702</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1699702</guid><dc:creator><![CDATA[ddl]]></dc:creator><pubDate>Wed, 22 Apr 2009 14:10:56 GMT</pubDate></item><item><title><![CDATA[Reply to DDL Injection on Fri, 24 Apr 2009 17:18:40 GMT]]></title><description><![CDATA[<p>Kennt jemand ein Tut zu sowas?^^</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1700847</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1700847</guid><dc:creator><![CDATA[Deathly Assassin]]></dc:creator><pubDate>Fri, 24 Apr 2009 17:18:40 GMT</pubDate></item><item><title><![CDATA[Reply to DDL Injection on Sat, 25 Apr 2009 09:53:09 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">// INJECTION
//
// HANDLE processHandle = OpenProcess(...);
// string moduleFullPath = &quot;C:\\....\\my.dll&quot;;

void* remoteMemoryHandle = VirtualAllocEx(processHandle, 0, moduleFullPath.size(), MEM_COMMIT, PAGE_READWRITE);
WriteProcessMemory(processHandle, remoteMemoryHandle, moduleFullPath.c_str(), moduleFullPath.size(), 0);
FARPROC loadLibraryAddress = GetProcAddress(GetModuleHandle(&quot;KERNEL32&quot;), &quot;LoadLibraryA&quot;);
void* remoteThreadHandle = CreateRemoteThread(processHandle, 0, 0, reinterpret_cast&lt;PTHREAD_START_ROUTINE&gt;(loadLibraryAddress), remoteMemoryHandle, 0, 0);
WaitForSingleObject(remoteThreadHandle, INFINITE);
CloseHandle(remoteThreadHandle);
VirtualFreeEx(processHandle, remoteMemoryHandle, 0, MEM_RELEASE);
</code></pre>
<pre><code class="language-cpp">// EJECTION
//
// HANDLE processHandle = OpenProcess(...);
// HMODULE moduleHandle = Module32First, Module32Next, ...

FARPROC freeLibraryAddress = GetProcAddress(GetModuleHandle(&quot;KERNEL32&quot;), &quot;FreeLibrary&quot;);
void* remoteThreadHandle = CreateRemoteThread(processHandle, 0, 0, reinterpret_cast&lt;LPTHREAD_START_ROUTINE&gt;(freeLibraryAddress), moduleHandle, 0, 0);	
WaitForSingleObject(remoteThreadHandle, INFINITE);
CloseHandle(remoteThreadHandle);
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1701053</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1701053</guid><dc:creator><![CDATA[Clash]]></dc:creator><pubDate>Sat, 25 Apr 2009 09:53:09 GMT</pubDate></item><item><title><![CDATA[Reply to DDL Injection on Sat, 25 Apr 2009 12:26:05 GMT]]></title><description><![CDATA[<p>@clash:</p>
<p>du hast die abschluß-null vergessen <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1701106</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1701106</guid><dc:creator><![CDATA[tipp]]></dc:creator><pubDate>Sat, 25 Apr 2009 12:26:05 GMT</pubDate></item><item><title><![CDATA[Reply to DDL Injection on Sat, 25 Apr 2009 15:22:31 GMT]]></title><description><![CDATA[<p>Meinst du &quot;sizeof(x.c_str()) != x.size()&quot; ?<br />
Stimmt, dummer Fehler.<br />
Hmm, hat trotzdem immer funktioniert. Glück gehabt?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1701173</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1701173</guid><dc:creator><![CDATA[Clash]]></dc:creator><pubDate>Sat, 25 Apr 2009 15:22:31 GMT</pubDate></item></channel></rss>