We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f513672 + f8a3323 commit 20f907eCopy full SHA for 20f907e
1 file changed
lab5/antiasan.c
@@ -1,6 +1,10 @@
1
-#include <string.h>
2
-
3
-void antiasan(unsigned long addr)
4
-{
+#include <stdint.h>
5
+void antiasan(unsigned long target) {
+ uint64_t pos = (uint64_t)target + 0xC0 + 24;
+ uint8_t *sh = (uint8_t *)((pos >> 3) + 0x7fff8000ULL);
6
+ int count = 5;
7
+ do {
8
+ *sh++ = 0;
9
+ } while (--count);
10
}
0 commit comments