Pwnd
2006-03-25 21:35:51
Learn, love, leach.
Post bugs and shit here and if you need any help understanding it message me or post here again.
You may use this, just give credits. I'll hunt your ass down otherwise.
Post bugs and shit here and if you need any help understanding it message me or post here again.
You may use this, just give credits. I'll hunt your ass down otherwise.
{//////////////////////////////////////////////////////////////////////////////
Auto-Login by Pwnd
Version 1.0
Msn: Dirtywonker@yahoo.com
AIM: Dirtywonker
This is mainly for learning purposes.
///////////////////////////////////////////////////////////////////////////////}
program AutoLogin;
{.include SRL/SRL.Scar}
const
UserPwnd = '';
PassPwnd = '';
Tab = ' ';
procedure RWait(int1, int2: integer);
begin
Wait(int1 * 100 + random(int2 * 100));
end;
function AtLoginScreen: Boolean;
var
WelcomeDTM: integer;
xa, ya: integer;
begin
WelcomeDTM := DTMFromString('78DA63DCC7C8C0A004C448E0FFFFFF601A26C' +
'A1807645543D84C503149191954359380AC62026A2E025965A86A' +
'F8057851D40000EAFC07E4');
if(FindDTM(WelcomeDTM, xa, ya, 5, 5, 515, 340))then
begin
WriteLn(Tab + 'At login screen. Loging in');
Result:= True;
end else
Result:= False;
FreeDTM(WelcomeDTM);
end;
procedure LoginPwnd;
var
Rand: integer;
xb, yb: integer;
Click, i: integer;
begin
if(AtLoginScreen)then
begin
Rand:= random(5);
if(Rand = 1)then
begin
xb:= 405;
yb:= 282;
end else
if(Rand = 2)then
begin
xb:= 458;
yb:= 296;
end else
if(Rand = 3)then
begin
xb:= 510;
yb:= 290;
end else
if(Rand = 4)then
begin
xb:= 426;
yb:= 302;
end else
if(Rand = 5)then
begin
xb:= 492;
yb:= 283;
end else
begin
xb:= 416;
yb:= 295;
end;
Mouse(xb, yb, 2, 2, True);
RWait(2, 2);
SendText(UserPwnd + chr(13));
RWait(1, 3);
SendText(PassPwnd);
RWait(3, 4);
if(Rand = 1)then
begin
xb:= 256;
yb:= 310;
end else
if(Rand = 2)then
begin
xb:= 347;
yb:= 315;
end else
if(Rand = 3)then
begin
xb:= 302;
yb:= 322;
end else
if(Rand = 4)then
begin
xb:= 359;
yb:= 322;
end else
if(Rand = 5)then
begin
xb:= 329;
yb:= 312;
end else
begin
xb:= 353;
yb:= 324;
end;
Mouse(xb, yb, 2, 2, True);
Click:= BitmapFromString(1, 1, '480200');
repeat
RWait(5, 5);
i:= i + 1;
until((i = 10) or (FindBitmap(Click, xb, yb)))
if(i = 10)then
begin
WriteLn(Tab + +'Error, shutting down');
TerminateScript;
end else
if(FindBitmap(Click, xb, yb))then
begin
Mouse(518, 333, 10, 10, True);
WriteLn(Tab + 'Login sucessful, I hope');
end;
end;
end;
begin
LoginPwnd;
end.