This script does not work anymore. Tried it and the stack addresses are still different as the exploit only works in gdb.