Rop: added functions strncpy and memset
Shellcode: added restoretty function