Class: Watobo::Gui::FuzzerGui

Inherits:
FXDialogBox
  • Object
show all
Includes:
Constants, Icons, Utils
Defined in:
lib/watobo/gui/fuzzer_gui.rb

Constant Summary

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 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

Instance Method Summary collapse

Methods included from Utils

#addDecoder, #addEncoder, #addStringInfo, #cleanupHTTP, load_plugins, #removeTags, #replace_text

Constructor Details

#initialize(owner, project, chat) ⇒ FuzzerGui

Returns a new instance of FuzzerGui.



1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
# File 'lib/watobo/gui/fuzzer_gui.rb', line 1035

def initialize(owner, project, chat)
   # Invoke base class initialize function first
   super(owner, "Fuzzer", :opts => DECOR_ALL,:width=>800, :height=>600)
   self.icon = ICON_FUZZER
   @project = project
   @chat = chat
   @request = chat.request.dup
   @fuzzing_paused = false
   @fuzzing_started = false
   @scan_status_lock = Mutex.new

   #  @scan_prefs = @project.getScanPreferences()

   @numRunningChecks = 0

   @fuzzer_tags = []
   @filters = []
   @scanner = nil

   #  @fuzzels = FXDataTarget.new()

   mr_splitter = FXSplitter.new(self, LAYOUT_FILL_X|LAYOUT_FILL_Y|SPLITTER_VERTICAL|SPLITTER_REVERSED|SPLITTER_TRACKING)
   # top = FXHorizontalFrame.new(mr_splitter, :opts => LAYOUT_FILL_X|LAYOUT_FILL_Y|LAYOUT_SIDE_BOTTOM)
   top_frame = FXVerticalFrame.new(mr_splitter, :opts => LAYOUT_FILL_X|LAYOUT_FILL_Y||LAYOUT_FIX_HEIGHT|LAYOUT_BOTTOM,:height => 500)
   top_splitter = FXSplitter.new(top_frame, LAYOUT_FILL_X|SPLITTER_HORIZONTAL|LAYOUT_FILL_Y|SPLITTER_TRACKING)

   log_frame = FXVerticalFrame.new(mr_splitter, :opts => LAYOUT_FILL_X|LAYOUT_SIDE_BOTTOM,:height => 100)

   #LAYOUT_FILL_X in combination with LAYOUT_FIX_WIDTH

   req_editor = FXVerticalFrame.new(top_splitter, :opts => LAYOUT_FILL_X|LAYOUT_FIX_WIDTH|LAYOUT_FILL_Y|FRAME_GROOVE,:width => 400, :height => 500)



   req_edit_header = FXHorizontalFrame.new(req_editor, :opts => LAYOUT_FILL_X)
   FXLabel.new(req_edit_header, "Request:" )
   req_viewer = FXVerticalFrame.new(req_editor, :opts => LAYOUT_FILL_X|LAYOUT_FILL_Y|FRAME_SUNKEN|FRAME_THICK, :padding => 0)
   req_reset_button = FXButton.new(req_edit_header, "Reset", nil, nil, 0, FRAME_RAISED|FRAME_THICK|LAYOUT_RIGHT)
   req_reset_button.connect(SEL_COMMAND, method(:onRequestReset))


   frame = FXHorizontalFrame.new(req_editor, :opts => LAYOUT_FILL_X|FRAME_GROOVE)
   @fuzz_button = FXButton.new(frame, "Start", nil, nil, 0, FRAME_RAISED|FRAME_THICK)
   @fuzz_button.connect(SEL_COMMAND) { |sender, sel, data|
      if sender.text =~ /cancel/i then
         @fuzz_button.text = "Start"
         @log_viewer.log(LOG_INFO,"Fuzzing canceled!")
         @scanner.cancel if @scanner
         @pbar.progress = 0
         @pbar.total = 0
         @pbar.barColor=0
         @pbar.barColor = 'grey' #FXRGB(255,0,0)
      else
         @fuzz_button.text = "Cancel"
         startFuzzing()
         @fuzz_button.text = "Start" if @scanner.nil?
      end
   }

   @pbar = FXProgressBar.new(frame, nil, 0, LAYOUT_FILL_X|LAYOUT_FILL_Y|FRAME_SUNKEN|FRAME_THICK|PROGRESSBAR_HORIZONTAL)

   @pbar.progress = 0
   @pbar.total = 0
   @pbar.barColor=0
   @pbar.barColor = 'grey' #FXRGB(255,0,0)
   @requestEditor = FuzzRequestEditor.new(req_viewer, :opts => LAYOUT_FILL_X|LAYOUT_FILL_Y)
   @requestEditor.setText(@request)

   #  req_options = FXVerticalFrame.new(req_editor, :opts => LAYOUT_FILL_X|LAYOUT_FILL_Y)
   #eq_options = FXVerticalFrame.new(frame, :opts => LAYOUT_FILL_X|LAYOUT_SIDE_BOTTOM)
   opt = FXGroupBox.new(req_editor, "Fuzzing Options", LAYOUT_SIDE_BOTTOM|FRAME_GROOVE|LAYOUT_FILL_X, 0, 0, 0, 0)

   #  opt = FXVerticalFrame.new(frame,:opts => LAYOUT_FILL_X|LAYOUT_FILL_Y, :padding => 0)
   #  btn = FXVerticalFrame.new(frame,:opts => LAYOUT_FILL_X|LAYOUT_FILL_Y, :padding => 0)
   #FXCheckButton.new(rob, "URL Encoding", nil, 0, ICON_BEFORE_TEXT|LAYOUT_SIDE_TOP)
   @updateContentLength = FXCheckButton.new(opt, "Update Content-Length", nil, 0, ICON_BEFORE_TEXT|LAYOUT_SIDE_TOP)
   @updateContentLength.checkState = true

   @updateSession = FXCheckButton.new(opt, "Update Session Information", nil, 0, JUSTIFY_LEFT|JUSTIFY_TOP|ICON_BEFORE_TEXT|LAYOUT_SIDE_TOP)
   @updateSession.checkState = true

   #@updateSession.connect(SEL_COMMAND) do |sender, sel, item|
   #  @runLogin.enabled = @updateSession.checked?
   #end
   #  @runLogin = FXCheckButton.new(opt, "Run Login", nil, 0, JUSTIFY_LEFT|JUSTIFY_TOP|ICON_BEFORE_TEXT|LAYOUT_SIDE_TOP)
   #  @runLogin.checkState = false

   @logScanChats = FXCheckButton.new(opt, "Log Scan", nil, 0, JUSTIFY_LEFT|JUSTIFY_TOP|ICON_BEFORE_TEXT|LAYOUT_SIDE_TOP)
   @logScanChats.checkState = false
   @logScanChats.connect(SEL_COMMAND) do |sender, sel, item|
      if @logScanChats.checked? then
         @log_dir_text.enabled = true
         @log_dir_label.enabled = true
        # @log_dir_btn.enable
      else
         @log_dir_text.enabled = false
         @log_dir_label.enabled = false
        # @log_dir_btn.disable
      end
   end


   @log_dir_dt = FXDataTarget.new('')
   #   @log_dir_dt.value = @project.scanLogDirectory() if File.exist?(@project.scanLogDirectory())
   @log_dir_label = FXLabel.new(opt, "Scan Name:" )
   scanlog_frame = FXHorizontalFrame.new(opt,:opts => LAYOUT_FILL_X|LAYOUT_SIDE_TOP)
   @log_dir_text = FXTextField.new(scanlog_frame, 20,
   :target => @log_dir_dt, :selector => FXDataTarget::ID_VALUE,
   :opts => TEXTFIELD_NORMAL|LAYOUT_FILL_COLUMN)
   @log_dir_text.handle(self, FXSEL(SEL_UPDATE, 0), nil)
  # @log_dir_btn = FXButton.new(scanlog_frame, "Change")
   # @log_dir_btn.connect(SEL_COMMAND, method(:selectLogDirectory))

   @log_dir_text.enabled = false
   @log_dir_label.enabled = false
   #@log_dir_btn.disable




   fuzz_setup_frame = FXVerticalFrame.new(top_splitter, :opts => LAYOUT_FILL_X|LAYOUT_FILL_Y|FRAME_GROOVE|LAYOUT_FIX_WIDTH, :width => 400)

   @tabBook = FXTabBook.new(fuzz_setup_frame, nil, 0, :opts => LAYOUT_FILL_X|LAYOUT_FILL_Y|LAYOUT_RIGHT)

   FXTabItem.new(@tabBook, "Settings", nil)
   rframe = FXVerticalFrame.new(@tabBook, :opts => LAYOUT_FILL_X|LAYOUT_FILL_Y|FRAME_RAISED)
   frame = FXVerticalFrame.new(rframe, :opts => LAYOUT_FILL_X|LAYOUT_FILL_Y|FRAME_SUNKEN, :padding => 0)
   @fuzzer_tree = FuzzerTree.new(frame, @project)

   @fuzzer_tree.subscribe(:new_tag) do |tag|
      @fuzzer_tags.push tag
      @requestEditor.addTag(tag.name)
      @requestEditor.highlightTags()
   end

   @fuzzer_tree.subscribe(:remove_tag) do |tag|
      @fuzzer_tags.delete(tag)
      @requestEditor.removeTag(tag.name)
      @requestEditor.highlightTags()
   end

   @fuzzer_tree.subscribe(:new_filter) do |filter|
      @filters.push filter
   end

   @fuzzer_tree.subscribe(:remove_filter) do |filter|
      @filters.delete(filter)
   end

   FXTabItem.new(@tabBook, "Results", nil)
   rframe = FXVerticalFrame.new(@tabBook, :opts => LAYOUT_FILL_X|LAYOUT_FILL_Y|FRAME_RAISED)
   frame = FXVerticalFrame.new(rframe, :opts => LAYOUT_FILL_X|LAYOUT_FILL_Y|FRAME_SUNKEN, :padding => 0)
   @matchTable = FXTable.new(frame, :opts => TABLE_COL_SIZABLE|TABLE_ROW_SIZABLE|LAYOUT_FILL_X|LAYOUT_FILL_Y|FRAME_SUNKEN|TABLE_READONLY|LAYOUT_SIDE_TOP, :padding => 2)
   initTable(@matchTable)

   btnframe = FXHorizontalFrame.new(rframe, :opts => LAYOUT_FILL_X|FRAME_SUNKEN)
   button = FXButton.new(btnframe, "Save Matches", nil, nil, 0, FRAME_RAISED|FRAME_THICK)

   button.connect(SEL_COMMAND, method(:saveMatches))

   FXTabItem.new(@tabBook, "Statistics", nil)
   statframe = FXVerticalFrame.new(@tabBook, :opts => LAYOUT_FILL_X|LAYOUT_FILL_Y|FRAME_RAISED)
   @stat_viewer = StatisticsFrame.new(statframe, :opts => LAYOUT_FILL_X|LAYOUT_FILL_Y|FRAME_RAISED, :padding => 0)
   FXVerticalFrame.new(statframe, :opts => LAYOUT_FILL_X|LAYOUT_FIX_HEIGHT|FRAME_NONE, :height => 250)

   log_frame_header = FXHorizontalFrame.new(log_frame, :opts => LAYOUT_FILL_X)
   FXLabel.new(log_frame_header, "Logs:" )
   log_text_frame = FXVerticalFrame.new(log_frame, LAYOUT_FILL_X|LAYOUT_FILL_Y|FRAME_SUNKEN|FRAME_GROOVE, :padding=>0)
   @log_viewer = LogViewer.new(log_text_frame, :opts => LAYOUT_FILL_X|LAYOUT_FILL_Y)
   
   add_update_timer(250)

end

Instance Method Details

#add_update_timer(ms) ⇒ Object



1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
# File 'lib/watobo/gui/fuzzer_gui.rb', line 1209

def add_update_timer(ms)
      @update_timer = FXApp.instance.addTimeout( ms, :repeat => true) {
        unless @scanner.nil?
          @scan_status_lock.synchronize do

          if @pbar.total > 0
            sum_progress = 0
            @scanner.progress.each_value do |v|
              sum_progress += v[:progress]
            end
            @pbar.progress = sum_progress
          end
    
         if @scanner.finished?
          @scanner = nil
          #logger("Scan Finished!")
           @log_viewer.log(LOG_INFO,"Done fuzzing!")
          @pbar.progress = 0
          @pbar.total = 0
          @pbar.barColor = 'grey' #FXRGB(255,0,0)
         # @btn_quickscan.text = "QuickScan"
         end
       end
     
end
}
end

#addMatch(fuzzle, match) ⇒ Object



949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
# File 'lib/watobo/gui/fuzzer_gui.rb', line 949

def addMatch(fuzzle, match)
   s = []
   fuzzle.each_pair do |k, v|
      s.push "#{k}=#{v}"
   end
   lastRowIndex = @matchTable.getNumRows
   @matchTable.appendRows(1)
   @matchTable.setItemText(lastRowIndex, 0, s.join("\n"))
   @matchTable.getItem(lastRowIndex, 0).justify = FXTableItem::LEFT
   @matchTable.fitRowsToContents(lastRowIndex)
   cell_text = match.gsub(/(\n+|\r+)/, " ")
   cell_text = ( cell_text.slice(0..150) + "..." ).strip if match.length > 150
   @matchTable.setItemText(lastRowIndex, 1, cell_text)
   @matchTable.setItemData(lastRowIndex, 1, match)
   @matchTable.getItem(lastRowIndex, 1).justify = FXTableItem::LEFT
