Skip to content

[LAB5] 313704803 #370

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: 313704803
Choose a base branch
from
12 changes: 8 additions & 4 deletions lab5/antiasan.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
#include <string.h>

void antiasan(unsigned long addr)
{
#include <stdint.h>

void antiasan(unsigned long target) {
uint64_t pos = (uint64_t)target + 0xC0 + 24;
uint8_t *sh = (uint8_t *)((pos >> 3) + 0x7fff8000ULL);
int count = 5;
do {
*sh++ = 0;
} while (--count);
}
Loading