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



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

def binmode
  raise NotImplementedError
end

#closeObject



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

def close
  raise NotImplementedError
end

#close_readObject



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

def close_read
  raise NotImplementedError
end

#close_writeObject



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

def close_write
  raise NotImplementedError
end

#closed?Boolean



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

def closed?
  raise NotImplementedError
end

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



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

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

#each_byte(&block) ⇒ Object



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

def each_byte(&block)
  raise NotImplementedError
end

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



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

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

#eofObject



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

def eof
  raise NotImplementedError
end

#eof?Boolean

Conditionals



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

def eof?
  return eof
end

#fcntl(cmd, arg) ⇒ Object



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

def fcntl(cmd, arg)
  raise NotImplementedError
end

#flushObject



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

def flush
  raise NotImplementedError
end

#fsyncObject



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

def fsync
  raise NotImplementedError
end

#getcObject



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

def getc
  raise NotImplementedError
end

#gets(sep = $/) ⇒ Object



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

def gets(sep = $/)
  raise NotImplementedError
end

#ioctl(cmd, arg) ⇒ Object



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

def ioctl(cmd, arg)
  raise NotImplementedError
end

#isattyObject



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

def isatty
  raise NotImplementedError
end

#linenoObject



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

def lineno
  raise NotImplementedError
end

#posObject



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

def pos
  raise NotImplementedError
end


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

def print
  raise NotImplementedError
end

#printf(fmt, *args) ⇒ Object



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

def printf(fmt, *args)
  raise NotImplementedError
end

#putc(obj) ⇒ Object



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

def putc(obj)
  raise NotImplementedError
end

#puts(obj) ⇒ Object



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

def puts(obj)
  raise NotImplementedError
end

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



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

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

#readcharObject



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

def readchar
  raise NotImplementedError
end

#readline(sep = $/) ⇒ Object



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

def readline(sep = $/)
  raise NotImplementedError
end

#readlines(sep = $/) ⇒ Object



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

def readlines(sep = $/)
  raise NotImplementedError
end

#rewindObject



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

def rewind
  raise NotImplementedError
end

#seek(offset, whence = SEEK_SET) ⇒ Object



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

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

#statObject



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

def stat
  raise NotImplementedError
end

#syncObject



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

def sync
  raise NotImplementedError
end

#sysread(length) ⇒ Object



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

def sysread(length)
  raise NotImplementedError
end

#sysseek(offset, whence = SEEK_SET) ⇒ Object



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

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

#syswrite(buf) ⇒ Object



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

def syswrite(buf)
  raise NotImplementedError
end

#tellObject



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

def tell
  return pos
end

#tty?Boolean



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

def tty?
  return isatty
end

#ungetc(val) ⇒ Object



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

def ungetc(val) 
  raise NotImplementedError
end

#write(buf) ⇒ Object



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

def write(buf)
  raise NotImplementedError
end