Little Tommy - Not working on local

If anyone has solved Little Tommy and could shed some light on why the exploit works fine for me on the remote instance but not on my local machine that would be great.

I suspect it is due to different versions of libc etc. and how newer implementations of malloc manage memory but for future reference knowing how to get this working locally would’ve saved me loads of time!

Thanks guys

Still need help with it? PM me.