Module: Rex::Post::Meterpreter::Extensions::Stdapi

Included in:
Ui::Console::CommandDispatcher::Stdapi::Fs, Ui::Console::CommandDispatcher::Stdapi::Mic, Ui::Console::CommandDispatcher::Stdapi::Net, Ui::Console::CommandDispatcher::Stdapi::Sys, Ui::Console::CommandDispatcher::Stdapi::Ui, Ui::Console::CommandDispatcher::Stdapi::Webcam
Defined in:
lib/rex/post/meterpreter/extensions/stdapi/ui.rb,
lib/rex/post/meterpreter/extensions/stdapi/tlv.rb,
lib/rex/post/meterpreter/extensions/stdapi/fs/io.rb,
lib/rex/post/meterpreter/extensions/stdapi/fs/dir.rb,
lib/rex/post/meterpreter/extensions/stdapi/stdapi.rb,
lib/rex/post/meterpreter/extensions/stdapi/fs/file.rb,
lib/rex/post/meterpreter/extensions/stdapi/mic/mic.rb,
lib/rex/post/meterpreter/extensions/stdapi/net/arp.rb,
lib/rex/post/meterpreter/extensions/stdapi/fs/mount.rb,
lib/rex/post/meterpreter/extensions/stdapi/net/route.rb,
lib/rex/post/meterpreter/extensions/stdapi/sys/power.rb,
lib/rex/post/meterpreter/extensions/stdapi/net/config.rb,
lib/rex/post/meterpreter/extensions/stdapi/net/socket.rb,
lib/rex/post/meterpreter/extensions/stdapi/sys/config.rb,
lib/rex/post/meterpreter/extensions/stdapi/sys/thread.rb,
lib/rex/post/meterpreter/extensions/stdapi/command_ids.rb,
lib/rex/post/meterpreter/extensions/stdapi/net/netstat.rb,
lib/rex/post/meterpreter/extensions/stdapi/net/resolve.rb,
lib/rex/post/meterpreter/extensions/stdapi/railgun/tlv.rb,
lib/rex/post/meterpreter/extensions/stdapi/sys/process.rb,
lib/rex/post/meterpreter/extensions/stdapi/fs/file_stat.rb,
lib/rex/post/meterpreter/extensions/stdapi/railgun/util.rb,
lib/rex/post/meterpreter/extensions/stdapi/sys/registry.rb,
lib/rex/post/meterpreter/extensions/stdapi/net/interface.rb,
lib/rex/post/meterpreter/extensions/stdapi/sys/event_log.rb,
lib/rex/post/meterpreter/extensions/stdapi/webcam/webcam.rb,
lib/rex/post/meterpreter/extensions/stdapi/railgun/library.rb,
lib/rex/post/meterpreter/extensions/stdapi/railgun/railgun.rb,
lib/rex/post/meterpreter/extensions/stdapi/railgun/multicall.rb,
lib/rex/post/meterpreter/extensions/stdapi/railgun/buffer_item.rb,
lib/rex/post/meterpreter/extensions/stdapi/railgun/const_manager.rb,
lib/rex/post/meterpreter/extensions/stdapi/railgun/platform_util.rb,
lib/rex/post/meterpreter/extensions/stdapi/railgun/library_helper.rb,
lib/rex/post/meterpreter/extensions/stdapi/railgun/library_wrapper.rb,
lib/rex/post/meterpreter/extensions/stdapi/railgun/def/osx/def_libc.rb,
lib/rex/post/meterpreter/extensions/stdapi/railgun/library_function.rb,
lib/rex/post/meterpreter/extensions/stdapi/sys/process_subsystem/io.rb,
lib/rex/post/meterpreter/extensions/stdapi/audio_output/audio_output.rb,
lib/rex/post/meterpreter/extensions/stdapi/railgun/type/pointer_util.rb,
lib/rex/post/meterpreter/extensions/stdapi/railgun/def/linux/def_libc.rb,
lib/rex/post/meterpreter/extensions/stdapi/railgun/def/osx/def_libobjc.rb,
lib/rex/post/meterpreter/extensions/stdapi/sys/process_subsystem/image.rb,
lib/rex/post/meterpreter/extensions/stdapi/sys/process_subsystem/memory.rb,
lib/rex/post/meterpreter/extensions/stdapi/sys/process_subsystem/thread.rb,
lib/rex/post/meterpreter/extensions/stdapi/railgun/def/osx/api_constants.rb,
lib/rex/post/meterpreter/extensions/stdapi/railgun/def/windows/def_ntdll.rb,
lib/rex/post/meterpreter/extensions/stdapi/railgun/def/windows/def_psapi.rb,
lib/rex/post/meterpreter/extensions/stdapi/railgun/def/windows/def_user32.rb,
lib/rex/post/meterpreter/extensions/stdapi/railgun/def/windows/def_ws2_32.rb,
lib/rex/post/meterpreter/extensions/stdapi/railgun/def/linux/api_constants.rb,
lib/rex/post/meterpreter/extensions/stdapi/railgun/def/windows/def_crypt32.rb,
lib/rex/post/meterpreter/extensions/stdapi/railgun/def/windows/def_dbghelp.rb,
lib/rex/post/meterpreter/extensions/stdapi/railgun/def/windows/def_secur32.rb,
lib/rex/post/meterpreter/extensions/stdapi/railgun/def/windows/def_shell32.rb,
lib/rex/post/meterpreter/extensions/stdapi/railgun/def/windows/def_spoolss.rb,
lib/rex/post/meterpreter/extensions/stdapi/railgun/def/windows/def_version.rb,
lib/rex/post/meterpreter/extensions/stdapi/railgun/def/windows/def_wlanapi.rb,
lib/rex/post/meterpreter/extensions/stdapi/railgun/def/windows/def_wldap32.rb,
lib/rex/post/meterpreter/extensions/stdapi/net/socket_subsystem/udp_channel.rb,
lib/rex/post/meterpreter/extensions/stdapi/railgun/def/windows/def_advapi32.rb,
lib/rex/post/meterpreter/extensions/stdapi/railgun/def/windows/def_iphlpapi.rb,
lib/rex/post/meterpreter/extensions/stdapi/railgun/def/windows/def_kernel32.rb,
lib/rex/post/meterpreter/extensions/stdapi/railgun/def/windows/def_netapi32.rb,
lib/rex/post/meterpreter/extensions/stdapi/railgun/def/windows/def_winspool.rb,
lib/rex/post/meterpreter/extensions/stdapi/railgun/def/windows/api_constants.rb,
lib/rex/post/meterpreter/extensions/stdapi/sys/registry_subsystem/registry_key.rb,
lib/rex/post/meterpreter/extensions/stdapi/sys/event_log_subsystem/event_record.rb,
lib/rex/post/meterpreter/extensions/stdapi/sys/registry_subsystem/registry_value.rb,
lib/rex/post/meterpreter/extensions/stdapi/net/socket_subsystem/tcp_client_channel.rb,
lib/rex/post/meterpreter/extensions/stdapi/net/socket_subsystem/tcp_server_channel.rb,
lib/rex/post/meterpreter/extensions/stdapi/sys/registry_subsystem/remote_registry_key.rb

