在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:Homebrew/ruby-macho开源软件地址:https://github.com/Homebrew/ruby-macho开源编程语言:Ruby 97.3%开源软件介绍:ruby-machoA Ruby library for examining and modifying Mach-O files. What is a Mach-O file?The Mach-O file format is used by macOS and iOS (among others) as a general purpose binary format for object files, executables, dynamic libraries, and so forth. Installationruby-macho can be installed via RubyGems: $ gem install ruby-macho DocumentationFull documentation is available on RubyDoc. A quick example of what ruby-macho can do: require 'macho'
file = MachO::MachOFile.new("/path/to/my/binary")
# get the file's type (object, dynamic lib, executable, etc)
file.filetype # => :execute
# get all load commands in the file and print their offsets:
file.load_commands.each do |lc|
puts "#{lc.type}: offset #{lc.offset}, size: #{lc.cmdsize}"
end
# access a specific load command
lc_vers = file[:LC_VERSION_MIN_MACOSX].first
puts lc_vers.version_string # => "10.10.0" What works?
What needs to be done?
Contributing, setting up |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论