Benign ruby Download

cybrid_api_id_ruby 0.129.472

Legitimate Ruby gem with standard dependencies

VBScript launching PowerShellSystem command execution in method

Evidence

rspec reference (lowercase) rake_task.rb · lines 1–8
1require 'rake'
2require 'rake/tasklib'
3require 'rspec/support'
4
5RSpec::Support.require_rspec_support "ruby_features"
6
7# :nocov:
8unless RSpec::Support.respond_to?(:require_rspec_core …
Repeated parent-directory traversal path rake_task.rb · lines 9–30
9:2… RSpec::Support.define_optimized_require_for_rspec(:core) { |f| require_relative "../#{f}" }
10end
11# :nocov:
12
13RSpec::Support.require_rspec_core "shell_escape"
14
15module RSpec
16 module Core
17 # RSpec rake task
18 #
19 # @see Rakefile
20 class RakeTask < ::Rake::TaskLib
21 include ::Rake::DSL if defined?(::Rake::DSL)
22 include RSpec::Core::ShellEscape
23
24 # Default path to the RSpec executable.
25 DEFAULT_RSPEC_PATH = File.expand_path('../../../../exe/rspec', __FILE__)
26
27 # Default pattern for spec files.
28 DEFAULT_PATTERN = 'spec/**{,/*/**}/*_spec.rb'
29
30 # Name of task. Defaults …
RSpec reference (title case) rake_task.rb · lines 94–116
94:24… verbose
95
96 if with_clean_environment
97 return if system({}, command, :unsetenv_others => true)
98 else
99 return if system(command)
100 end
101
102 puts failure_message if failure_message
103
104 return unless fail_on_error
105 $stderr.puts "#{command} failed" if verbose
106 exit $?.exitstatus || 1
107 end
108
109 private
110
111 # @private
112 def define(args, &task_block)
113 desc "Run RSpec code examples" unless ::Rake.application.last_description
114
115 task name, *args do |_, task_args|
116 RakeFileUtils._ …
Ruby dynamically invokes a method with send parallel.rb · lines 49–55
49:24… ance_variable_defined? :@__better_errors_bindings_stack
50 exception.send :remove_instance_variable, :@__better_errors_bindings_stack
51 end
52
53 @exception =
54 begin
55 Mar …
Creates a Ruby background thread parallel.rb · lines 228–237
228:49… mediate) do
229 count.times do |i|
230 threads << Thread.new { yield(i) }
231 end
232 threads.map(&:value)
⋯5 lines

Showing the top 5 files — 7 more files (49 regions) not shown.

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.