Defined Under Namespace

Modules: AudioOutput, Fs, Mic, Net, Railgun, Sys, Webcam Classes: Stdapi, UI

Constant Summary collapse

TLV_TYPE_HANDLE =

General

TLV_META_TYPE_QWORD   |  600
TLV_TYPE_INHERIT =
TLV_META_TYPE_BOOL    |  601
TLV_TYPE_PROCESS_HANDLE =
TLV_META_TYPE_QWORD   |  630
TLV_TYPE_THREAD_HANDLE =
TLV_META_TYPE_QWORD   |  631
TLV_TYPE_PRIVILEGE =
TLV_META_TYPE_STRING  |  632
TLV_TYPE_DIRECTORY_PATH =

Fs

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_FILE_SIZE =
TLV_META_TYPE_UINT    | 1204
TLV_TYPE_FILE_SHORT_NAME =
TLV_META_TYPE_STRING  | 1205
TLV_TYPE_FILE_HASH =
TLV_META_TYPE_RAW     | 1206
TLV_TYPE_MOUNT =
TLV_META_TYPE_GROUP   | 1207
TLV_TYPE_MOUNT_NAME =
TLV_META_TYPE_STRING  | 1208
TLV_TYPE_MOUNT_TYPE =
TLV_META_TYPE_UINT    | 1209
TLV_TYPE_MOUNT_SPACE_USER =
TLV_META_TYPE_QWORD   | 1210
TLV_TYPE_MOUNT_SPACE_TOTAL =
TLV_META_TYPE_QWORD   | 1211
TLV_TYPE_MOUNT_SPACE_FREE =
TLV_META_TYPE_QWORD   | 1212
TLV_TYPE_MOUNT_UNCPATH =
TLV_META_TYPE_STRING  | 1213
TLV_TYPE_STAT_BUF32 =
TLV_META_TYPE_COMPLEX | 1220
TLV_TYPE_STAT_BUF =
TLV_META_TYPE_COMPLEX | 1221
TLV_TYPE_SEARCH_RECURSE =
TLV_META_TYPE_BOOL    | 1230
TLV_TYPE_SEARCH_GLOB =
TLV_META_TYPE_STRING  | 1231
TLV_TYPE_SEARCH_ROOT =
TLV_META_TYPE_STRING  | 1232
TLV_TYPE_SEARCH_RESULTS =
TLV_META_TYPE_GROUP   | 1233
TLV_TYPE_SEARCH_MTIME =
TLV_META_TYPE_UINT    | 1235
TLV_TYPE_SEARCH_M_START_DATE =
TLV_META_TYPE_UINT    | 1236
TLV_TYPE_SEARCH_M_END_DATE =
TLV_META_TYPE_UINT    | 1237
TLV_TYPE_FILE_MODE_T =
TLV_META_TYPE_UINT    | 1234
TLV_TYPE_HOST_NAME =

