[Tool/Web/Other] cHook - c Code in pwn
#1

cHook

this is work in process, so I am open for suggestions

Just a small example
PHP Code:
#include <a_samp>
#include <chook> // this include forces you to compile with chook, see github
cHooktest((( // chook: namespace (not used yet)
    
int gInt 4;
    
CHOOK_PAWN myfunc(aFloatb) {
        return 
gInt;
    }
)))
main() { // at the moment it is myfunc, in a upcoming version it will be test::myfunc
    
printf("%d"myfunc(13.0)); // should print "8" (1 + 3 + 4)

Note: This version is limited to basic code, any external function will crash your server

Download and readme => github

Tested on windows, with g++ and objdump
Reply


Messages In This Thread
cHook - c Code in pwn - by Nero_3D - 23.11.2017, 00:42
Re: cHook - c Code in pwn - by Marllun - 23.11.2017, 03:49
Re: cHook - c Code in pwn - by PatrickGTR - 23.11.2017, 09:46

Forum Jump:


Users browsing this thread: 1 Guest(s)