Skip to content

Commit

Permalink
Merge pull request #1816 from beefproject/yaml_safe_load
Browse files Browse the repository at this point in the history
Replaced yaml.load with yaml.safe_load
  • Loading branch information
jcrew99 authored Jan 3, 2020
2 parents ba15644 + f608cac commit 8e783ad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down
2 changes: 1 addition & 1 deletion extensions/metasploit/api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def self.post_soft_load
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
Expand Down

0 comments on commit 8e783ad

Please sign in to comment.