Net

TLV_META_TYPE_STRING  | 1400
TLV_TYPE_PORT =
TLV_META_TYPE_UINT    | 1401
TLV_TYPE_INTERFACE_MTU =
TLV_META_TYPE_UINT    | 1402
TLV_TYPE_INTERFACE_FLAGS =
TLV_META_TYPE_STRING  | 1403
TLV_TYPE_INTERFACE_INDEX =
TLV_META_TYPE_UINT    | 1404
TLV_TYPE_SUBNET =
TLV_META_TYPE_RAW     | 1420
TLV_TYPE_NETMASK =
TLV_META_TYPE_RAW     | 1421
TLV_TYPE_GATEWAY =
TLV_META_TYPE_RAW     | 1422
TLV_TYPE_NETWORK_ROUTE =
TLV_META_TYPE_GROUP   | 1423
TLV_TYPE_IP_PREFIX =
TLV_META_TYPE_UINT    | 1424
TLV_TYPE_ARP_ENTRY =
TLV_META_TYPE_GROUP   | 1425
TLV_TYPE_IP =
TLV_META_TYPE_RAW     | 1430
TLV_TYPE_MAC_ADDRESS =
TLV_META_TYPE_RAW     | 1431
TLV_TYPE_MAC_NAME =
TLV_META_TYPE_STRING  | 1432
TLV_TYPE_NETWORK_INTERFACE =
TLV_META_TYPE_GROUP   | 1433
TLV_TYPE_IP6_SCOPE =
TLV_META_TYPE_RAW     | 1434
TLV_TYPE_SUBNET_STRING =
TLV_META_TYPE_STRING  | 1440
TLV_TYPE_NETMASK_STRING =
TLV_META_TYPE_STRING  | 1441
TLV_TYPE_GATEWAY_STRING =
TLV_META_TYPE_STRING  | 1442
TLV_TYPE_ROUTE_METRIC =
TLV_META_TYPE_UINT    | 1443
TLV_TYPE_ADDR_TYPE =

Resolve

TLV_META_TYPE_UINT    | 1444
TLV_TYPE_PROXY_CFG_AUTODETECT =

Proxy configuration

TLV_META_TYPE_BOOL    | 1445
TLV_TYPE_PROXY_CFG_AUTOCONFIGURL =
TLV_META_TYPE_STRING  | 1446
TLV_TYPE_PROXY_CFG_PROXY =
TLV_META_TYPE_STRING  | 1447
TLV_TYPE_PROXY_CFG_PROXYBYPASS =
TLV_META_TYPE_STRING  | 1448
TLV_TYPE_PEER_HOST =

Socket

TLV_META_TYPE_STRING  | 1500
TLV_TYPE_PEER_PORT =
TLV_META_TYPE_UINT    | 1501
TLV_TYPE_LOCAL_HOST =
TLV_META_TYPE_STRING  | 1502
TLV_TYPE_LOCAL_PORT =
TLV_META_TYPE_UINT    | 1503
TLV_TYPE_CONNECT_RETRIES =
TLV_META_TYPE_UINT    | 1504
TLV_TYPE_NETSTAT_ENTRY =
TLV_META_TYPE_GROUP   | 1505
TLV_TYPE_PEER_HOST_RAW =
TLV_META_TYPE_RAW     | 1506
TLV_TYPE_LOCAL_HOST_RAW =
TLV_META_TYPE_RAW     | 1507
TLV_TYPE_SHUTDOWN_HOW =
TLV_META_TYPE_UINT    | 1530
PROCESS_EXECUTE_FLAG_HIDDEN =

Sys

(1 << 0)
PROCESS_EXECUTE_FLAG_CHANNELIZED =
(1 << 1)
PROCESS_EXECUTE_FLAG_SUSPENDED =
(1 << 2)
PROCESS_EXECUTE_FLAG_USE_THREAD_TOKEN =
(1 << 3)
PROCESS_EXECUTE_FLAG_DESKTOP =
(1 << 4)
PROCESS_EXECUTE_FLAG_SESSION =
(1 << 5)
PROCESS_EXECUTE_FLAG_SUBSHELL =
(1 << 6)
PROCESS_EXECUTE_FLAG_PTY =
(1 << 7)
PROCESS_EXECUTE_FLAG_ARG_ARRAY =
(1 << 8)
TLV_TYPE_HKEY =

Registry

TLV_META_TYPE_QWORD   | 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
TLV_TYPE_TARGET_HOST =
TLV_META_TYPE_STRING  | 1013
TLV_TYPE_COMPUTER_NAME =

Config

