osusec
monday, 2/24
ret is called, the program goes somewhere
you control :Dwin() :D :Dasm("xor ecx, ecx") will compile assembly into machine
codewin function.read/open/write
represents a syscall

int 0x80man 2 syscallssyscalls(2) System Calls Manual syscalls(2)
NAME
syscalls - Linux system calls
SYNOPSIS
Linux system calls.
DESCRIPTION
The system call is the fundamental interface
between an application and the Linux kernel.
System calls and library wrapper functions
System calls are generally not invoked di‐
rectly, but rather via wrapper functions in
glibc (or perhaps some other library). For
details of direct invocation of a system call,
see intro(2). Often, but not always, the name
of the wrapper function is the same as the
name of the system call that it invokes. For
example, glibc contains a function chdir()
which invokes the underlying "chdir" system
call.
mov eax, 0x23 sets eax to 0x23xor eax,eax clears eaxpush eax puts whatever’s in eax to the top of the
stackint 0x80 does an interruptSIGSEV invalid address 0xdeadbeef means you overwrote
the return address!0x0 or whatever a newline isexecve on a shell is flexible and
portable