|
unit UtGetUN;
interface
uses
Classes,SysUtils;
type
TGetUn = class(TThread)
private
{ Private declarations }
protected
rs:string;
procedure Execute; override;
public
constructor Create(rss:string);
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 TGetUn.UpdateCaption;
begin
Form1.Caption := 'Updated in a thread';
end; }
{ TGetUn }
Constructor TGetUn.create(rss:string);
begin
rs:=rss;
inherited Create(false);
end;
destructor TGetUn.Destroy;
begin
inherited Destroy;
end;
procedure TGetUn.Execute;
var
i:integer;
UserName:string;
TF:TextFile;
begin
freeonterminate:=true;
Assign(TF,'Username.txt');
if not FileExists('Username.txt') then
Rewrite(TF)
else
Append(TF);
i:=pos('menu=viewuser&username=',rs);
while i>1 do
begin
delete(rs,1,i+Length('menu=viewuser&username=')-1);
i:=pos(''')>',rs);
Username:=copy(rs,1,i-1);
writeln(TF,Username);
FmMain.Memo1.Lines.Add(Username);
i:=pos('menu=viewuser&username=',rs);
end;
closeFile(tf);
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 |