2007-06-26 21:09:30 +00:00
|
|
|
module Msf
|
|
|
|
module Ui
|
|
|
|
module Gtk2
|
|
|
|
|
|
|
|
class Console
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
# Classic console herited from Gtk::Window
|
|
|
|
#
|
|
|
|
class Shell < Msf::Ui::Gtk2::SkeletonConsole
|
|
|
|
|
|
|
|
def initialize(iter)
|
|
|
|
super(iter)
|
|
|
|
end
|
|
|
|
|
|
|
|
end # Shell
|
|
|
|
|
|
|
|
#
|
|
|
|
# Meterpreter Console
|
|
|
|
#
|
|
|
|
class Meterpreter < Msf::Ui::Gtk2::SkeletonConsole
|
2007-06-27 21:41:44 +00:00
|
|
|
def initialize(iter)
|
|
|
|
|
|
|
|
# meterpreter client
|
|
|
|
client = iter[3]
|
2007-06-26 21:09:30 +00:00
|
|
|
|
2007-06-27 21:41:44 +00:00
|
|
|
# call the parent
|
2007-06-26 21:09:30 +00:00
|
|
|
super(iter)
|
2007-06-27 21:41:44 +00:00
|
|
|
|
|
|
|
# Not sexy
|
|
|
|
# TODO: use the API
|
|
|
|
send_cmd("execute -f cmd.exe -i -H")
|
|
|
|
|
2007-06-26 21:09:30 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
end # Meterpreter
|
2007-06-27 21:41:44 +00:00
|
|
|
|
2007-06-26 21:09:30 +00:00
|
|
|
end # Console
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|