Files
metasploit-gs/lib/msf/core/post/linux/process.rb
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

37 lines
614 B
Ruby
Raw Normal View History

2022-06-17 14:39:59 -05:00
# -*- coding: binary -*-
module Msf
class Post
module Linux
module Process
include Msf::Post::Process
def initialize(info = {})
super(
update_info(
info,
'Compat' => {
'Meterpreter' => {
'Commands' => %w[
stdapi_sys_process_attach
stdapi_sys_process_memory_read
]
}
}
)
)
end
2022-06-23 14:33:19 -05:00
def mem_read(base_address, length, pid: 0)
2022-06-30 14:39:21 -05:00
proc_id = session.sys.process.open(pid, PROCESS_READ)
2022-06-17 14:39:59 -05:00
data = proc_id.memory.read(base_address, length)
end
end # Process
end # Linux
end # Post
end # Msf