Advertisement
Guest User

Untitled

a guest
Feb 27th, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. void* my_func = malloc(4k);
  2.  
  3. imulq $2, %rcx, %rcx
  4. addq $5, %rcx
  5. movq %rcx, %rax
  6. retq
  7.  
  8. strcpy((char*)my_func, "x48x6BxC9x02x48x83xC1x05x48x89C8C3");
  9.  
  10. typedef int (*func_type)(int);
  11. for(t=0; t<N; t++)
  12. s=(func_type)(my_func)(t);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement