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 Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#filedObject (protected)

Returns the value of attribute filed


13
14
15
# File 'lib/rex/post/io.rb', line 13

def filed
  @filed
end

#modeObject (protected)

Returns the value of attribute mode


13
14
15
# File 'lib/rex/post/io.rb', line 13

def mode
  @mode
end

Instance Method Details

#binmodeObject

I/O operations

Raises:

  • (NotImplementedError)

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

def binmode
  raise NotImplementedError
end

#closeObject

Raises:

  • (NotImplementedError)

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

def close
  raise NotImplementedError
end

#close_readObject

Raises:

  • (NotImplementedError)

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

def close_read
  raise NotImplementedError
end

#close_writeObject

Raises:

  • (NotImplementedError)

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

def close_write
  raise NotImplementedError
end

#closed?Boolean

Returns:

  • (Boolean)

Raises:

  • (NotImplementedError)

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

def closed?
  raise NotImplementedError
end

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

Raises:

  • (NotImplementedError)

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

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

#each_byte(&block) ⇒ Object

Raises:

  • (NotImplementedError)

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

def each_byte(&block)
  raise NotImplementedError
end

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

Raises:

  • (NotImplementedError)

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

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

#eofObject

Raises:

  • (NotImplementedError)

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

Raises:

  • (NotImplementedError)

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

def fcntl(cmd, arg)
  raise NotImplementedError
end

#flushObject

Raises:

  • (NotImplementedError)

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

def flush
  raise NotImplementedError
end

#fsyncObject

Raises:

  • (NotImplementedError)

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

def fsync
  raise NotImplementedError
end

#getcObject

Raises:

  • (NotImplementedError)

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

def getc
  raise NotImplementedError
end

#gets(sep = $/) ⇒ Object

Raises:

  • (NotImplementedError)

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

def gets(sep = $/)
  raise NotImplementedError
end

#ioctl(cmd, arg) ⇒ Object

Raises:

  • (NotImplementedError)

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

def ioctl(cmd, arg)
  raise NotImplementedError
end

#isattyObject

Raises:

  • (NotImplementedError)

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

def isatty
  raise NotImplementedError
end

#linenoObject

Raises:

  • (NotImplementedError)

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

def lineno
  raise NotImplementedError
end

#posObject

Raises:

  • (NotImplementedError)

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

def pos
  raise NotImplementedError
end

Raises:

  • (NotImplementedError)

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

def print
  raise NotImplementedError
end

#printf(fmt, *args) ⇒ Object

Raises:

  • (NotImplementedError)

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

def printf(fmt, *args)
  raise NotImplementedError
end

#putc(obj) ⇒ Object

Raises:

  • (NotImplementedError)

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

def putc(obj)
  raise NotImplementedError
end

#puts(obj) ⇒ Object

Raises:

  • (NotImplementedError)

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

def puts(obj)
  raise NotImplementedError
end

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

Raises:

  • (NotImplementedError)

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

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

#readcharObject

Raises:

  • (NotImplementedError)

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

def readchar
  raise NotImplementedError
end

#readline(sep = $/) ⇒ Object

Raises:

  • (NotImplementedError)

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

def readline(sep = $/)
  raise NotImplementedError
end

#readlines(sep = $/) ⇒ Object

Raises:

  • (NotImplementedError)

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

def readlines(sep = $/)
  raise NotImplementedError
end

#rewindObject

Raises:

  • (NotImplementedError)

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

def rewind
  raise NotImplementedError
end

#seek(offset, whence = SEEK_SET) ⇒ Object

Raises:

  • (NotImplementedError)

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

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

#statObject

Raises:

  • (NotImplementedError)

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

def stat
  raise NotImplementedError
end

#syncObject

Raises:

  • (NotImplementedError)

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

def sync
  raise NotImplementedError
end

#sysread(length) ⇒ Object

Raises:

  • (NotImplementedError)

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

def sysread(length)
  raise NotImplementedError
end

#sysseek(offset, whence = SEEK_SET) ⇒ Object

Raises:

  • (NotImplementedError)

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

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

#syswrite(buf) ⇒ Object

Raises:

  • (NotImplementedError)

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

Raises:

  • (NotImplementedError)

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

def ungetc(val)
  raise NotImplementedError
end

#write(buf) ⇒ Object

Raises:

  • (NotImplementedError)

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

def write(buf)
  raise NotImplementedError
end