I dont get this.../proc will have have fd entry of this process ..Right?
Yes but how will she read the proc file? She cant execute any system calls other than sendfile. After reading through her code again (I missed the read system call during my first read) and after clarification from @Mysticial, I understood that the shell code has to be injected in through stdin into the newly mapped memory page. So she just has to make a fileno call to get the file descriptor associated with the FILE* stream pointer and then make a sendfile system call to print the output to stdout.
Anonymous
Alfredo
@𝑺𝒐𝒃𝒌𝒂
Suka
Ravi
Nils
Bhlar
professor
Anunay