-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhellbyte.c
57 lines (33 loc) · 1.68 KB
/
hellbyte.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#include <stdio.h>
#include <stdlib.h>
int main(){
uint8_t * ptr = (uint8_t *)calloc(sizeof(uint32_t), sizeof(uint32_t));
*ptr = sizeof(uint32_t) << sizeof(uint32_t) | (sizeof(uint32_t) + sizeof(uint32_t));
*++ptr = ~( (sizeof(uint64_t) << sizeof(uint8_t)) | sizeof(uint64_t) | sizeof(uint16_t));
*++ptr = *++ptr = (sizeof(uint32_t) | sizeof(uint64_t)) * (sizeof(uint64_t) + sizeof(uint8_t) );
*++ptr = ~sizeof(uint8_t) | sizeof(uint8_t);
*(ptr + sizeof(uint16_t)) = ~*ptr | (sizeof(uint64_t) << sizeof(uint16_t));
*(ptr + sizeof(uint32_t))
= *(ptr + sizeof(uint32_t) + sizeof(uint16_t))
= *ptr;
*++ptr = sizeof(uint64_t) + sizeof(uint16_t) + sizeof(uint8_t) << sizeof(uint16_t);
++ptr;
*++ptr = ~sizeof(uint64_t);
++ptr;
*++ptr = ~(sizeof(uint64_t) | sizeof(uint32_t) | sizeof(uint8_t));
*++ptr = *(ptr - sizeof(uint64_t));
*++ptr = sizeof(uint32_t) | (sizeof(uint32_t) | sizeof(uint16_t)) << sizeof(uint32_t);
*++ptr = sizeof(uint64_t) << sizeof(uint16_t) | sizeof(uint8_t);
*++ptr = sizeof(uint16_t) << sizeof(uint16_t) | sizeof(uint16_t);
*++ptr = (sizeof(uint64_t) | sizeof(uint8_t)) << sizeof(uint32_t);
*(ptr + sizeof(uint8_t)) = sizeof(uint64_t) << sizeof(uint32_t);
*((uint16_t *)ptr - sizeof(uint8_t) - sizeof(uint16_t)) &= ~*(uint16_t *)ptr;
*((uint16_t *)ptr - sizeof(uint32_t)) &= ~*(uint16_t *)ptr;
*((uint16_t *)ptr - sizeof(uint8_t) - sizeof(uint32_t)) &= ~*(uint16_t *)ptr;
*((uint16_t *)ptr - sizeof(uint8_t) - sizeof(uint16_t) - sizeof(uint32_t)) &= ~*(uint16_t *)ptr;
*ptr <<= sizeof(uint64_t);
ptr = ptr + sizeof(uint16_t);
ptr = (uint8_t *)((uint32_t *)ptr - sizeof(uint32_t));
printf("%s", ptr);
return sizeof(uint8_t)>>sizeof(uint8_t);
}