Use Popen

added the use of Popen. And use wait for Popen so the exploit will run
and then continue after the process is complete.