aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortoni <toni@devlap.local>2015-09-23 16:16:26 +0200
committertoni <toni@devlap.local>2015-09-23 16:16:26 +0200
commit6037dac7c9f0cdf889c7a6ba5bab6611b7ed9d5b (patch)
tree291d767c08468407c494c772a482631138575925
parentba60e5853f3c655245229c7abf1a8e25922a127a (diff)
funcjmp_ext
-rw-r--r--funcjmp_ext.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/funcjmp_ext.c b/funcjmp_ext.c
index 70f757a..6174bec 100644
--- a/funcjmp_ext.c
+++ b/funcjmp_ext.c
@@ -28,11 +28,16 @@
int hookable(char *arg0, int arg1, int arg2)
{
asm("label:");
- INTEL_ASM("nop; nop; nop");
+ INTEL_ASM("nop; nop; nop; pop eax; pop eax");
asm("jmp end");
return 0;
}
+int testfkt(void *param)
+{
+ printf("Subroutine ..\n");
+}
+
int main(int argc, char **argv)
{
asm("push %0" : : "m" (hookable));
@@ -40,6 +45,8 @@ int main(int argc, char **argv)
asm("jmp label; \
end:");
//hookable(NULL, 0x8, 0x9);
+ printf("Hello World!\n");
+ testfkt(NULL);
return 66;
}