Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PageHook Duo CPU is Not Work #7

Open
iKunCai opened this issue Oct 6, 2016 · 5 comments
Open

PageHook Duo CPU is Not Work #7

iKunCai opened this issue Oct 6, 2016 · 5 comments

Comments

@iKunCai
Copy link

iKunCai commented Oct 6, 2016

PageHook Duo CPU is Not Work
And Unload is Dead

@iKunCai
Copy link
Author

iKunCai commented Oct 6, 2016

and Release is Not Work = =
Debug is Work

@iKunCai
Copy link
Author

iKunCai commented Oct 6, 2016

qq 20161006143454

@YHVHvx
Copy link

YHVHvx commented Feb 23, 2017

If trouble exist with Core2Duo microprocessor I wanna say u that it not supported by CPU architecture limitation. For using HyperBone your CPU must support Intel EPT technologies. EPT start supporting from Nehalem+ arch.

@isdebug
Copy link

isdebug commented Apr 12, 2018

@MaMyYyY Disable C/C++ optimizations, and then regenerate it.

@isdebug
Copy link

isdebug commented Apr 12, 2018

@MaMyYyY

#pragma optimize( "", off )
VOID TestPageHook() {
UCHAR buf[32] = { 0 };
PVOID pFn = (PVOID)TestFn;
RtlCopyMemory (buf, pFn, 16);
DPRINT ("HyperBone: CPU %d: %s: Buffer contents: 0x%p, Call result 0x%X\n", CPU_IDX, FUNCTION, * (PULONG64)buf, TestFn (100, 5));
PHHook (pFn, (PVOID)hkTestFn);
RtlCopyMemory (buf, pFn, 16);
DPRINT ("HyperBone: CPU %d: %s: Buffer contents: 0x%p, Call result 0x%X\n", CPU_IDX, FUNCTION, * (PULONG64)buf, TestFn (100, 5));
PHRestore (pFn);
RtlCopyMemory (buf, pFn, 16);
DPRINT ("HyperBone: CPU %d: %s: Buffer contents: 0x%p, Call result 0x%X\n", CPU_IDX, FUNCTION, * (PULONG64)buf, TestFn (100, 5));
}
#pragma optimize( "", on )
You try this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants