Skip to content

Commit a0ba3f1

Browse files
committed
Land rapid7#8110, process migration by name fix
2 parents 8995629 + 456ddce commit a0ba3f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/post/windows/manage/migrate.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def run
4242
if datastore['SPAWN']
4343
print_status("Spawning notepad.exe process to migrate to")
4444
target_pid = create_temp_proc
45-
elsif datastore['PID'] != 0
45+
elsif datastore['PID']
4646
target_pid = datastore['PID']
4747
elsif datastore['NAME']
4848
target_pid = session.sys.process[datastore['NAME']]

0 commit comments

Comments
 (0)