Module Rex::Compat
In: lib/rex/compat.rb

This class provides os-specific functionality

Methods

Constants

STD_INPUT_HANDLE = -10
STD_OUTPUT_HANDLE = -11
STD_ERROR_HANDLE = -12
GENERIC_READ = 0x80000000
GENERIC_WRITE = 0x40000000
GENERIC_EXECUTE = 0x20000000
FILE_SHARE_READ = 0x00000001
FILE_SHARE_WRITE = 0x00000002
OPEN_EXISTING = 0x00000003
ENABLE_LINE_INPUT = 2
ENABLE_ECHO_INPUT = 4
ENABLE_PROCESSED_INPUT = 1

Public Class methods

Platform detection

Platform independent socket pair

Get a handle to Win32 /dev/null

Obtain the path to our interpreter

Set a standard handle to a new value

Change the Windows console to blocking mode

Read directly from the win32 console

Change the Windows console to non-blocking mode

Call WinExec (equiv to system("cmd &")

[Validate]