Benign gem 823,549 installs Download

bosh-director-core 1.2611.0

“Bosh::Director::Core provides common Director code for Director and Microbosh Deployer”

Ruby recursively deletes a directory treeRuby subshell command execution
SHA-25670ccf3353aec010c585b22f89db1adaba6fc4fb096d4b62a72773d2e69abcd61

Evidence

Ruby Open3 captures child-command output tar_gzipper.rb · lines 33–39
33:12…
34
35 def tar(base_dir, dest, sources)
36 out, err, status = Open3.capture3('tar', '-C', base_dir, '-czf', dest, *sources)
37 raise("tar exited #{status.exitstatus}, output: '#{out}', error: '#{err}'") unless status.success?
38 out
39 …
Reads file content with Ruby File.read job_template_loader.rb · lines 13–17
13:29… file(File.join(template_dir, 'job.MF'))
14
15 monit_erb_file = File.read(File.join(template_dir, 'monit'))
16 monit_source_erb = SourceErb.new('monit', 'monit', monit_erb_file, job_template.name)
17
Ruby recursively deletes a directory tree job_template_loader.rb · lines 25–33
25:43… .name, monit_source_erb, source_erbs, @logger)
26 ensure
27 FileUtils.rm_rf(template_dir) if template_dir
28 end
29
⋯4 lines
Executes a command with Ruby backticks job_template_loader.rb · lines 33–39
33:32… download_blob
34 template_dir = Dir.mktmpdir('template_dir')
35
36 output = `tar -C #{template_dir} -xzf #{temp_path} 2>&1`
37 if $?.exitstatus != 0
38 raise JobTemplateUnpackFailed,
39 "Cannot unpack `#{job_template.name}' job temp …
Ruby creates a directory tree rendered_templates_writer.rb · lines 16–19
16:31… File.join(job_template_dir, file_template.dest_name)
17 FileUtils.mkdir_p(File.dirname(file_template_dest))
18 File.open(file_template_dest, 'w') do |f|
19 f.write(file_template.contents …

No evidence locations were recorded for this file. Raw result

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.