|
unit UtStart;
interface
uses
Classes,Idhttp,IdHeaderList,SysUtils,UtgETun;
type
TStart = class(TThread)
private
{ Private declarations }
protected
idp:TidHttp;
sn,en:integer;
GETUN:TGetUN;
S:TIdHeaderList;
procedure Execute; override;
public
constructor Create(sns,ens: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 TStart.UpdateCaption;
begin
Form1.Caption := 'Updated in a thread';
end; }
{ TStart }
constructor TStart.Create(sns,ens:integer);
begin
sn:=sns;
en:=ens;
s:=TIdHeaderList.Create;
idp:=TidHttp.Create(nil);
inherited Create(false);
end;
destructor TStart.Destroy;
begin
idp.Free;
s.Free;
inherited destroy;
end;
procedure TStart.Execute;
VAR
rs:string;
i:integer;
begin
freeonterminate:=true;
s.Text:='Cookie: nowtime='+formatDateTime('yyyymmddhhmmss',now)+
'; cometime=16_00_59__15_57_58_0; clicks=20020711142129; style=';;
idp.Request.CustomHeaders:=s;
for i:=sn to en do
begin
FmMain.Memo2.Lines.Add(IntToStr(i));
try
rs:=idp.Get('http://bbs.netxeyes.org/cgi-bin/bbs3000/memberlist.cgi?page='+IntToStr(i));
GetUn:=TGetUn.Create(rs); //读取HTML代码后则交给分析用户名线程处理
except
try
sleep(300); //如果打开网页失败则睡眠300MS再继续
rs:=idp.Get('http://bbs.netxeyes.org/cgi-bin/bbs3000/memberlist.cgi?page='+IntToStr(i));
GetUn:=TGetUn.Create(rs);
except
FmMain.Memo3.Lines.Add(IntToStr(i)+'打开网页失败');
continue;
end;
end;
end;
FmMain.Memo3.Lines.Add(IntToStr(sn)+' - '+IntToStr(en)+' 完毕');
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 |