Class: Watobo::Gui::ConversationTableCtrl2
- Inherits:
-
FXVerticalFrame
- Object
- FXVerticalFrame
- Watobo::Gui::ConversationTableCtrl2
show all
- Includes:
- Icons
- Defined in:
- lib/watobo/gui/conversation_table_ctrl2.rb
Constant Summary
Constants included
from Icons
Icons::ICON_ADD_PROJECT, Icons::ICON_BROWSER_MEDIUM, Icons::ICON_BROWSER_SMALL, Icons::ICON_BTN_DOWN, Icons::ICON_BTN_UP, Icons::ICON_CB_CHECKED, Icons::ICON_CB_CHECKED_ORANGE, Icons::ICON_CB_UNCHECKED, Icons::ICON_CONVERSATION, Icons::ICON_DASHBOARD, Icons::ICON_DIFFER, Icons::ICON_FOLDER, Icons::ICON_FOLDER_SMALL, Icons::ICON_FUZZER, Icons::ICON_FUZZER_MEDIUM, Icons::ICON_FUZZER_SMALL, Icons::ICON_FUZZ_FILTER, Icons::ICON_FUZZ_GENERATOR, Icons::ICON_FUZZ_TAG, Icons::ICON_HINTS, Icons::ICON_HINTS_INFO, Icons::ICON_HINTS_INFO_SMALL, Icons::ICON_HINTS_SMALL, Icons::ICON_INFO, Icons::ICON_INFO_INFO, Icons::ICON_INFO_INFO_SMALL, Icons::ICON_INFO_SMALL, Icons::ICON_INFO_USER, Icons::ICON_INFO_USER_SMALL, Icons::ICON_INTERCEPTOR, Icons::ICON_LOGIN_WIZZARD, Icons::ICON_MANUAL_REQUEST, Icons::ICON_MANUAL_REQUEST_MEDIUM, Icons::ICON_MANUAL_REQUEST_SMALL, Icons::ICON_PAUSE, Icons::ICON_PLUGIN, Icons::ICON_PROJECT, Icons::ICON_PROJECT_SMALL, Icons::ICON_REPORT, Icons::ICON_REQUEST, Icons::ICON_REQUEST_SMALL, Icons::ICON_SEND_REQUEST, Icons::ICON_SITE, Icons::ICON_SITE_SMALL, Icons::ICON_START, Icons::ICON_STOP, Icons::ICON_TOKEN, Icons::ICON_TRANSCODER, Icons::ICON_VULN, Icons::ICON_VULN_BP, Icons::ICON_VULN_BP_SMALL, Icons::ICON_VULN_CRITICAL, Icons::ICON_VULN_CRITICAL_SMALL, Icons::ICON_VULN_HIGH, Icons::ICON_VULN_HIGH_SMALL, Icons::ICON_VULN_LOW, Icons::ICON_VULN_LOW_SMALL, Icons::ICON_VULN_MEDIUM, Icons::ICON_VULN_MEDIUM_SMALL, Icons::ICON_VULN_SMALL, Icons::ICON_WATOBO, Icons::SIBERAS_ICON, Icons::TBL_ICON_LOCK, Icons::WATOBO_LOGO
Constants included
from Constants
Constants::AC_GROUP_APACHE, Constants::AC_GROUP_DOMINO, Constants::AC_GROUP_ENUMERATION, Constants::AC_GROUP_FILE_INCLUSION, Constants::AC_GROUP_FLASH, Constants::AC_GROUP_GENERIC, Constants::AC_GROUP_JBOSS, Constants::AC_GROUP_JOOMLA, Constants::AC_GROUP_SAP, Constants::AC_GROUP_SQL, Constants::AC_GROUP_TYPO3, Constants::AC_GROUP_XSS, Constants::AUTH_TYPE_BASIC, Constants::AUTH_TYPE_DIGEST, Constants::AUTH_TYPE_NONE, Constants::AUTH_TYPE_NTLM, Constants::CHAT_SOURCE_AUTO_SCAN, Constants::CHAT_SOURCE_FUZZER, Constants::CHAT_SOURCE_INTERCEPT, Constants::CHAT_SOURCE_MANUAL, Constants::CHAT_SOURCE_MANUAL_SCAN, Constants::CHAT_SOURCE_PROXY, Constants::CHAT_SOURCE_UNDEF, Constants::DEFAULT_PORT_HTTP, Constants::DEFAULT_PORT_HTTPS, Constants::FINDING_TYPE_HINT, Constants::FINDING_TYPE_INFO, Constants::FINDING_TYPE_UNDEFINED, Constants::FINDING_TYPE_VULN, Constants::FIRST_TIME_FILE, Constants::GUI_REGULAR_FONT_SIZE, Constants::GUI_SMALL_FONT_SIZE, Constants::ICON_PATH, Constants::LOG_DEBUG, Constants::LOG_INFO, Constants::SCAN_CANCELED, Constants::SCAN_FINISHED, Constants::SCAN_PAUSED, Constants::SCAN_STARTED, Constants::TE_CHUNKED, Constants::TE_COMPRESS, Constants::TE_DEFLATE, Constants::TE_GZIP, Constants::TE_IDENTITY, Constants::TE_NONE, Constants::VULN_RATING_CRITICAL, Constants::VULN_RATING_HIGH, Constants::VULN_RATING_INFO, Constants::VULN_RATING_LOW, Constants::VULN_RATING_MEDIUM, Constants::VULN_RATING_UNDEFINED
Instance Attribute Summary collapse
Instance Method Summary
collapse
Constructor Details
Returns a new instance of ConversationTableCtrl2.
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
|
# File 'lib/watobo/gui/conversation_table_ctrl2.rb', line 263
def initialize(owner, opts)
super(owner, opts)
@table = nil
@filter = default_filter
f = FXHorizontalFrame.new(self, :opts => LAYOUT_FILL_X|FRAME_RAISED )
info_frame = FXHorizontalFrame.new(f, :opts => LAYOUT_FILL_X|FRAME_LINE )
@filter_info = FXText.new(info_frame, :opts => LAYOUT_FILL_X|TEXT_WORDWRAP )
@filter_info.setFont(FXFont.new(getApp(), "helvetica", 9, FONTWEIGHT_BOLD, FONTENCODING_DEFAULT))
@filter_info.backColor = @filter_info.parent.backColor
@filter_info.editable = false
@filter_info.cursorColor = @filter_info.parent.backColor
@filter_info.visibleRows = 2
hs_green = FXHiliteStyle.new
hs_green.normalForeColor = FXRGBA(0,255,0,1)
hs_green.normalBackColor = @filter_info.backColor
hs_green.style = FXText::STYLE_BOLD
hs_red = FXHiliteStyle.new
hs_red.normalForeColor = FXRGBA(255,0,0,1)
hs_red.normalBackColor = @filter_info.backColor
hs_red.style = FXText::STYLE_BOLD
@filter_info.styled = true
@filter_info.hiliteStyles = [ hs_green, hs_red]
update_text
@table_option_autoscroll = FXCheckButton.new(f, "autoscroll", nil, 0, ICON_BEFORE_TEXT|LAYOUT_SIDE_LEFT)
@table_option_autoscroll.setCheck(true)
@filter_info.connect(SEL_LEFTBUTTONPRESS){
filter = @table.nil? ? {} : @table.filter
dlg = Watobo::Gui::ConversationFilterDialog.new(self, filter)
if dlg.execute != 0
@filter = dlg.filter_settings
unless @table.nil?
getApp().beginWaitCursor do
@table.apply_filter(@filter)
end
end
update_text
end
}
=begin
@filter_info.connect(SEL_COMMAND){
@x = getApp.activeWindow.x + self.x + self.parent.x + self.parent.parent.x + self.parent.parent.parent.x + self.parent.parent.parent.parent.x
@y = getApp.activeWindow.y + self.y + self.parent.y + self.parent.parent.y + self.parent.parent.parent.y + self.parent.parent.parent.parent.y
@w = 200
puts "open menu | #{@x}, #{@y}"
FXMenuPane.new(self) do |menu_pane|
#frame = ConversationFilterFrame.new(menu_pane, :opts => LAYOUT_FIX_WIDTH|LAYOUT_FIX_HEIGHT, :width => @w, :height => 200)
frame = ConversationFilterFrame.new(menu_pane, :opts => LAYOUT_FILL_Y|LAYOUT_FILL_X)
menu_pane.create
#menu_pane.popup(nil, x, y, 200, 200)
menu_pane.popup(nil, @x, @y)
app.runModalWhileShown(menu_pane)
puts "done!"
puts frame.filter_settings.to_yaml
end
}
=end
end
|
Instance Attribute Details
#filter ⇒ Object
Returns the value of attribute filter.
223
224
225
|
# File 'lib/watobo/gui/conversation_table_ctrl2.rb', line 223
def filter
@filter
end
|
Instance Method Details
#default_filter ⇒ Object
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
|
# File 'lib/watobo/gui/conversation_table_ctrl2.rb', line 243
def default_filter
fs = {
:scope_only => false ,
:hide_tested => false,
:unique => false
}
fs[:url_pattern] = ''
fs[:request_pattern] = ''
fs[:response_pattern] = ''
fs[:mime_types] = []
fs[:status_codes] = []
fs[:hidden_extension_patterns] = %w( ppt doc xls pptx docx xlsx pdf jpg jpeg ico png css gif js)
fs[:hidden_extensions] = true
fs[:show_extensions] = false
fs[:show_extension_patterns] = %w(jsp php asp aspx)
fs
end
|
#subscribe(event, &callback) ⇒ Object
342
343
344
|
# File 'lib/watobo/gui/conversation_table_ctrl2.rb', line 342
def subscribe(event, &callback)
(@event_dispatcher_listeners[event] ||= []) << callback
end
|
#table=(table) ⇒ Object
225
226
227
228
|
# File 'lib/watobo/gui/conversation_table_ctrl2.rb', line 225
def table=(table)
@table = table
end
|
#text=(t) ⇒ Object
237
238
239
240
241
|
# File 'lib/watobo/gui/conversation_table_ctrl2.rb', line 237
def text=(t)
@filter_info.text = t
@filter_info.appendText " "
@filter_info.appendStyledText("click to change", 1)
end
|
#update_text ⇒ Object
230
231
232
233
234
235
|
# File 'lib/watobo/gui/conversation_table_ctrl2.rb', line 230
def update_text
@filter_info.text = filter_text
@filter_info.appendText " "
@filter_info.appendStyledText("click to change", 1)
end
|