Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void *syscall5(void *num, void *a1, void *a2, void *a3, void *a4, void *a5);
- typedef unsigned long int uintptr;
- typedef long int intptr;
- static intptr write(int fd, void const *string, uintptr len) {
- return (intptr)syscall5((void *)1, // SYS_write
- (void *)(intptr)fd, (void *)string, (void *)len, 0,
- 0);
- }
- int main(int argc, char **argv) {
- write(1, "nigger\n", 7);
- return 0;
- }
- void *syscall5(void *num, void *a1, void *a2, void *a3, void *a4, void *a5);
- typedef unsigned long int uintptr;
- typedef long int intptr;
- static intptr write(int fd, void const *string, uintptr len) {
- return (intptr)syscall5((void *)1, // SYS_write
- (void *)(intptr)fd, (void *)string, (void *)len, 0,
- 0);
- }
- int main(int argc, char **argv) {
- write(1, "nigger\n", 7);
- return 0;
- }
Add Comment
Please, Sign In to add comment