TLV_META_TYPE_STRING  | 1040
TLV_TYPE_OS_NAME =
TLV_META_TYPE_STRING  | 1041
TLV_TYPE_USER_NAME =
TLV_META_TYPE_STRING  | 1042
TLV_TYPE_ARCHITECTURE =
TLV_META_TYPE_STRING  | 1043
TLV_TYPE_LANG_SYSTEM =
TLV_META_TYPE_STRING  | 1044
TLV_TYPE_SID =
TLV_META_TYPE_STRING  | 1045
TLV_TYPE_DOMAIN =
TLV_META_TYPE_STRING  | 1046
TLV_TYPE_LOGGED_ON_USER_COUNT =
TLV_META_TYPE_UINT    | 1047
TLV_TYPE_LOCAL_DATETIME =
TLV_META_TYPE_STRING  | 1048
TLV_TYPE_BUILD_TUPLE =
TLV_META_TYPE_STRING  | 1049
TLV_TYPE_ENV_VARIABLE =

Environment

TLV_META_TYPE_STRING  | 1100
TLV_TYPE_ENV_VALUE =
TLV_META_TYPE_STRING  | 1101
TLV_TYPE_ENV_GROUP =
TLV_META_TYPE_GROUP   | 1102
DELETE_KEY_FLAG_RECURSIVE =
(1 << 0)
TLV_TYPE_BASE_ADDRESS =

Process

TLV_META_TYPE_QWORD   | 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_QWORD   | 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
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
TLV_TYPE_PROCESS_FLAGS =
TLV_META_TYPE_UINT    | 2304
TLV_TYPE_PROCESS_ARGUMENTS =
TLV_META_TYPE_STRING  | 2305
TLV_TYPE_PROCESS_ARCH =
TLV_META_TYPE_UINT    | 2306
TLV_TYPE_PARENT_PID =
TLV_META_TYPE_UINT    | 2307
TLV_TYPE_PROCESS_SESSION =
TLV_META_TYPE_UINT    | 2308
TLV_TYPE_PROCESS_ARCH_NAME =
TLV_META_TYPE_STRING  | 2309
TLV_TYPE_PROCESS_ARGUMENT =
TLV_META_TYPE_STRING  | 2310
TLV_TYPE_PROCESS_UNESCAPED_PATH =
TLV_META_TYPE_STRING  | 2311
TLV_TYPE_DRIVER_ENTRY =
TLV_META_TYPE_GROUP   | 2320
TLV_TYPE_DRIVER_BASENAME =
TLV_META_TYPE_STRING  | 2321
TLV_TYPE_DRIVER_FILENAME =
TLV_META_TYPE_STRING  | 2322
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_QWORD   | 2403
TLV_TYPE_IMAGE_BASE =
TLV_META_TYPE_QWORD   | 2404
TLV_TYPE_IMAGE_GROUP =
TLV_META_TYPE_GROUP   | 2405
TLV_TYPE_IMAGE_NAME =
TLV_META_TYPE_STRING  | 2406
TLV_TYPE_THREAD_ID =
TLV_META_TYPE_UINT    | 2500
TLV_TYPE_THREAD_PERMS =
TLV_META_TYPE_UINT    | 2502
TLV_TYPE_EXIT_CODE =
TLV_META_TYPE_UINT    | 2510
TLV_TYPE_ENTRY_POINT =
TLV_META_TYPE_QWORD   | 2511
TLV_TYPE_ENTRY_PARAMETER =
TLV_META_TYPE_QWORD   | 2512
TLV_TYPE_CREATION_FLAGS =
TLV_META_TYPE_UINT    | 2513
TLV_TYPE_REGISTER_NAME =
TLV_META_TYPE_STRING  | 2540
TLV_TYPE_REGISTER_SIZE =
TLV_META_TYPE_UINT    | 2541
TLV_TYPE_REGISTER_VALUE_32 =
TLV_META_TYPE_UINT    | 2542
TLV_TYPE_REGISTER =
TLV_META_TYPE_GROUP   | 2550
TLV_TYPE_TERMINAL_ROWS =
TLV_META_TYPE_UINT    | 2600
TLV_TYPE_TERMINAL_COLUMNS =
TLV_META_TYPE_UINT    | 2601
TLV_TYPE_MEMORY_SEARCH_NEEDLE =

Memory

TLV_META_TYPE_STRING  | 2650
TLV_TYPE_MEMORY_SEARCH_RESULTS =
TLV_META_TYPE_GROUP   | 2651
TLV_TYPE_MEMORY_SEARCH_MATCH_LEN =
TLV_META_TYPE_UINT    | 2652
TLV_TYPE_MEMORY_SEARCH_START_ADDR =
TLV_META_TYPE_QWORD   | 2653
TLV_TYPE_MEMORY_SEARCH_SECT_LEN =
TLV_META_TYPE_QWORD   | 2654
TLV_TYPE_MEMORY_SEARCH_MATCH_ADDR =
TLV_META_TYPE_QWORD   | 2655
TLV_TYPE_MEMORY_SEARCH_MATCH_STR =
TLV_META_TYPE_STRING  | 2656
TLV_TYPE_IDLE_TIME =

Ui

