Replaced yaml.load with yaml.safe_load

This commit is contained in:
Grant Burgess
2020-01-03 10:40:57 +10:00
parent ba15644e32
commit f608cacb2f
2 changed files with 2 additions and 2 deletions

View File

@@ -115,7 +115,7 @@ task :beef_start => 'beef' do
test_pass = ENV['TEST_BEEF_PASS'] || 'bad_fred_no_access'
# write a rake config file for beef
config = YAML.load(File.read('./config.yaml'))
config = YAML.safe_load(File.read('./config.yaml'))
config['beef']['credentials']['user'] = test_user
config['beef']['credentials']['passwd'] = test_pass
Dir.mkdir('tmp') unless Dir.exists?('tmp')

View File

@@ -35,7 +35,7 @@ module BeEF
print_debug 'Attempting to use Metasploit exploits cache file'
raw = File.read(path)
begin
msf_module_config = YAML.load(raw)
msf_module_config = YAML.safe_load(raw)
rescue => e
print_error "[Metasploit] #{e.message}"
print_error e.backtrace