PHP код:
Program brute;
Uses Crt;
var i,thr,thr2,pps,good,gg: Integer;
up,b,g,s: String;
src,gd,bd: TextFile;
c,z: Char;
bad,bad2,k: LongInt;
Procedure Menu;
begin
TextColor (white); GotoXY (72,25); write ('By SAVi4');
TextColor (White); GotoXY (2,2); write ('Threads: ');
TextColor (Yellow); readln (thr);
TextColor (White); GotoXY (2,3); write ('Name of uin;pass file: ');
TextColor (Yellow); readln (up);
s:=up+'.txt';
Assign (src,s);
TextColor (White); GotoXY (2,4); write ('Name of GOOD file: ');
TextColor (Yellow); readln (g);
s:=g+'.txt';
Assign (gd,s);
rewrite (gd);
Close(gd);
TextColor (White); GotoXY (2,5); write ('Name of BAD file: ');
TextColor (Yellow); readln (b);
s:=b+'.txt';
Assign (bd,s);
Rewrite (bd);
Close (bd);
TextColor (White); GotoXY (2,6); write ('Change password? (y/n) ');
Repeat
z:=readkey;
until (z=#87) or (z=#121) or (z=#110) or (z=#78);
If (z=#87) or (z=#121) then begin
TextColor (White); GotoXY (2,6); write ('Change password? (');
TextColor (LightGreen); write ('y'); TextColor (White); write ('/n)');
end;
If (z=#110) or (z=#78) then begin
TextColor (White); GotoXY (2,6); write ('Change password? (');
TextColor (White); write ('y/'); TextColor (LightRed); write ('n');
TextColor (White); write (')');
end;
GotoXY (31,23); TextColor (LightRed); write ('Press Any Key to Continue');
readkey;
end;
begin
randomize;
ClrScr;
menu;
ClrScr;
TextColor (White);
TextColor (white); GotoXY (72,25); write ('By SAVi4');
GotoXY (5,3); write ('ЙНННННННННННННННННННННННННННННН»');
For i:=1 to 7 do begin
GotoXY (5,i+3); write ('є є');
end;
GotoXY (5,10); write ('ИННННННННННННННННННННННННННННННј');
GotoXY (55,3); TextColor (7); write ('Uin;Pass list: ',up,'.txt');
GotoXY (55,4); TextColor (7); write ('Bad: ',B,'.txt');
GotoXY (55,5); TextColor (7); write ('Good: ',G,'.txt');
GotoXY (55,6); TextColor (7); write ('Change Password: ');
If (z=#87) or (z=#121) then begin
TextColor (LightGreen); write ('Yes');
end;
If (z=#110) or (z=#78) then begin
TextColor (LightRed); write ('No');
end;
GotoXY (15,22); TextColor (LightRed); Write ('S');
TextColor (White); Write (' - Start ');
TextColor (LightRed); Write ('P');
TextColor (White); Write (' - pause ');
TextColor (LightRed); Write ('T');
TextColor (White); Write (' - sTop ');
TextColor (LightRed); Write ('Esc');
TextColor (White); Write (' - Exit');
c:=#116;
Repeat
If (c=#115) or (c=#183) then begin
thr2:=thr-random(100);
k:=random(50);
bad:=bad+k;
reset (src);
Append (bd);
For i:=1 to bad do begin
readln (src,s);
If (i>bad2) then writeln (bd,s);
end;
Close (bd);
Close (Src);
bad2:=bad2+k;
gg:=random(150);
pps:=random(20)+40;
end
Else If (c=#116) or (c=#184) then begin
thr2:=0;
pps:=0;
gg:=3;
end;
TextColor (White); GotoXY (6,4); write ('Threads: ');
TextColor (Yellow); write (thr);
TextColor (White); write (' Alive: ');
TextColor (Yellow); write (thr2,' ');
If (gg=6) then begin
good:=good+1;
Append (gd);
Reset (src);
For i:=1 to bad+1 do readln (src,s);
writeln (gd,s);
bad2:=bad2+1;
Close (src);
AppEnd (gd);
end;
TextColor (White); GotoXY (6,5); write ('Bad: ');
TextColor (Yellow); write (bad);
TextColor (White); write (' Good: ');
TextColor (LightGreen); Write (good);
TextColor (White); GotoXY (6,9); write ('Speed: ');
TextColor (Yellow); write (pps);
TextColor (White); write (' PPS');
delay (200);
If keypressed then c:=readkey;
until (c=#27);
end.