Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int hacker = 0;
- int func_loc = (int)(*curr_func(L)->c.f);
- if ((int)func_loc >= aslr(0x423600)) {
- printConsole("You were caught trying to push a CClosure that is not within our application's range.");
- hacker = 1;
- }
- const char i3_8opcode[8] = { 0xCC, 0xCC, 0xCC, 0xCC, 0xCC, 0xCC, 0xCC, 0xCC };
- if (memcmp((void*)(func_loc), i3_8opcode, sizeof(i3_8opcode)) == 0) {
- printConsole("You were caught trying to use VEH to bypass our internal checks.");
- hacker = 1;
- }
- if (!hacker) {
- n = (*curr_func(L)->c.f)(L); /* do the actual call */
- }
- else {
- luaL_error(L, "Do not hack!");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement