mirror of
https://github.com/rapid7/metasploit-framework
synced 2024-11-12 11:52:01 +01:00
add comments
git-svn-id: file:///home/svn/framework3/trunk@5255 4d416f70-5f16-0410-b530-b9f4589650da
This commit is contained in:
parent
043985ce90
commit
643ad017a1
@ -5,7 +5,7 @@ module Msf
|
||||
class MsfWindow
|
||||
|
||||
#
|
||||
#
|
||||
# This class is dedicated to output auxiliary modules
|
||||
#
|
||||
class Auxiliary < Msf::Ui::Gtk2::SkeletonBasic
|
||||
|
||||
@ -18,8 +18,6 @@ module Msf
|
||||
# call the parent
|
||||
super(title)
|
||||
|
||||
|
||||
|
||||
# Define the size and border
|
||||
set_default_size(400, 400)
|
||||
set_border_width(10)
|
||||
@ -37,7 +35,6 @@ module Msf
|
||||
vbox.pack_start(r_sw, false, false, 0)
|
||||
r_sw.add(@r_view)
|
||||
|
||||
|
||||
# Live log
|
||||
@buffer = SkeletonTextBuffer.new
|
||||
@view = Gtk::TextView.new(@buffer)
|
||||
@ -64,6 +61,7 @@ module Msf
|
||||
@buffer.insert_with_tags(@buffer.end_iter, Time.now.strftime("%H:%m:%S "), 'forestgreen_bold')
|
||||
@buffer.insert_with_tags(@buffer.end_iter, Rex::Text.to_utf8(data), 'white_wrap')
|
||||
|
||||
# scroll to the end
|
||||
@buffer.move_mark('end_mark', @buffer.end_iter)
|
||||
@view.scroll_mark_onscreen(@buffer.get_mark('end_mark'))
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user