Search found 22 matches

by mitzi
Tue Nov 10, 2009 8:35 pm
Forum: madCodeHook
Topic: Windows 7 - SendIpcMessage problem
Replies: 2
Views: 3230

Windows 7 - SendIpcMessage problem

I'm using madCodeHook 2.2k and have problems with SendIpcMessage. i send message from exe running under admin account to service running under LocalSystem account. i tested it and sent message every 5 seconds and from 10 messages only one was delivered/received. repeatedly. you announced that this p...
by mitzi
Fri May 15, 2009 12:52 pm
Forum: madCodeHook
Topic: CreateProcessXXX hooking in Windows 7
Replies: 23
Views: 32257

I now tested it under Windows 7 RC1 and everything seems to be ok. So maybe it was some issue in BETA, and Yes in Vista all works fine.
by mitzi
Tue Apr 28, 2009 9:13 pm
Forum: madCodeHook
Topic: CreateProcessXXX hooking in Windows 7
Replies: 23
Views: 32257

yes it does. no "IsAllowed" dialog is displayed.
by mitzi
Tue Apr 28, 2009 3:03 pm
Forum: madCodeHook
Topic: CreateProcessXXX hooking in Windows 7
Replies: 23
Views: 32257

CreateProcessXXX hooking in Windows 7

I tried to hook all process creation API HookAPI('kernel32.dll', 'CreateProcessW', @CreateProcessWCallback, @CreateProcessWNext); HookAPI('kernel32.dll', 'CreateProcessA', @CreateProcessACallback, @CreateProcessANext); HookAPI('kernel32.dll', 'WinExec', @WinExecCallback, @WinExecNext ); HookAPI('adv...
by mitzi
Mon Apr 27, 2009 7:16 pm
Forum: madCodeHook
Topic: Vista and UAC weird problem
Replies: 26
Views: 22419

well, GetModuleFileNameW/A really blocks UAC if it is called from NtTerminateProcess callback. But i succesfully used following function GetModuleFileNameExW(hProcess : THandle; module : HInst; FileName : PWideChar; size : Integer) : Integer; stdcall; external 'psapi.dll' name 'GetModuleFileNameExW'...
by mitzi
Mon Apr 27, 2009 1:24 pm
Forum: madCodeHook
Topic: Vista and UAC weird problem
Replies: 26
Views: 22419

To cyberproject: yes i hook NtTerminateProcess and TerminateProcess both in my app. Now my monitor application hooks following APIs with no UAC problems: HookAPI('ntdll.dll','NtTerminateProcess',@NtTerminateProcessCallback,@NtTerminateProcessNext); HookAPI('kernel32.dll','TerminateProcess',@Terminat...
by mitzi
Mon Apr 27, 2009 9:53 am
Forum: madCodeHook
Topic: Vista and UAC weird problem
Replies: 26
Views: 22419

Confirming problem with HookProcessTermination demo. It seems that any interception to process creation with privs elevation causes its aborting. It is probably done by MS to prevent to hack or avoid this procedure.
by mitzi
Fri Apr 24, 2009 1:15 pm
Forum: madCodeHook
Topic: Vista and UAC weird problem
Replies: 26
Views: 22419

UAC problem reason found

I hardly spyed how Vista manages process creation when elevation is needed and i found following things that caused my problems with UAC. When user starts any process that needs elevation, this process is immediatelly terminated by system (!) - this is the problem. if you ask any information that de...
by mitzi
Thu Apr 16, 2009 8:34 pm
Forum: madCodeHook
Topic: Vista and UAC weird problem
Replies: 26
Views: 22419

i found reason: i used CurrentUser.Name/Domain (IAccount) in hook callback. if i removed it, then problem disappeared. And be sure you do not use no (or minimum) function from Delphi (e.g. from SysUtils etc.) and do not use try...finally..end and try..except..end constructions. they cause problems a...
by mitzi
Tue Apr 14, 2009 6:47 pm
Forum: madCodeHook
Topic: Vista and UAC weird problem
Replies: 26
Views: 22419

i'm facing the same problem. but i hook CreateProcessA, CreateProcessW and WinExec. in other dll i hook print routines (the same as in print monitor demo by madshi) and everything does work. strange. found no solution yet. just for info: i tried SAFE_HOOKING with no luck and i do NOT use SYSTEM_PROC...
by mitzi
Sat Nov 29, 2008 10:17 am
Forum: madRemote
Topic: File copy in RemoteExecute
Replies: 4
Views: 18097

Is any chance to use RemoteExecute with System (PID=4) process? I tried it but RemoteExecute returns false and code is not executed.
by mitzi
Fri Nov 28, 2008 8:21 pm
Forum: madRemote
Topic: File copy in RemoteExecute
Replies: 4
Views: 18097

well that's it. And try..finally...end caused crash too. Thanx Nico.
by mitzi
Fri Nov 28, 2008 3:02 pm
Forum: madRemote
Topic: File copy in RemoteExecute
Replies: 4
Views: 18097

File copy in RemoteExecute

i'm trying to copy any file in context of another process, but affected process crashes on remote execute. Here's code: program RemoteTest; uses Windows, SysUtils, madRemote, madKernel; type PParameters = ^TParameters; TParameters = record Source, Dest: array[0..MAX_PATH] of char; end; function Exec...
by mitzi
Wed May 07, 2008 1:13 pm
Forum: madCodeHook
Topic: System wide api hook (CreateProcessW) affects Office apps
Replies: 3
Views: 3852

hm so i maybe found problem. i use Process(processInfo.hProcess).Session to get session under process is run. if i remove it, everything is ok. But still asking for name and domain by calling KernelObjectSecurity(processInfo.hProcess).Owner.Name and KernelObjectSecurity(processInfo.hProcess).Owner.D...
by mitzi
Wed May 07, 2008 12:51 pm
Forum: madCodeHook
Topic: System wide api hook (CreateProcessW) affects Office apps
Replies: 3
Views: 3852

If you want source of my dll contact me on mitec@atlas.cz, it is possible.