Skip to content

Commit 71a3f59

Browse files
committed
php_include - added error handler
1 parent 02e394e commit 71a3f59

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/msf/core/exploit/http/server.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,11 @@ def remove_resource(name)
501501
# Guard against removing resources added by other modules
502502
if @my_resources.include?(name)
503503
@my_resources.delete(name)
504-
service.remove_resource(name)
504+
begin
505+
service.remove_resource(name)
506+
rescue ::Exception => e
507+
print_error("Exception: #{e.class} #{e}")
508+
end
505509
end
506510
end
507511

0 commit comments

Comments
 (0)