TLV_META_TYPE_UINT   | 3000
TLV_TYPE_KEYS_DUMP =
TLV_META_TYPE_STRING | 3001
TLV_TYPE_DESKTOP_SCREENSHOT =
TLV_META_TYPE_RAW    | 3002
TLV_TYPE_DESKTOP_SWITCH =
TLV_META_TYPE_BOOL   | 3003
TLV_TYPE_DESKTOP =
TLV_META_TYPE_GROUP  | 3004
TLV_TYPE_DESKTOP_SESSION =
TLV_META_TYPE_UINT   | 3005
TLV_TYPE_DESKTOP_STATION =
TLV_META_TYPE_STRING | 3006
TLV_TYPE_DESKTOP_NAME =
TLV_META_TYPE_STRING | 3007
TLV_TYPE_DESKTOP_SCREENSHOT_QUALITY =
TLV_META_TYPE_UINT   | 3008
TLV_TYPE_DESKTOP_SCREENSHOT_PE32DLL_BUFFER =
TLV_META_TYPE_RAW    | 3010
TLV_TYPE_DESKTOP_SCREENSHOT_PE64DLL_BUFFER =
TLV_META_TYPE_RAW    | 3012
TLV_TYPE_KEYSCAN_TRACK_ACTIVE_WINDOW =
TLV_META_TYPE_BOOL   | 3013
TLV_TYPE_KEYS_SEND =
TLV_META_TYPE_STRING | 3014
TLV_TYPE_MOUSE_ACTION =
TLV_META_TYPE_UINT   | 3015
TLV_TYPE_MOUSE_X =
TLV_META_TYPE_UINT   | 3016
TLV_TYPE_MOUSE_Y =
TLV_META_TYPE_UINT   | 3017
TLV_TYPE_KEYEVENT_SEND =
TLV_META_TYPE_RAW    | 3018
TLV_TYPE_EVENT_SOURCENAME =

Event Log

TLV_META_TYPE_STRING  | 4000
TLV_TYPE_EVENT_HANDLE =
TLV_META_TYPE_QWORD   | 4001
TLV_TYPE_EVENT_NUMRECORDS =
TLV_META_TYPE_UINT    | 4002
TLV_TYPE_EVENT_READFLAGS =
TLV_META_TYPE_UINT    | 4003
TLV_TYPE_EVENT_RECORDOFFSET =
TLV_META_TYPE_UINT    | 4004
TLV_TYPE_EVENT_RECORDNUMBER =
TLV_META_TYPE_UINT    | 4006
TLV_TYPE_EVENT_TIMEGENERATED =
TLV_META_TYPE_UINT    | 4007
TLV_TYPE_EVENT_TIMEWRITTEN =
TLV_META_TYPE_UINT    | 4008
TLV_TYPE_EVENT_ID =
TLV_META_TYPE_UINT    | 4009
TLV_TYPE_EVENT_TYPE =
TLV_META_TYPE_UINT    | 4010
TLV_TYPE_EVENT_CATEGORY =
TLV_META_TYPE_UINT    | 4011
TLV_TYPE_EVENT_STRING =
TLV_META_TYPE_STRING  | 4012
TLV_TYPE_EVENT_DATA =
TLV_META_TYPE_RAW     | 4013
TLV_TYPE_POWER_FLAGS =

Power

TLV_META_TYPE_UINT    | 4100
TLV_TYPE_POWER_REASON =
TLV_META_TYPE_UINT    | 4101
TLV_TYPE_WEBCAM_IMAGE =

Webcam

TLV_META_TYPE_RAW     | (TLV_EXTENSIONS + 1)
TLV_TYPE_WEBCAM_INTERFACE_ID =
TLV_META_TYPE_UINT    | (TLV_EXTENSIONS + 2)
TLV_TYPE_WEBCAM_QUALITY =
TLV_META_TYPE_UINT    | (TLV_EXTENSIONS + 3)
TLV_TYPE_WEBCAM_NAME =
TLV_META_TYPE_STRING  | (TLV_EXTENSIONS + 4)
TLV_TYPE_AUDIO_DURATION =

Audio

TLV_META_TYPE_UINT    | (TLV_EXTENSIONS + 10)
TLV_TYPE_AUDIO_DATA =
TLV_META_TYPE_RAW     | (TLV_EXTENSIONS + 11)
TLV_TYPE_AUDIO_INTERFACE_ID =
TLV_META_TYPE_UINT    | (TLV_EXTENSIONS + 12)
TLV_TYPE_AUDIO_INTERFACE_NAME =
TLV_META_TYPE_STRING  | (TLV_EXTENSIONS + 13)
EXTENSION_ID_STDAPI =

ID for the extension (needs to be a multiple of 1000)

1000
COMMAND_ID_STDAPI_FS_CHDIR =

Associated command ids

