freehuntx / frida-mono-api

All the mono c exports, ready to be used in frida!
MIT License
68 stars 23 forks source link

Help with javascript specifics (int passed by value) #8

Closed vletoux closed 3 years ago

vletoux commented 4 years ago

Thanks for sharing this code.

Maybe this is something completely stupid, but I'm unable to call a function asking for an int. I can call every function with an object, string, etc but not this. With an int, it ends with "invalid argument'

Example: image

I managed to understand my problem as javascript pass int by value, and not by reference. Indeed, in the c mono documentation that I read, every int is passed by reference (&i)

If there is a trick, please be kind to add a remark on this github. Maybe add an helper like you did with strings.

freehuntx commented 3 years ago

Im currently reworking "frida-mono" and it will contain everything needed to work with mono. This repo will become obsolete when thats done. You can follow the current state in this branch: https://github.com/freehuntx/frida-mono/tree/feature/v1

I wont concentrate on fixing things here since im not happy with the codebase. Keep an eye on frida-mono :)

vletoux commented 3 years ago

Thanks for your excellent work on this