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



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

def binmode
  raise NotImplementedError
end

#closeObject



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

def close
  raise NotImplementedError
end

#close_readObject



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

def close_read
  raise NotImplementedError
end

#close_writeObject



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

def close_write
  raise NotImplementedError
end

#closed?Boolean

Returns:

  • (Boolean)

Raises:



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

def closed?
  raise NotImplementedError
end

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



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

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

#each_byte(&block) ⇒ Object



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

def each_byte(&block)
  raise NotImplementedError
end

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



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

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

#eofObject



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

def eof
  raise NotImplementedError
end

#eof?Boolean

Conditionals

Returns:

  • (Boolean)


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

def eof?
  return eof
end

#fcntl(cmd, arg) ⇒ Object



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

def fcntl(cmd, arg)
  raise NotImplementedError
end

#flushObject



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

def flush
  raise NotImplementedError
end

#fsyncObject



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

def fsync
  raise NotImplementedError
end

#getcObject



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

def getc
  raise NotImplementedError
end

#gets(sep = $/) ⇒ Object



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

def gets(sep = $/)
  raise NotImplementedError
end

#ioctl(cmd, arg) ⇒ Object



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

def ioctl(cmd, arg)
  raise NotImplementedError
end

#isattyObject



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

def isatty
  raise NotImplementedError
end

#linenoObject



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

def lineno
  raise NotImplementedError
end

#posObject



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

def pos
  raise NotImplementedError
end


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

def print
  raise NotImplementedError
end

#printf(fmt, *args) ⇒ Object



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

def printf(fmt, *args)
  raise NotImplementedError
end

#putc(obj) ⇒ Object



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

def putc(obj)
  raise NotImplementedError
end

#puts(obj) ⇒ Object



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

def puts(obj)
  raise NotImplementedError
end

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



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

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

#readcharObject



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

def readchar
  raise NotImplementedError
end

#readline(sep = $/) ⇒ Object



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

def readline(sep = $/)
  raise NotImplementedError
end

#readlines(sep = $/) ⇒ Object



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

def readlines(sep = $/)
  raise NotImplementedError
end

#rewindObject



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

def rewind
  raise NotImplementedError
end

#seek(offset, whence = SEEK_SET) ⇒ Object



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

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

#statObject



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

def stat
  raise NotImplementedError
end

#syncObject



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

def sync
  raise NotImplementedError
end

#sysread(length) ⇒ Object



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

def sysread(length)
  raise NotImplementedError
end

#sysseek(offset, whence = SEEK_SET) ⇒ Object



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

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

#syswrite(buf) ⇒ Object



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:

  • (Boolean)


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

def tty?
  return isatty
end

#ungetc(val) ⇒ Object



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

def ungetc(val)
  raise NotImplementedError
end

#write(buf) ⇒ Object



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

def write(buf)
  raise NotImplementedError
end