200 CSAW2016 Tutorial

Running the application there is immediately a seg fault. λ ./tutorial Segmentation fault (core dumped) Open in ida to see whats going on. void __fastcall __noreturn main(__int64 a1, char **a2, char **a3){ v15 = *MK_FP(__FS__, 40LL); optval = 1; sigemptyset(&v4); fd = socket(2, 1, 0); if ( fd…