Skip to content

Commit e689a06

Browse files
committed
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
1 parent f2b9aee commit e689a06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/exploits/linux/local/pkexec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ def exploit
348348
stime = Time.now.to_f
349349
print_status "Starting the payload handler..."
350350
until session_created? || stime + datastore['ListenerTimeout'] < Time.now.to_f
351-
select(nil, nil, nil, 1)
351+
Rex.sleep(1)
352352
end
353353
end
354354
end

0 commit comments

Comments
 (0)