From 63c9d9f63627e458fe98b12e0a0624dfc53b6834 Mon Sep 17 00:00:00 2001 From: bit4woo Date: Thu, 11 Apr 2024 18:56:54 +0800 Subject: [PATCH] Update BrowserSearchAction.java --- src/InternetSearch/BrowserSearchAction.java | 22 ++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/InternetSearch/BrowserSearchAction.java b/src/InternetSearch/BrowserSearchAction.java index 77a66c4f..2406bcbb 100644 --- a/src/InternetSearch/BrowserSearchAction.java +++ b/src/InternetSearch/BrowserSearchAction.java @@ -56,33 +56,33 @@ public final void actionPerformed(ActionEvent e) { String searchContent =null; if (tableModel.getClass().equals(LineTableModel.class)) { - InfoTuple result = ((LineTableModel) tableModel).getSearchTypeAndValue(row, columnIndex, engine); + InfoTuple result = ((LineTableModel) tableModel).getSearchTypeAndValue(row, columnIndex); searchType = result.first; searchContent = result.second; } if (tableModel.getClass().equals(SearchTableModel.class)) { - InfoTuple result = ((SearchTableModel) tableModel).getSearchTypeAndValue(row, columnIndex, engine); + InfoTuple result = ((SearchTableModel) tableModel).getSearchTypeAndValue(row, columnIndex); searchType = result.first; searchContent = result.second; } if (tableModel.getClass().equals(TargetTableModel.class)) { - InfoTuple result = ((TargetTableModel) tableModel).getSearchTypeAndValue(row, columnIndex, engine); + InfoTuple result = ((TargetTableModel) tableModel).getSearchTypeAndValue(row, columnIndex); searchType = result.first; searchContent = result.second; } - if (StringUtils.isEmpty(searchContent) || StringUtils.isEmpty(searchType)) { + if (StringUtils.isEmpty(searchContent) || StringUtils.isEmpty(searchType)) return; - searchContent = SearchEngine.buildSearchDork(searchContent, engine, searchType); - String url = buildSearchUrl(engine,searchContent); - try { - Commons.browserOpen(url, null); - } catch (Exception err) { - err.printStackTrace(BurpExtender.getStderr()); - } + searchContent = SearchEngine.buildSearchDork(searchContent, engine, searchType); + String url = buildSearchUrl(engine,searchContent); + + try { + Commons.browserOpen(url, null); + } catch (Exception err) { + err.printStackTrace(BurpExtender.getStderr()); } } }