From a4ecd8e02de02085ac8d63b036953c18976e9c56 Mon Sep 17 00:00:00 2001 From: Meatballs Date: Sun, 1 Jun 2014 11:49:56 +0100 Subject: [PATCH] Should return the thread object --- lib/msf/core/post/windows/process.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/msf/core/post/windows/process.rb b/lib/msf/core/post/windows/process.rb index 2509e9de44..f140e3e669 100644 --- a/lib/msf/core/post/windows/process.rb +++ b/lib/msf/core/post/windows/process.rb @@ -35,10 +35,9 @@ module Process thread = host.thread.create(shell_addr,0) unless thread.instance_of?(Rex::Post::Meterpreter::Extensions::Stdapi::Sys::Thread) vprint_error("Unable to create thread") - return false end - true + thread end end # Process