class Metasm::LinOS

Public Class Methods

check_process(pid) click to toggle source
# File metasm/os/linux.rb, line 708
def check_process(pid)
        File.directory?("/proc/#{pid}")
end
create_debugger(path) click to toggle source

create a LinDebugger on the target pid/binary

# File metasm/os/linux.rb, line 713
def create_debugger(path)
        LinDebugger.new(path)
end
list_processes() click to toggle source

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
open_process(pid) click to toggle source

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