2005-04-13 08:19:22 +00:00
|
|
|
#!/usr/bin/ruby
|
|
|
|
|
|
|
|
module Rex
|
|
|
|
module Post
|
|
|
|
module Meterpreter
|
|
|
|
module Extensions
|
|
|
|
module Stdapi
|
|
|
|
|
2005-04-15 06:23:59 +00:00
|
|
|
##
|
|
|
|
#
|
|
|
|
# General
|
|
|
|
#
|
|
|
|
##
|
|
|
|
|
|
|
|
TLV_TYPE_HANDLE = TLV_META_TYPE_UINT | 600
|
|
|
|
TLV_TYPE_INHERIT = TLV_META_TYPE_BOOL | 601
|
|
|
|
|
|
|
|
##
|
|
|
|
#
|
|
|
|
# Sys
|
|
|
|
#
|
|
|
|
##
|
2005-04-13 08:19:22 +00:00
|
|
|
|
|
|
|
# Registry
|
2005-04-15 06:23:59 +00:00
|
|
|
TLV_TYPE_HKEY = TLV_META_TYPE_UINT | 1000
|
|
|
|
TLV_TYPE_ROOT_KEY = TLV_TYPE_HKEY
|
|
|
|
TLV_TYPE_BASE_KEY = TLV_META_TYPE_STRING | 1001
|
|
|
|
TLV_TYPE_PERMISSION = TLV_META_TYPE_UINT | 1002
|
|
|
|
TLV_TYPE_KEY_NAME = TLV_META_TYPE_STRING | 1003
|
|
|
|
TLV_TYPE_VALUE_NAME = TLV_META_TYPE_STRING | 1010
|
|
|
|
TLV_TYPE_VALUE_TYPE = TLV_META_TYPE_UINT | 1011
|
|
|
|
TLV_TYPE_VALUE_DATA = TLV_META_TYPE_RAW | 1012
|
2005-04-13 08:19:22 +00:00
|
|
|
|
2005-04-15 06:23:59 +00:00
|
|
|
# Process
|
|
|
|
TLV_TYPE_BASE_ADDRESS = TLV_META_TYPE_UINT | 2000
|
|
|
|
TLV_TYPE_ALLOCATION_TYPE = TLV_META_TYPE_UINT | 2001
|
|
|
|
TLV_TYPE_PROTECTION = TLV_META_TYPE_UINT | 2002
|
|
|
|
TLV_TYPE_PROCESS_PERMS = TLV_META_TYPE_UINT | 2003
|
|
|
|
TLV_TYPE_PROCESS_MEMORY = TLV_META_TYPE_RAW | 2004
|
|
|
|
TLV_TYPE_ALLOC_BASE_ADDRESS = TLV_META_TYPE_UINT | 2005
|
|
|
|
TLV_TYPE_MEMORY_STATE = TLV_META_TYPE_UINT | 2006
|
|
|
|
TLV_TYPE_MEMORY_TYPE = TLV_META_TYPE_UINT | 2007
|
|
|
|
TLV_TYPE_ALLOC_PROTECTION = TLV_META_TYPE_UINT | 2008
|
|
|
|
TLV_TYPE_PID = TLV_META_TYPE_UINT | 2300
|
2005-04-15 07:03:33 +00:00
|
|
|
TLV_TYPE_PROCESS_NAME = TLV_META_TYPE_STRING | 2301
|
|
|
|
TLV_TYPE_PROCESS_PATH = TLV_META_TYPE_STRING | 2302
|
|
|
|
TLV_TYPE_PROCESS_GROUP = TLV_META_TYPE_GROUP | 2303
|
2005-04-15 06:23:59 +00:00
|
|
|
|
2005-04-15 07:53:20 +00:00
|
|
|
TLV_TYPE_IMAGE_FILE = TLV_META_TYPE_STRING | 2400
|
|
|
|
TLV_TYPE_IMAGE_FILE_PATH = TLV_META_TYPE_STRING | 2401
|
|
|
|
TLV_TYPE_PROCEDURE_NAME = TLV_META_TYPE_STRING | 2402
|
|
|
|
TLV_TYPE_PROCEDURE_ADDRESS = TLV_META_TYPE_UINT | 2403
|
|
|
|
TLV_TYPE_IMAGE_BASE = TLV_META_TYPE_UINT | 2404
|
2005-04-15 08:19:04 +00:00
|
|
|
TLV_TYPE_IMAGE_GROUP = TLV_META_TYPE_GROUP | 2405
|
|
|
|
TLV_TYPE_IMAGE_NAME = TLV_META_TYPE_STRING | 2406
|
2005-04-15 07:53:20 +00:00
|
|
|
|
2005-04-15 06:23:59 +00:00
|
|
|
##
|
|
|
|
#
|
2005-04-13 08:19:22 +00:00
|
|
|
# Fs
|
2005-04-15 06:23:59 +00:00
|
|
|
#
|
|
|
|
##
|
|
|
|
|
|
|
|
TLV_TYPE_DIRECTORY_PATH = TLV_META_TYPE_STRING | 1200
|
|
|
|
TLV_TYPE_FILE_NAME = TLV_META_TYPE_STRING | 1201
|
|
|
|
TLV_TYPE_FILE_PATH = TLV_META_TYPE_STRING | 1202
|
|
|
|
TLV_TYPE_FILE_MODE = TLV_META_TYPE_STRING | 1203
|
|
|
|
TLV_TYPE_STAT_BUF = TLV_META_TYPE_COMPLEX | 1220
|
|
|
|
|
|
|
|
# Net
|
|
|
|
TLV_TYPE_HOST_NAME = TLV_META_TYPE_STRING | 1400
|
|
|
|
TLV_TYPE_PORT = TLV_META_TYPE_UINT | 1401
|
2005-04-13 08:19:22 +00:00
|
|
|
|
2005-04-15 06:23:59 +00:00
|
|
|
DELETE_KEY_FLAG_RECURSIVE = (1 << 0)
|
2005-04-13 08:19:22 +00:00
|
|
|
|
|
|
|
end; end; end; end; end
|