File tree Expand file tree Collapse file tree 2 files changed +2
-9
lines changed
lib/msf/core/exploit/http
modules/exploits/unix/webapp Expand file tree Collapse file tree 2 files changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -501,11 +501,7 @@ def remove_resource(name)
501
501
# Guard against removing resources added by other modules
502
502
if @my_resources . include? ( name )
503
503
@my_resources . delete ( name )
504
- begin
505
- service . remove_resource ( name )
506
- rescue ::Exception => e
507
- print_error ( "Exception: #{ e . class } #{ e } " )
508
- end
504
+ service . remove_resource ( name )
509
505
end
510
506
end
511
507
Original file line number Diff line number Diff line change @@ -92,9 +92,6 @@ def datastore_headers
92
92
end
93
93
94
94
def php_exploit
95
- # Set verbosity level
96
- verbose = datastore [ 'VERBOSE' ] . to_s . downcase
97
-
98
95
uris = [ ]
99
96
100
97
tpath = normalize_uri ( datastore [ 'PATH' ] )
@@ -137,7 +134,7 @@ def php_exploit
137
134
uris . each do |uri |
138
135
break if session_created?
139
136
140
- print_status ( "Sending: #{ rhost +tpath +uri } " ) if verbose == "true"
137
+ vprint_status ( "Sending: #{ rhost +tpath +uri } " )
141
138
begin
142
139
if http_method == "GET"
143
140
response = send_request_raw ( {
You can’t perform that action at this time.
0 commit comments