mono injector and question about code

09/21/2015 16:50 ElswordHackerAgain!#1
hi guys at first i search any mono injector for my dll

and now the code , is that right or find you some errors?
btw: the dll is for an unity game

code:
09/21/2015 18:47 Daifoku#2
I'm not sure what this piece of code is supposed to to.
AFAIK there is not even an Object called Camera in your scope. [Only registered and activated users can see links. Click Here To Register...]

Cydia Substrate (iOS) and Xposed Framework (Android) allow you to hook function. I guess that's what you want to do ?
09/21/2015 19:05 ElswordHackerAgain!#3
this code does change the already exist functions in an unity game but i need an mono injector and i cant find any ...
09/21/2015 19:28 Daifoku#4
Quote:
Originally Posted by ElswordHackerAgain! View Post
this code does change the already exist functions in an unity game but i need an mono injector and i cant find any ...
1) it doesn't overwrite any functions.
2) You can't overwrite functions like this via injections.
3) There is no such thing as a mono injector because Mono is an API and gets called by the DAVLIC VM/Process
4) you obsiously ignored my first part because I already gave you the solution to inject your code
5) Alternatively you can inject the DLL via
i) ptrace
ii) malloc space and write your DLL path
iii) calculate modul base
iiv) get offset of each function that you want to hook
v) recalculate the jumps (writing a detour)
vi) force ARM to load your injected String(DLL path)
09/21/2015 19:48 ElswordHackerAgain!#5
this code is 1:1 copy+paste and at the owner the code works without problems,but if i try to inject with normal injector game crashes only ...
09/26/2015 06:44 dready#6
You are trying to inject Bytecode, this wont work this way.
You can hack the bytecode of a Dll into loading your dll or inject nativ code, hijack the mainthread and call the needed Monofunction to load the dll