Skip to content

Commit 345c5f3

Browse files
author
kernelsmith
committed
keep it from migrating more than once into explorer.exe
thanks for noticing egypt we should add a migrate_explorer to the post api
1 parent e1c037e commit 345c5f3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

modules/post/windows/gather/screen_spy.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,9 +137,10 @@ def migrate_explorer
137137
begin
138138
session.core.migrate(p['pid'].to_i)
139139
print_status("Migration successful")
140+
return p['pid']
140141
rescue
141142
print_status("Migration failed.")
142-
return
143+
return nil
143144
end
144145
end
145146
end

0 commit comments

Comments
 (0)