Class: Rex::Post::IO

Inherits:
Object
  • Object
show all
Defined in:
lib/rex/post/io.rb

Overview

Base IO class that is modeled after the ruby IO class.

Direct Known Subclasses

Meterpreter::Extensions::Stdapi::Fs::IO

Instance Method Summary collapse

Instance Method Details

#binmodeObject

I/O operations

Raises:



40
41
42
# File 'lib/rex/post/io.rb', line 40

def binmode
  raise NotImplementedError
end

#closeObject

Raises:



44
45
46
# File 'lib/rex/post/io.rb', line 44

def close
  raise NotImplementedError
end

#close_readObject

Raises:



48
49
50
# File 'lib/rex/post/io.rb', line 48

def close_read
  raise NotImplementedError
end

#close_writeObject

Raises:



52
53
54
# File 'lib/rex/post/io.rb', line 52

def close_write
  raise NotImplementedError
end

#closed?Boolean

Raises:

Returns:



26
27
28
# File 'lib/rex/post/io.rb', line 26

def closed?
  raise NotImplementedError
end

#each(sep = $/, &block) ⇒ Object

Raises:



56
57
58
# File 'lib/rex/post/io.rb', line 56

def each(sep = $/, &block)
  raise NotImplementedError
end

#each_byte(&block) ⇒ Object

Raises:



64
65
66
# File 'lib/rex/post/io.rb', line 64

def each_byte(&block)
  raise NotImplementedError
end

#each_line(sep = $/, &block) ⇒ Object

Raises:



60
61
62
# File 'lib/rex/post/io.rb', line 60

def each_line(sep = $/, &block)
  raise NotImplementedError
end

#eofObject

Raises:



68
69
70
# File 'lib/rex/post/io.rb', line 68

def eof
  raise NotImplementedError
end

#eof?Boolean

Conditionals

Returns:



22
23
24
# File 'lib/rex/post/io.rb', line 22

def eof?
  return eof
end

#fcntl(cmd, arg) ⇒ Object

Raises:



72
73
74
# File 'lib/rex/post/io.rb', line 72

def fcntl(cmd, arg)
  raise NotImplementedError
end

#flushObject

Raises:



76
77
78
# File 'lib/rex/post/io.rb', line 76

def flush
  raise NotImplementedError
end

#fsyncObject

Raises:



80
81
82
# File 'lib/rex/post/io.rb', line 80

def fsync
  raise NotImplementedError
end

#getcObject

Raises:



84
85
86
# File 'lib/rex/post/io.rb', line 84

def getc
  raise NotImplementedError
end

#gets(sep = $/) ⇒ Object

Raises:



88
89
90
# File 'lib/rex/post/io.rb', line 88

def gets(sep = $/)
  raise NotImplementedError
end

#ioctl(cmd, arg) ⇒ Object

Raises:



92
93
94
# File 'lib/rex/post/io.rb', line 92

def ioctl(cmd, arg)
  raise NotImplementedError
end

#isattyObject

Raises:



96
97
98
# File 'lib/rex/post/io.rb', line 96

def isatty
  raise NotImplementedError
end

#linenoObject

Raises:



100
101
102
# File 'lib/rex/post/io.rb', line 100

def lineno
  raise NotImplementedError
end

#posObject

Raises:



104
105
106
# File 'lib/rex/post/io.rb', line 104

def pos
  raise NotImplementedError
end

Raises:



108
109
110
# File 'lib/rex/post/io.rb', line 108

def print
  raise NotImplementedError
end

#printf(fmt, *args) ⇒ Object

Raises:



112
113
114
# File 'lib/rex/post/io.rb', line 112

def printf(fmt, *args)
  raise NotImplementedError
end

#putc(obj) ⇒ Object

Raises:



116
117
118
# File 'lib/rex/post/io.rb', line 116

def putc(obj)
  raise NotImplementedError
end

#puts(obj) ⇒ Object

Raises:



120
121
122
# File 'lib/rex/post/io.rb', line 120

def puts(obj)
  raise NotImplementedError
end

#read(length = nil, buffer = nil) ⇒ Object

Raises:



124
125
126
# File 'lib/rex/post/io.rb', line 124

def read(length = nil, buffer = nil)
  raise NotImplementedError
end

#readcharObject

Raises:



128
129
130
# File 'lib/rex/post/io.rb', line 128

def readchar
  raise NotImplementedError
end

#readline(sep = $/) ⇒ Object

Raises:



132
133
134
# File 'lib/rex/post/io.rb', line 132

def readline(sep = $/)
  raise NotImplementedError
end

#readlines(sep = $/) ⇒ Object

Raises:



136
137
138
# File 'lib/rex/post/io.rb', line 136

def readlines(sep = $/)
  raise NotImplementedError
end

#rewindObject

Raises:



140
141
142
# File 'lib/rex/post/io.rb', line 140

def rewind
  raise NotImplementedError
end

#seek(offset, whence = SEEK_SET) ⇒ Object

Raises:



144
145
146
# File 'lib/rex/post/io.rb', line 144

def seek(offset, whence = SEEK_SET)
  raise NotImplementedError
end

#statObject

Raises:



148
149
150
# File 'lib/rex/post/io.rb', line 148

def stat
  raise NotImplementedError
end

#syncObject

Raises:



152
153
154
# File 'lib/rex/post/io.rb', line 152

def sync
  raise NotImplementedError
end

#sysread(length) ⇒ Object

Raises:



156
157
158
# File 'lib/rex/post/io.rb', line 156

def sysread(length)
  raise NotImplementedError
end

#sysseek(offset, whence = SEEK_SET) ⇒ Object

Raises:



160
161
162
# File 'lib/rex/post/io.rb', line 160

def sysseek(offset, whence = SEEK_SET)
  raise NotImplementedError
end

#syswrite(buf) ⇒ Object

Raises:



164
165
166
# File 'lib/rex/post/io.rb', line 164

def syswrite(buf)
  raise NotImplementedError
end

#tellObject



168
169
170
# File 'lib/rex/post/io.rb', line 168

def tell
  return pos
end

#tty?Boolean

Returns:



30
31
32
# File 'lib/rex/post/io.rb', line 30

def tty?
  return isatty
end

#ungetc(val) ⇒ Object

Raises:



172
173
174
# File 'lib/rex/post/io.rb', line 172

def ungetc(val)
  raise NotImplementedError
end

#write(buf) ⇒ Object

Raises:



176
177
178
# File 'lib/rex/post/io.rb', line 176

def write(buf)
  raise NotImplementedError
end