Benign gem Download

lib/ffi-libarchive-binary/zlib_recipe.rb

Binary write mode ('wb', 'wb+')Ruby changes the working directory
SHA-2566d5d64aad8eb30c67fcc7cc289a68b73d2ed165f7bca611ee72da3ff399c32df
MaleculeH₂(F₂Os)

Evidence

Ruby loads a relative source module lines 1–12
1# frozen_string_literal: true
2
3require "pathname"
4require_relative "base_recipe"
5
6module LibarchiveBinary
⋯6 lines
Binary write mode ('wb', 'wb+') lines 14–23
14:11… -static",
15 ]
16 end
17
18 def configure_windows
19 mk = File.read("win32/Makefile.gcc")
20 File.open("win32/Makefile.gcc", "wb") do |f|
21 f.puts "BINARY_PATH = #{path}/bin"
22 f.puts "LIBRARY_PATH = #{path}/lib"
23 f.puts "INCLUDE_PATH = …
Ruby changes the working directory lines 28–38
28:3… end
29
30 def configure
31 if MiniPortile::windows?
32 Dir.chdir(work_path) do
33 configure_windows
34 end
⋯4 lines

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.