end

#filterResponse(response, fuzzle) ⇒ Object



930
931
932
933
934
935
936
937
938
939
940
941
942
943
# File 'lib/watobo/gui/fuzzer_gui.rb', line 930

def filterResponse(response, fuzzle)

   @filters.each do |f|
      matches = f.func.call(response) if f.func.respond_to? :call
      if matches.length > 0

         matches.each do |m|
            yield fuzzle, m
         end

      end
   end

end

#hideObject



871
872
873
874
# File 'lib/watobo/gui/fuzzer_gui.rb', line 871

def hide()
   @scanner.cancel() if @scanner
   super
end

#initTable(table) ⇒ Object



882
883
884
885
886
887
888
889
# File 'lib/watobo/gui/fuzzer_gui.rb', line 882

def initTable(table)
   table.clearItems()
   table.setTableSize(0, 2)
   table.visibleRows = 20
   table.rowHeader.width = 0
   table.setColumnText( 0, "Tag/Value" )
   table.setColumnText( 1, "Match" )
end

#listTagsObject



876
877
878
879
880
# File 'lib/watobo/gui/fuzzer_gui.rb', line 876

def listTags()
   tags = []
   tags.concat @sourceSelect.getTags()
   return tags
end

#onRequestReset(sender, sel, item) ⇒ Object



