Skip to content

Commit

Permalink
Fix autoruns for MySQL
Browse files Browse the repository at this point in the history
  • Loading branch information
sjanusz-r7 committed Feb 12, 2024
1 parent c20ba90 commit f65b91e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/msf/base/sessions/mysql.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,14 @@ def process_autoruns(datastore)
end
end

def execute_file(full_path, args)
if File.extname(full_path) == '.rb'
Rex::Script::Shell.new(self, full_path).run(args)
else
console.load_resource(full_path)
end
end

# @return [String]
def type
self.class.type
Expand Down

0 comments on commit f65b91e

Please sign in to comment.