Method: Rex::Post::Meterpreter::Extensions::Stdapi::Sys::Process.getpid

Defined in:
lib/rex/post/meterpreter/extensions/stdapi/sys/process.rb

.getpidObject

Gets the process id that the remote side is executing under.



199
200
201
202
203
204
205
# File 'lib/rex/post/meterpreter/extensions/stdapi/sys/process.rb', line 199

def Process.getpid
  request = Packet.create_request('stdapi_sys_process_getpid')

  response = client.send_request(request)

  return response.get_tlv_value(TLV_TYPE_PID)
end