File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed
modules/exploits/multi/http Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -109,12 +109,12 @@ def on_new_session(cli)
109
109
cli . core . use ( "stdapi" ) if not cli . ext . aliases . include? ( "stdapi" )
110
110
end
111
111
112
- begin
113
- @clean_ups . each { |f |
114
- base = File . basename ( f )
115
- f = "../webapps/SecurityManager/#{ base } "
116
- print_warning ( "#{ rhost } :#{ rport } - Deleting: \" #{ base } \" " )
112
+ @clean_ups . each { |f |
113
+ base = File . basename ( f )
114
+ f = "../webapps/SecurityManager/#{ base } "
115
+ print_warning ( "#{ rhost } :#{ rport } - Deleting: \" #{ base } \" " )
117
116
117
+ begin
118
118
if cli . type == 'meterpreter'
119
119
cli . fs . file . rm ( f )
120
120
else
@@ -124,10 +124,10 @@ def on_new_session(cli)
124
124
end
125
125
126
126
print_good ( "#{ rhost } :#{ rport } - \" #{ base } \" deleted" )
127
- }
128
- rescue :: Exception => e
129
- print_error ( "Unable to delete: #{ e . message } " )
130
- end
127
+ rescue :: Exception => e
128
+ print_error ( "Unable to delete: #{ e . message } " )
129
+ end
130
+ }
131
131
end
132
132
133
133
You can’t perform that action at this time.
0 commit comments