Comments (13)
Hi. Pure C sample no but there are C++ ones.
from deviare2.
Thank you @mxmauro
I am looking at the CTest sample. Command line parameters state that there is an option to add a Custom handler for each hook:
-ch=file: Custom handler to add to each hook (can be specified more than once).�
Is there a sample for this custom handler?
Regards,
from deviare2.
Hi @sefai, yes you have RegistryPlugin sample. On C# you have Registry and FilePlugin. You can use them on CTest too.
from deviare2.
@mxmauro I am sorry, but I couldn't understand what that plugin is doing.
I want to change the returned value (an _out parameter) from a kernel32 method call. How can I do this? Is there any guide or documentation that I can read so that I will stop distracting you?
Regards,
from deviare2.
@mxmauro OK, I am making progress, I successfully changed the parameter. Now, I am trying to store some value on PreCall and use that value on PostCall. I see that there is WriteIntercallData and ReadIntercallData for that purpose, but I couldn't find any samples on how to use them. Can you help?
PS: By the way, the from at address http://forum.nektra.com/forum/ seems to be down. I can only search on it using Google Cache. Are you guys aware of it?
Regards,
from deviare2.
Still Dead! Google cache is now empty! WayBackMachine has no info! Terrific resource lost!
from deviare2.
@bo3b I will look into it.
from deviare2.
Awesome, thank you for responding. I was worried that you had abandoned Deviare.
from deviare2.
nektra forum is still has the issue [SQL ERROR as above mentioned]. could anybody fix the issue, please?
Could you please provide C++ sample for custom dll (INktSpyMgr::LoadCustomDll) with functions exported and how to call & pass the string parameter in C++ client?
Currently I did the following:
custom DLL: exported function
__declspec(dllexport) HRESULT WINAPI fnCustom1(SIZE_T nParam1){
MessageBox(...);
}
in the client loaded the dll, (I can see load and unload events from LogPrint()), calling like,
CComVariant vtParam;
vtParam = L"This is text from client";
and calling lpSpyMgr->CallCustomApi() with (&vtParam) as one of parameter.
But this one not working. If I export function without parameters, I can call the function and see the message box from target process.
Thanks.
from deviare2.
Could anybody please reply?
from deviare2.
Hi @vlucky,
You must provide a VT_I#/VT_UI#/VT_INT/VT_UINT
or an array of VT_I#/VT_UI#
(up to four items). You can create an array with SafeArrayCreateVector
... i.e.:
VARIANT vt;
vt.vt = VT_ARRAY | VT_UINT;
vt.parray = SafeArrayCreateVector(VT_UINT, 0, 4)
And use SafeArray apis to store the values in the array before calling CallCustomApi
from deviare2.
Thanks @mxmauro ,
might be dumb question, but can I pass string too using above method?
from deviare2.
No. Only integer values that the called function will receive. If you need to pass complex data, use VirtualAllocEx and WriteProcessMemory to write the data in the target process and pass the pointer as the parameter.
from deviare2.
Related Issues (20)
- winword hangs at startup HOT 12
- Missing external. HOT 1
- Placing hooks from .net dll cause hook connection to die
- how to hook fastprox.dll? HOT 7
- Nektra.Deviare2 not found HOT 2
- logging/printing all api calls of a hooked process
- Hooking undocumented functions and adding new functions into nektra's database HOT 21
- NktSpyMgr does not return process HOT 6
- Antivirus blocks hooking HOT 3
- Question about Deviare-InProc HOT 1
- How to Hook a process as soon as it starts and check if the hook is active.
- online documentation gone
- contacts page does not work HOT 1
- Deviare DB rebuilt error HOT 1
- appcrash on "Remove All Hooks" with CSharpConsole HOT 5
- CNktDbModuleImpl::DbFunctions
- sample project of external file access monitor HOT 1
- How to hook `sublime` function? HOT 1
- [Python] how to use CreateHookForAddress? HOT 1
- Compiling 'CRegistryPlugin' for 'x86'
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from deviare2.