EXTENSION_ID_STDAPI + 1
COMMAND_ID_STDAPI_FS_CHMOD =
EXTENSION_ID_STDAPI + 2
COMMAND_ID_STDAPI_FS_DELETE_DIR =
EXTENSION_ID_STDAPI + 3
COMMAND_ID_STDAPI_FS_DELETE_FILE =
EXTENSION_ID_STDAPI + 4
COMMAND_ID_STDAPI_FS_FILE_COPY =
EXTENSION_ID_STDAPI + 5
COMMAND_ID_STDAPI_FS_FILE_EXPAND_PATH =
EXTENSION_ID_STDAPI + 6
COMMAND_ID_STDAPI_FS_FILE_MOVE =
EXTENSION_ID_STDAPI + 7
COMMAND_ID_STDAPI_FS_GETWD =
EXTENSION_ID_STDAPI + 8
COMMAND_ID_STDAPI_FS_LS =
EXTENSION_ID_STDAPI + 9
COMMAND_ID_STDAPI_FS_MD5 =
EXTENSION_ID_STDAPI + 10
COMMAND_ID_STDAPI_FS_MKDIR =
EXTENSION_ID_STDAPI + 11
COMMAND_ID_STDAPI_FS_MOUNT_SHOW =
EXTENSION_ID_STDAPI + 12
COMMAND_ID_STDAPI_FS_SEARCH =
EXTENSION_ID_STDAPI + 13
COMMAND_ID_STDAPI_FS_SEPARATOR =
EXTENSION_ID_STDAPI + 14
COMMAND_ID_STDAPI_FS_SHA1 =
EXTENSION_ID_STDAPI + 15
COMMAND_ID_STDAPI_FS_STAT =
EXTENSION_ID_STDAPI + 16
COMMAND_ID_STDAPI_NET_CONFIG_ADD_ROUTE =
EXTENSION_ID_STDAPI + 17
COMMAND_ID_STDAPI_NET_CONFIG_GET_ARP_TABLE =
EXTENSION_ID_STDAPI + 18
COMMAND_ID_STDAPI_NET_CONFIG_GET_INTERFACES =
EXTENSION_ID_STDAPI + 19
COMMAND_ID_STDAPI_NET_CONFIG_GET_NETSTAT =
EXTENSION_ID_STDAPI + 20
COMMAND_ID_STDAPI_NET_CONFIG_GET_PROXY =
EXTENSION_ID_STDAPI + 21
COMMAND_ID_STDAPI_NET_CONFIG_GET_ROUTES =
EXTENSION_ID_STDAPI + 22
COMMAND_ID_STDAPI_NET_CONFIG_REMOVE_ROUTE =
EXTENSION_ID_STDAPI + 23
COMMAND_ID_STDAPI_NET_RESOLVE_HOST =
EXTENSION_ID_STDAPI + 24
COMMAND_ID_STDAPI_NET_RESOLVE_HOSTS =
EXTENSION_ID_STDAPI + 25
COMMAND_ID_STDAPI_NET_SOCKET_TCP_SHUTDOWN =
EXTENSION_ID_STDAPI + 26
COMMAND_ID_STDAPI_NET_TCP_CHANNEL_OPEN =
EXTENSION_ID_STDAPI + 27
COMMAND_ID_STDAPI_RAILGUN_API =
EXTENSION_ID_STDAPI + 28
COMMAND_ID_STDAPI_RAILGUN_API_MULTI =
EXTENSION_ID_STDAPI + 29
COMMAND_ID_STDAPI_RAILGUN_MEMREAD =
EXTENSION_ID_STDAPI + 30
COMMAND_ID_STDAPI_RAILGUN_MEMWRITE =
EXTENSION_ID_STDAPI + 31
COMMAND_ID_STDAPI_REGISTRY_CHECK_KEY_EXISTS =
EXTENSION_ID_STDAPI + 32
COMMAND_ID_STDAPI_REGISTRY_CLOSE_KEY =
EXTENSION_ID_STDAPI + 33
COMMAND_ID_STDAPI_REGISTRY_CREATE_KEY =
EXTENSION_ID_STDAPI + 34
COMMAND_ID_STDAPI_REGISTRY_DELETE_KEY =
EXTENSION_ID_STDAPI + 35
COMMAND_ID_STDAPI_REGISTRY_DELETE_VALUE =
EXTENSION_ID_STDAPI + 36
COMMAND_ID_STDAPI_REGISTRY_ENUM_KEY =
EXTENSION_ID_STDAPI + 37
COMMAND_ID_STDAPI_REGISTRY_ENUM_KEY_DIRECT =
EXTENSION_ID_STDAPI + 38
COMMAND_ID_STDAPI_REGISTRY_ENUM_VALUE =
EXTENSION_ID_STDAPI + 39
COMMAND_ID_STDAPI_REGISTRY_ENUM_VALUE_DIRECT =
EXTENSION_ID_STDAPI + 40
COMMAND_ID_STDAPI_REGISTRY_LOAD_KEY =
EXTENSION_ID_STDAPI + 41
COMMAND_ID_STDAPI_REGISTRY_OPEN_KEY =
EXTENSION_ID_STDAPI + 42
COMMAND_ID_STDAPI_REGISTRY_OPEN_REMOTE_KEY =
EXTENSION_ID_STDAPI + 43
COMMAND_ID_STDAPI_REGISTRY_QUERY_CLASS =
EXTENSION_ID_STDAPI + 44
COMMAND_ID_STDAPI_REGISTRY_QUERY_VALUE =
EXTENSION_ID_STDAPI + 45
COMMAND_ID_STDAPI_REGISTRY_QUERY_VALUE_DIRECT =
EXTENSION_ID_STDAPI + 46
COMMAND_ID_STDAPI_REGISTRY_SET_VALUE =
EXTENSION_ID_STDAPI + 47
COMMAND_ID_STDAPI_REGISTRY_SET_VALUE_DIRECT =
EXTENSION_ID_STDAPI + 48
COMMAND_ID_STDAPI_REGISTRY_UNLOAD_KEY =
EXTENSION_ID_STDAPI + 49
COMMAND_ID_STDAPI_SYS_CONFIG_DRIVER_LIST =
EXTENSION_ID_STDAPI + 50
COMMAND_ID_STDAPI_SYS_CONFIG_DROP_TOKEN =
EXTENSION_ID_STDAPI + 51
COMMAND_ID_STDAPI_SYS_CONFIG_GETENV =
EXTENSION_ID_STDAPI + 52
COMMAND_ID_STDAPI_SYS_CONFIG_GETPRIVS =
EXTENSION_ID_STDAPI + 53
COMMAND_ID_STDAPI_SYS_CONFIG_GETSID =
EXTENSION_ID_STDAPI + 54
COMMAND_ID_STDAPI_SYS_CONFIG_GETUID =
EXTENSION_ID_STDAPI + 55
COMMAND_ID_STDAPI_SYS_CONFIG_LOCALTIME =
EXTENSION_ID_STDAPI + 56
COMMAND_ID_STDAPI_SYS_CONFIG_REV2SELF =
EXTENSION_ID_STDAPI + 57
COMMAND_ID_STDAPI_SYS_CONFIG_STEAL_TOKEN =
EXTENSION_ID_STDAPI + 58
COMMAND_ID_STDAPI_SYS_CONFIG_SYSINFO =
EXTENSION_ID_STDAPI + 59
COMMAND_ID_STDAPI_SYS_EVENTLOG_CLEAR =
EXTENSION_ID_STDAPI + 60
COMMAND_ID_STDAPI_SYS_EVENTLOG_CLOSE =
EXTENSION_ID_STDAPI + 61
COMMAND_ID_STDAPI_SYS_EVENTLOG_NUMRECORDS =
EXTENSION_ID_STDAPI + 62
COMMAND_ID_STDAPI_SYS_EVENTLOG_OLDEST =
EXTENSION_ID_STDAPI + 63
COMMAND_ID_STDAPI_SYS_EVENTLOG_OPEN =
EXTENSION_ID_STDAPI + 64
COMMAND_ID_STDAPI_SYS_EVENTLOG_READ =
EXTENSION_ID_STDAPI + 65
COMMAND_ID_STDAPI_SYS_POWER_EXITWINDOWS =
EXTENSION_ID_STDAPI + 66
COMMAND_ID_STDAPI_SYS_PROCESS_ATTACH =
EXTENSION_ID_STDAPI + 67
COMMAND_ID_STDAPI_SYS_PROCESS_CLOSE =
EXTENSION_ID_STDAPI + 68
COMMAND_ID_STDAPI_SYS_PROCESS_EXECUTE =
EXTENSION_ID_STDAPI + 69
COMMAND_ID_STDAPI_SYS_PROCESS_GET_INFO =
EXTENSION_ID_STDAPI + 70
COMMAND_ID_STDAPI_SYS_PROCESS_GET_PROCESSES =
EXTENSION_ID_STDAPI + 71
COMMAND_ID_STDAPI_SYS_PROCESS_GETPID =
EXTENSION_ID_STDAPI + 72
COMMAND_ID_STDAPI_SYS_PROCESS_IMAGE_GET_IMAGES =
EXTENSION_ID_STDAPI + 73
COMMAND_ID_STDAPI_SYS_PROCESS_IMAGE_GET_PROC_ADDRESS =
EXTENSION_ID_STDAPI + 74
COMMAND_ID_STDAPI_SYS_PROCESS_IMAGE_LOAD =
EXTENSION_ID_STDAPI + 75
COMMAND_ID_STDAPI_SYS_PROCESS_IMAGE_UNLOAD =
EXTENSION_ID_STDAPI + 76
COMMAND_ID_STDAPI_SYS_PROCESS_KILL =
EXTENSION_ID_STDAPI + 77
COMMAND_ID_STDAPI_SYS_PROCESS_MEMORY_ALLOCATE =
EXTENSION_ID_STDAPI + 78
COMMAND_ID_STDAPI_SYS_PROCESS_MEMORY_FREE =
EXTENSION_ID_STDAPI + 79
COMMAND_ID_STDAPI_SYS_PROCESS_MEMORY_LOCK =
EXTENSION_ID_STDAPI + 80
COMMAND_ID_STDAPI_SYS_PROCESS_MEMORY_PROTECT =
EXTENSION_ID_STDAPI + 81
COMMAND_ID_STDAPI_SYS_PROCESS_MEMORY_QUERY =
EXTENSION_ID_STDAPI + 82
COMMAND_ID_STDAPI_SYS_PROCESS_MEMORY_READ =
EXTENSION_ID_STDAPI + 83
COMMAND_ID_STDAPI_SYS_PROCESS_MEMORY_UNLOCK =
EXTENSION_ID_STDAPI + 84
COMMAND_ID_STDAPI_SYS_PROCESS_MEMORY_WRITE =
EXTENSION_ID_STDAPI + 85
COMMAND_ID_STDAPI_SYS_PROCESS_THREAD_CLOSE =
EXTENSION_ID_STDAPI + 86
COMMAND_ID_STDAPI_SYS_PROCESS_THREAD_CREATE =
EXTENSION_ID_STDAPI + 87
COMMAND_ID_STDAPI_SYS_PROCESS_THREAD_GET_THREADS =
EXTENSION_ID_STDAPI + 88
COMMAND_ID_STDAPI_SYS_PROCESS_THREAD_OPEN =
EXTENSION_ID_STDAPI + 89
COMMAND_ID_STDAPI_SYS_PROCESS_THREAD_QUERY_REGS =
EXTENSION_ID_STDAPI + 90
COMMAND_ID_STDAPI_SYS_PROCESS_THREAD_RESUME =
EXTENSION_ID_STDAPI + 91
COMMAND_ID_STDAPI_SYS_PROCESS_THREAD_SET_REGS =
EXTENSION_ID_STDAPI + 92
COMMAND_ID_STDAPI_SYS_PROCESS_THREAD_SUSPEND =
EXTENSION_ID_STDAPI + 93
COMMAND_ID_STDAPI_SYS_PROCESS_THREAD_TERMINATE =
EXTENSION_ID_STDAPI + 94
COMMAND_ID_STDAPI_SYS_PROCESS_WAIT =
EXTENSION_ID_STDAPI + 95
COMMAND_ID_STDAPI_UI_DESKTOP_ENUM =
EXTENSION_ID_STDAPI + 96
COMMAND_ID_STDAPI_UI_DESKTOP_GET =
EXTENSION_ID_STDAPI + 97
COMMAND_ID_STDAPI_UI_DESKTOP_SCREENSHOT =
EXTENSION_ID_STDAPI + 98
COMMAND_ID_STDAPI_UI_DESKTOP_SET =
EXTENSION_ID_STDAPI + 99
COMMAND_ID_STDAPI_UI_ENABLE_KEYBOARD =
EXTENSION_ID_STDAPI + 100
COMMAND_ID_STDAPI_UI_ENABLE_MOUSE =
EXTENSION_ID_STDAPI + 101
COMMAND_ID_STDAPI_UI_GET_IDLE_TIME =
EXTENSION_ID_STDAPI + 102
COMMAND_ID_STDAPI_UI_GET_KEYS_UTF8 =
EXTENSION_ID_STDAPI + 103
COMMAND_ID_STDAPI_UI_SEND_KEYEVENT =
EXTENSION_ID_STDAPI + 104
COMMAND_ID_STDAPI_UI_SEND_KEYS =
EXTENSION_ID_STDAPI + 105
COMMAND_ID_STDAPI_UI_SEND_MOUSE =
EXTENSION_ID_STDAPI + 106
COMMAND_ID_STDAPI_UI_START_KEYSCAN =
EXTENSION_ID_STDAPI + 107
COMMAND_ID_STDAPI_UI_STOP_KEYSCAN =
EXTENSION_ID_STDAPI + 108
COMMAND_ID_STDAPI_UI_UNLOCK_DESKTOP =
EXTENSION_ID_STDAPI + 109
COMMAND_ID_STDAPI_WEBCAM_AUDIO_RECORD =
EXTENSION_ID_STDAPI + 110
COMMAND_ID_STDAPI_WEBCAM_GET_FRAME =
EXTENSION_ID_STDAPI + 111
COMMAND_ID_STDAPI_WEBCAM_LIST =
EXTENSION_ID_STDAPI + 112
COMMAND_ID_STDAPI_WEBCAM_START =
EXTENSION_ID_STDAPI + 113
COMMAND_ID_STDAPI_WEBCAM_STOP =
EXTENSION_ID_STDAPI + 114
COMMAND_ID_STDAPI_AUDIO_MIC_START =
EXTENSION_ID_STDAPI + 115
COMMAND_ID_STDAPI_AUDIO_MIC_STOP =
EXTENSION_ID_STDAPI + 116
COMMAND_ID_STDAPI_AUDIO_MIC_LIST =
EXTENSION_ID_STDAPI + 117
COMMAND_ID_STDAPI_SYS_PROCESS_SET_TERM_SIZE =
EXTENSION_ID_STDAPI + 118
COMMAND_ID_STDAPI_SYS_PROCESS_MEMORY_SEARCH =
EXTENSION_ID_STDAPI + 119
COMMAND_ID_STDAPI_SYS_CONFIG_UPDATE_TOKEN =
EXTENSION_ID_STDAPI + 120