867
868
869
# File 'lib/watobo/gui/fuzzer_gui.rb', line 867

def onRequestReset(sender,sel,item)
   @requestEditor.setText(@request)
end

#saveMatches(sender, sel, ptr) ⇒ Object



901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
# File 'lib/watobo/gui/fuzzer_gui.rb', line 901

def saveMatches(sender, sel, ptr)
   begin
     # puts @project.settings[:session_path]
     # path = @project.settings[:session_path]+"/"
      filename = FXFileDialog.getSaveFilename(self, "Save file", nil, "All Files (*)")
      if filename != ""
         if File.exists?(filename)
            response = FXMessageBox.question(self, MBOX_YES_NO, "File exists", "Overwrite existing file?")
            return 0 if response != MBOX_CLICKED_YES

         end
         fh = File.new(filename, "w")
         @matchTable.numRows.times do |i|
            #puts items[1].to_s
            data = @matchTable.getItemData(i,1)
            fh.puts data.strip if data
         end
         fh.close
      end
   rescue => bang
      puts bang
      puts bang.backtrace if $DEBUG
   end
end

#selectLogDirectory(sender, sel, item) ⇒ Object



891
892
893
894
895
896
897
898
899
# File 'lib/watobo/gui/fuzzer_gui.rb', line 891

