# File metasm/os/linux.rb, line 708 def check_process(pid) File.directory?("/proc/#{pid}") end
create a LinDebugger on the target pid/binary
# File metasm/os/linux.rb, line 713 def create_debugger(path) LinDebugger.new(path) end
returns an array of Processes, with pid/module listing
# File metasm/os/linux.rb, line 699 def list_processes Dir.entries('/proc').grep(/^\d+$/).map { |pid| Process.new(pid.to_i) } end
return a Process for the specified pid if it exists in /proc
# File metasm/os/linux.rb, line 704 def open_process(pid) Process.new(pid) if check_process(pid) end