spoofing-office-macro icon indicating copy to clipboard operation
spoofing-office-macro copied to clipboard

Cant work

Open Airboi opened this issue 5 years ago • 8 comments

Hi

I fix the issues and tried in 32bit and 64bit office at Windows10 Environment

But I found result = NtQueryInformationProcess(newProcessHandle, 0, pbi, Len(pbi), size) doesn't work. the result is FALSE

And the new Process still be a childProcess of WINWORD.EXE. Can you help me

By the way, the function to getPid is not work. I used WMI to get Pid

Function getProcessId(ByVal name As String)
    Dim objServices As Object, objProcessSet As Object, Process As Object
    Dim tmp As Integer
    Set objServices = GetObject("winmgmts:\\.\root\CIMV2")
    Set objProcessSet = objServices.ExecQuery("SELECT ProcessID, name FROM Win32_Process WHERE name = " & Chr(&H22) & name & Chr(&H22), , 48)
    For Each Process In objProcessSet
        tmp = Process.ProcessID
    Next
    getProcessId = tmp
End Function

Thanks

Airboi avatar Mar 15 '19 03:03 Airboi

Hi,

Thanks for reporting. Could you try setting a breakpoint just after NtQueryInformationProcess is run, and look at the value of err.LastDllError? It should give you an error number that you can make sense of using https://docs.microsoft.com/en-us/windows/desktop/Debug/system-error-codes--0-499-

christophetd avatar Mar 15 '19 15:03 christophetd

Hi

I got 0 of err.LastDllError(means no error?), and NtQueryInformationProcess still return 0. How could it happen?

Airboi avatar Mar 18 '19 06:03 Airboi

Did you end up finding a solution?

christophetd avatar Apr 04 '20 12:04 christophetd

No... I didn't

Airboi avatar Apr 14 '20 02:04 Airboi

when I try to run it and press debug keep highlighting this line:

result = NtQueryInformationProcess(newProcessHandle, 0, pbi, Len(pbi), size)

Chantal2019 avatar Jun 27 '20 18:06 Chantal2019

Screen Shot 2020-06-27 at 3 38 23 PM

Chantal2019 avatar Jun 27 '20 19:06 Chantal2019

is there any fix?

Jay1508 avatar Apr 18 '22 17:04 Jay1508

Hello,

Sorry, I've not been maintaining this code for quite some time. If someone knows of a fix, I gladly take a contribution, thanks!

christophetd avatar Apr 19 '22 09:04 christophetd