Hiding Shell with Prepend Migrate - MetaSploit (MSFVenom)
Migrating the backdoor also benefits the attacker in the way that when the victim executes the backdoor file, session gets started but when that file is closed, the session also get closed, so attacker have to be very quick to do this as soon as the session opens.
http://www.techtrick.in/Description/3487-hiding-shell-with-prepend-migrate-metasploit-msfvenom











