<?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[Keylogger bauen]]></title><description><![CDATA[<p>Hallo Forum,</p>
<p>ich möchte einen Keylogger bauen. Könntet Ihr mir da ein bißchen helfen? Wie kann ich Tstaturereignisse und Mausereignisse global &quot;erhalten&quot;? Wenn ich mit GetAsyncKeyState in einer Schleife ständig schaue ob eine Taste gedrückt wird geht die Prozessorlast aud 100%. Ich bekomme aber alle Eingaben. Wenn ich es so mache wie in diesem Beispiel:<a href="http://www.Planet-Source-Code.com/vb/scripts/ShowCode.asp?txtCodeId=5798&amp;lngWId=3" rel="nofollow">URL</a><br />
kriege ich wieder nicht alle Tastatureingaben.</p>
<p>Habt Ihr eine Idee?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/122907/keylogger-bauen</link><generator>RSS for Node</generator><lastBuildDate>Mon, 06 Jul 2026 11:17:13 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/122907.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 11 Oct 2005 12:50:33 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Keylogger bauen on Tue, 11 Oct 2005 12:50:33 GMT]]></title><description><![CDATA[<p>Hallo Forum,</p>
<p>ich möchte einen Keylogger bauen. Könntet Ihr mir da ein bißchen helfen? Wie kann ich Tstaturereignisse und Mausereignisse global &quot;erhalten&quot;? Wenn ich mit GetAsyncKeyState in einer Schleife ständig schaue ob eine Taste gedrückt wird geht die Prozessorlast aud 100%. Ich bekomme aber alle Eingaben. Wenn ich es so mache wie in diesem Beispiel:<a href="http://www.Planet-Source-Code.com/vb/scripts/ShowCode.asp?txtCodeId=5798&amp;lngWId=3" rel="nofollow">URL</a><br />
kriege ich wieder nicht alle Tastatureingaben.</p>
<p>Habt Ihr eine Idee?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/889593</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/889593</guid><dc:creator><![CDATA[----------]]></dc:creator><pubDate>Tue, 11 Oct 2005 12:50:33 GMT</pubDate></item><item><title><![CDATA[Reply to Keylogger bauen on Tue, 11 Oct 2005 13:01:57 GMT]]></title><description><![CDATA[<p>Gehört nach WinAPI.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/889607</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/889607</guid><dc:creator><![CDATA[Sgt. Nukem]]></dc:creator><pubDate>Tue, 11 Oct 2005 13:01:57 GMT</pubDate></item><item><title><![CDATA[Reply to Keylogger bauen on Tue, 11 Oct 2005 14:42:27 GMT]]></title><description><![CDATA[<p>Hook installieren.</p>
<p>Frage, Statistik:<br />
Tausend mal gefragt, zehntausend mal beantwortet.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/889703</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/889703</guid><dc:creator><![CDATA[Genozid?]]></dc:creator><pubDate>Tue, 11 Oct 2005 14:42:27 GMT</pubDate></item><item><title><![CDATA[Reply to Keylogger bauen on Tue, 11 Oct 2005 14:51:50 GMT]]></title><description><![CDATA[<p>Dieser Thread wurde von Moderator/in <a href="http://www.c-plusplus.net/forum/profile.php?mode=viewprofile&amp;u=1819" rel="nofollow">kingruedi</a> aus dem Forum <a href="http://www.c-plusplus.net/forum/viewforum.php?f=8" rel="nofollow">Rund um die Programmierung</a> in das Forum <a href="http://www.c-plusplus.net/forum/viewforum.php?f=4" rel="nofollow">WinAPI</a> verschoben.</p>
<p>Im Zweifelsfall bitte auch folgende Hinweise beachten:<br />
<a href="http://www.c-plusplus.net/forum/viewtopic.php?t=39405" rel="nofollow">C/C++ Forum :: FAQ - Sonstiges :: Wohin mit meiner Frage?</a></p>
<p><em>Dieses Posting wurde automatisch erzeugt.</em></p>
]]></description><link>https://www.c-plusplus.net/forum/post/889715</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/889715</guid><dc:creator><![CDATA[C++ Forumbot]]></dc:creator><pubDate>Tue, 11 Oct 2005 14:51:50 GMT</pubDate></item><item><title><![CDATA[Reply to Keylogger bauen on Tue, 11 Oct 2005 14:58:27 GMT]]></title><description><![CDATA[<p>und als nachtrag <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/27a1.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--right_arrow"
      title=":arrow_right:"
      alt="➡"
    /> FAQ <a href="http://www.c-plusplus.net/forum/viewtopic-var-t-is-39383.html" rel="nofollow">http://www.c-plusplus.net/forum/viewtopic-var-t-is-39383.html</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/889722</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/889722</guid><dc:creator><![CDATA[miller_m]]></dc:creator><pubDate>Tue, 11 Oct 2005 14:58:27 GMT</pubDate></item><item><title><![CDATA[Reply to Keylogger bauen on Tue, 11 Oct 2005 15:05:57 GMT]]></title><description><![CDATA[<p>Keylogger bauen ist illegal. Tred closed.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/889726</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/889726</guid><dc:creator><![CDATA[antilog]]></dc:creator><pubDate>Tue, 11 Oct 2005 15:05:57 GMT</pubDate></item><item><title><![CDATA[Reply to Keylogger bauen on Tue, 11 Oct 2005 15:11:23 GMT]]></title><description><![CDATA[<p>OT: Nein, das ist nicht illegal, aber natürlich höchst verdächtig</p>
]]></description><link>https://www.c-plusplus.net/forum/post/889732</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/889732</guid><dc:creator><![CDATA[Rapha]]></dc:creator><pubDate>Tue, 11 Oct 2005 15:11:23 GMT</pubDate></item><item><title><![CDATA[Reply to Keylogger bauen on Thu, 13 Oct 2005 10:32:23 GMT]]></title><description><![CDATA[<p>Erstmal vielen dank für das BSP.<br />
Wenn ich es richtig sehe schickt mir eine funktion in der DLL bei jedem Tastendruck die Message 'WM_USER + 2', wobei wParam die gedrückte Taste beinhaltet. Bei einer Standard Windows anwendung sollte ich doch so den Tastendruck abfangen könne:</p>
<pre><code class="language-cpp">LRESULT CALLBACK WindowProcedure (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) {
	char *msg=&quot;  &quot;;

	switch (message) {                
	case WM_DESTROY:
		PostQuitMessage (0); 
		break;
	case WM_USER + 2:
		itoa(wParam, msg, 2);
		MessageBox(0, msg, &quot;Hallo&quot;, 0);
		break;
	default:                      
		return DefWindowProc(hwnd, message, wParam, lParam);
	}

	return 0;
}
</code></pre>
<p>So habe ich die dll gelade:</p>
<pre><code class="language-cpp">hinstDLL = LoadLibrary((LPCTSTR) &quot;hook.dll&quot;);
instkbhook = (inshook)GetProcAddress(hinstDLL, &quot;SetupHook@4&quot;);
(instkbhook)(hwnd);
</code></pre>
<p>Ich bin ein paar mal mit dem debugger durchgegangen. Es wird alles korrekt ausgeführt. Nur ich bekomme keine Messagebox zu sehen wenn ich text in der IDE eingebe...</p>
<p>Die unhook funktion setze ich am besten bei WM DESTROY.<br />
Wenn die Funktion aus der dll so definiert ist:<br />
typedef BOOL (WINAPI *delhook)(void);<br />
warum kann ich sie dann so nicht aufrufen?<br />
(delhook)(void);</p>
<p>Hier ist das gesamte Projekt für den MinGW (Gcc) Kompiler:<br />
<a href="http://www.gwebspace.de/myspace871/KL.zip" rel="nofollow">http://www.gwebspace.de/myspace871/KL.zip</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/891224</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/891224</guid><dc:creator><![CDATA[----------]]></dc:creator><pubDate>Thu, 13 Oct 2005 10:32:23 GMT</pubDate></item><item><title><![CDATA[Reply to Keylogger bauen on Thu, 13 Oct 2005 10:49:01 GMT]]></title><description><![CDATA[<p>---------- schrieb:</p>
<blockquote>
<p>Ich bin ein paar mal mit dem debugger durchgegangen. Es wird alles korrekt ausgeführt. Nur ich bekomme keine Messagebox zu sehen wenn ich text in der IDE eingebe...</p>
</blockquote>
<p>in wm_user+2 wird hineingesprungen?</p>
<p>---------- schrieb:</p>
<blockquote>
<p>Die unhook funktion setze ich am besten bei WM DESTROY.<br />
Wenn die Funktion aus der dll so definiert ist:<br />
typedef BOOL (WINAPI *delhook)(void);<br />
warum kann ich sie dann so nicht aufrufen?<br />
(delhook)(void);</p>
</blockquote>
<p>hast du die adresse der funktion aus der dll geholt? ist diese gültig?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/891240</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/891240</guid><dc:creator><![CDATA[miller_m]]></dc:creator><pubDate>Thu, 13 Oct 2005 10:49:01 GMT</pubDate></item><item><title><![CDATA[Reply to Keylogger bauen on Thu, 13 Oct 2005 13:46:48 GMT]]></title><description><![CDATA[<p>miller_m schrieb:</p>
<blockquote>
<p>in wm_user+2 wird hineingesprungen?</p>
</blockquote>
<p>Die Messagebox erscheint nicht... es wird nicht hineingesprungen.</p>
<p>miller_m schrieb:</p>
<blockquote>
<p>hast du die adresse der funktion aus der dll geholt? ist diese gültig?</p>
</blockquote>
<p>Die Funktionspointer sind gültig.</p>
<p>Wie sieht der Funktionspointer zu dieser Funktion aus:<br />
EXPORT BOOL CALLBACK UninstallHook (void) {}</p>
<p>Wenn ich es so mache:<br />
typedef BOOL (WINAPI *delhook)(void);</p>
<p>kann ich ihn so nicht aufrufen:<br />
(delkbhook)();</p>
]]></description><link>https://www.c-plusplus.net/forum/post/891403</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/891403</guid><dc:creator><![CDATA[--------]]></dc:creator><pubDate>Thu, 13 Oct 2005 13:46:48 GMT</pubDate></item><item><title><![CDATA[Reply to Keylogger bauen on Thu, 13 Oct 2005 13:48:31 GMT]]></title><description><![CDATA[<p>Das mit der Funktionsdefinition hat sich erledigt (habe ebend zu schnell absenden gedrückt).</p>
<p>Aber ich empfange nicht die Message wm_user+2</p>
]]></description><link>https://www.c-plusplus.net/forum/post/891405</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/891405</guid><dc:creator><![CDATA[---------]]></dc:creator><pubDate>Thu, 13 Oct 2005 13:48:31 GMT</pubDate></item><item><title><![CDATA[Reply to Keylogger bauen on Fri, 14 Oct 2005 07:30:40 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">LRESULT CALLBACK KeyboardHookProc (int nCode, WPARAM wParam, LPARAM lParam){
    if (nCode == HC_ACTION){
        if ((lParam &amp; 1073741824) != 1073741824){
		MessageBox(0, &quot;1&quot;, &quot;&quot;, 0);
            SendMessage ((HWND) hWindow, (WM_USER + 2), (WPARAM) wParam, (LPARAM) lParam) ;
		MessageBox(0, &quot;2&quot;, &quot;&quot;, 0);
        }
    }

	 MessageBox(0, &quot;3&quot;, &quot;&quot;, 0);
    return CallNextHookEx (hhkHook, nCode, wParam, lParam) ;
}
</code></pre>
<p>Warum wird bei diesem Code niemals die MEssagebox mit der 2 angezeigt? (Der Code ist aus der Vorlage)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/892015</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/892015</guid><dc:creator><![CDATA[---------]]></dc:creator><pubDate>Fri, 14 Oct 2005 07:30:40 GMT</pubDate></item><item><title><![CDATA[Reply to Keylogger bauen on Fri, 14 Oct 2005 07:55:44 GMT]]></title><description><![CDATA[<p>das hatte ich auch schon mal das problem mit dem code weiss aber nicht mehr was das war. irgendwas komisches war auch mit der CALLBACK definition der funktionen aber ich glaub das hatte damit nix zu tun</p>
]]></description><link>https://www.c-plusplus.net/forum/post/892034</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/892034</guid><dc:creator><![CDATA[2q]]></dc:creator><pubDate>Fri, 14 Oct 2005 07:55:44 GMT</pubDate></item></channel></rss>