Use Rex.sleep :-)

"Right is right even if no one is doing it; wrong is wrong even if everyone is doing it"

user@x:/opt/metasploit$ grep -nr "select(nil, nil, nil" . | wc -l
189
user@x:/opt/metasploit$ grep -nr "Rex.sleep" . | wc -l
25
bug/bundler_fix
0a2940 2014-10-10 10:05:46 +01:00
parent f2b9aeed74
commit e689a0626d
1 changed files with 1 additions and 1 deletions

View File

@ -348,7 +348,7 @@ int main(int argc,char *argv[], char ** envp)
stime = Time.now.to_f
print_status "Starting the payload handler..."
until session_created? || stime + datastore['ListenerTimeout'] < Time.now.to_f
select(nil, nil, nil, 1)
Rex.sleep(1)
end
end
end