Class: Watobo::Gui::MainWindow

Inherits:
FXMainWindow
  • Object
show all
Includes:
Watobo, Constants, Watobo::Gui, Icons
Defined in:
lib/watobo/gui/main_window.rb

Overview

M A I N A P P L I C A T I O N W I N D O W

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::AUTH_TYPE_UNKNOWN, 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

Constants included from Watobo::Gui

DIFF_TYPE_NEW, DIFF_TYPE_ORIG, SEL_TYPE_GREP, SEL_TYPE_HIGHLIGHT, TABLE_COL_COMMENT, TABLE_COL_COOKIE, TABLE_COL_HOST, TABLE_COL_METHOD, TABLE_COL_PARMS, TABLE_COL_PATH, TABLE_COL_SSL, TABLE_COL_STATUS

Constants included from Diff::LCS

Diff::LCS::BalancedCallbacks, Diff::LCS::PATCH_MAP, Diff::LCS::SequenceCallbacks, Diff::LCS::VERSION

Constants included from Watobo

LICENSE, VERSION

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Watobo::Gui

add_plugin, application, browser_preview, check_first_run, clear_plugins, create_application, history, load_gui_icon, load_icon, plugins, project, project=, save_default_settings_UNUSED, save_scanner_settings, save_settings, start

Methods included from Diff::LCS

LCS, __diff_direction, __inverse_vector, __lcs, __normalize_patchset, __position_hash, __replace_next_larger, diff, #diff, #lcs, patch, #patch, #patch!, patch!, sdiff, #sdiff, traverse_balanced, #traverse_balanced, traverse_sequences, #traverse_sequences, #unpatch, #unpatch!, unpatch!

Methods included from Watobo

active_checks, active_module_path, base_directory, create_project, create_request, init_framework, load_chat, load_defaults, log, logs, passive_checks, passive_module_path, plugin_path, print_debug, print_summary, project, project_name, running_projects, save_proxy_settings, save_proxy_settings_UNUSED, session_name, temp_directory, version, working_directory, workspace_path, workspace_path=

Instance Attribute Details

#active_projectObject (readonly)

Returns the value of attribute active_project.



26
27
28
# File 'lib/watobo/gui/main_window.rb', line 26

def active_project
  @active_project
end

#default_settingsObject (readonly)

Returns the value of attribute default_settings.



24
25
26
# File 'lib/watobo/gui/main_window.rb', line 24

def default_settings
  @default_settings
end

#interceptorObject (readonly)

Returns the value of attribute interceptor.



23
24
25
# File 'lib/watobo/gui/main_window.rb', line 23

def interceptor
  @interceptor
end

#iproxyObject (readonly)

Returns the value of attribute iproxy.



27
28
29
# File 'lib/watobo/gui/main_window.rb', line 27

def iproxy
  @iproxy
end

#watobo_baseObject (readonly)

Returns the value of attribute watobo_base.



25
26
27
# File 'lib/watobo/gui/main_window.rb', line 25

def watobo_base
  @watobo_base
end

Instance Method Details

#open_manual_request_editor(chat) ⇒ Object



29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# File 'lib/watobo/gui/main_window.rb', line 29

def open_manual_request_editor(chat)
  begin
    mrtk = ManualRequestEditor.new(FXApp.instance, @project, chat)

    mrtk.create

    mrtk.subscribe(:show_browser_preview) { |request, response|
      openBrowser(request, response)
    }

    mrtk.subscribe(:new_chat) { |c|
      Watobo::Chats.add c
    }
    mrtk.show(Fox::PLACEMENT_SCREEN)
  rescue => bang
  puts "!!! could not open manual request"
  puts bang
  end
end