def selectLogDirectory(sender, sel, item)
   workspace_dt = FXFileDialog.getOpenDirectory(self, "Select Log Directory", @log_dir_dt.value)
   if workspace_dt != "" then
      if File.exists?(workspace_dt) then
         @log_dir_dt.value = workspace_dt
         @log_dir_text.handle(self, FXSEL(SEL_UPDATE, 0), nil)
      end
   end
end

#startFuzzingObject



967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
# File 'lib/watobo/gui/fuzzer_gui.rb', line 967

def startFuzzing()
   initTable(@matchTable)

   @log_viewer.log(LOG_INFO,"Prepare Fuzzing: Generators")
   check_list = []
   check_list << FuzzerCheck.new(@project, @fuzzer_tags, @filters, @requestEditor)

   # create dummy chat, not needed for fuzzing
   chat_list = []
   chat_list << Watobo::Chat.new(@chat.request, @chat.response, :source => CHAT_SOURCE_FUZZER, :id => 0 )




   scan_prefs = @project.getScanPreferences
   # we don't want logout detection in manual requests ... yet
   scan_prefs[:logout_signatures] = []
   # scan_prefs[:csrf_requests] = @csrf_requests
   scan_prefs[:check_online] = false
   # check if logging all scan chat

    if @logScanChats.checked?
      scan_prefs[:scanlog_name] = @log_dir_dt.value unless @log_dir_dt.value.empty?
 end
 
 #  @scanner = Watobo::Scanner2.new(chat_list, check_list, @project.passive_checks, scan_prefs)
  @scanner = Watobo::Scanner3.new(chat_list, check_list , [], scan_prefs)
   @pbar.total = @scanner.sum_total
   @pbar.progress = 0
   @pbar.barColor = 'red'

   @scanner.subscribe(:progress) { |m|
      @pbar.increment(1)
   }

   check_list.first.subscribe(:fuzzer_match) { |fuzzle, request, response, match|
      @stat_viewer.addResponse(response)
      addMatch(fuzzle, match)

   }

  # Thread.new {
      begin
         m = "start fuzzing..."
         @log_viewer.log(LOG_INFO,m)
         scan_prefs = Hash.new
         scan_prefs[:update_session] = @updateSession.checked?
         scan_prefs[:run_passive_checks] = false
         scan_prefs[:update_content_length] = @updateContentLength.checked?

         puts scan_prefs.to_yaml
puts "run scanner"
         @scanner.run(scan_prefs)
         #@fuzz_button.text = "Start"
         #@pbar.total = 0
         #@pbar.progress = 0
         #@pbar.barColor = 'grey'
         #m = "finished fuzzing!"
         #@log_viewer.log(LOG_INFO,m)
      rescue => bang
         puts bang
         puts bang.backtrace if $DEBUG
      end
  # }

end

#startSample(count) ⇒ Object



926
927
928
# File 'lib/watobo/gui/fuzzer_gui.rb', line 926

def startSample(count)
   #TODO: Create and viewer for sample requests
end

#updateStatistics(request, response) ⇒ Object



945
946
947
# File 'lib/watobo/gui/fuzzer_gui.rb', line 945

def updateStatistics(request, response)

end