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 25bug/bundler_fix
parent
f2b9aeed74
commit
e689a0626d
|
@ -348,7 +348,7 @@ int main(int argc,char *argv[], char ** envp)
|
||||||
stime = Time.now.to_f
|
stime = Time.now.to_f
|
||||||
print_status "Starting the payload handler..."
|
print_status "Starting the payload handler..."
|
||||||
until session_created? || stime + datastore['ListenerTimeout'] < Time.now.to_f
|
until session_created? || stime + datastore['ListenerTimeout'] < Time.now.to_f
|
||||||
select(nil, nil, nil, 1)
|
Rex.sleep(1)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue