shell change broke msfgui console

git-svn-id: file:///home/svn/framework3/trunk@4651 4d416f70-5f16-0410-b530-b9f4589650da
unstable
fab 2007-04-04 22:32:54 +00:00
parent d616c4babe
commit 4dfa1f0b8f
2 changed files with 2 additions and 39 deletions

View File

@ -314,7 +314,7 @@ class MsfAssistant
@mydriver.target_idx = (@mydriver.exploit.datastore['TARGET']).to_i
@pipe = Rex::IO::BidirectionalPipe.new
@pipe = Msf::Ui::Gtk2::GtkConsolePipe.new
@mydriver.exploit.init_ui(@pipe, @pipe)
@mydriver.payload.init_ui(@pipe, @pipe)

View File

@ -155,46 +155,9 @@ end
class GtkConsolePipe < Rex::IO::BidirectionalPipe
attr_accessor :input
attr_accessor :output
attr_accessor :prompt
attr_accessor :buffer
attr_accessor :tree
def initialize(buffer)
self.buffer = buffer
super()
end
def eof?
self.pipe_input.eof?
end
def intrinsic_shell?
true
end
def supports_readline
def prompting?
false
end
def _print_prompt
end
def pgets
self.pipe_input.gets
end
def print_line(msg = "")
print(msg + "\n")
end
def print(msg = "")
self.buffer.insert(self.buffer.end_iter, Time.now.strftime("%H:%m:%S") + " " + Rex::Text.to_utf8(msg))
end
end
end