11package yagura .view ;
22
3+ import burp .BurpExtender ;
34import burp .BurpExtension ;
4- import burp .api .montoya .http .message .HttpRequestResponse ;
55import burp .api .montoya .http .message .requests .HttpRequest ;
66import burp .api .montoya .http .message .responses .HttpResponse ;
77import burp .api .montoya .proxy .ProxyHttpRequestResponse ;
@@ -341,14 +341,14 @@ public void mousePressed(java.awt.event.MouseEvent evt) {
341341
342342 },
343343 new String [] {
344- "Data" , "#" , "host" , "method" , "URL" , "status" , "length" , "comment"
344+ "Data" , "#" , "host" , "method" , "URL" , "status" , "length" , "comment" , "listener port"
345345 }
346346 ) {
347347 Class [] types = new Class [] {
348- java .lang .Object .class , java .lang .Object .class , java .lang .String .class , java .lang .String .class , java .lang .String .class , java .lang .String .class , java .lang .Integer .class , java .lang .String .class
348+ java .lang .Object .class , java .lang .Object .class , java .lang .String .class , java .lang .String .class , java .lang .String .class , java .lang .String .class , java .lang .Integer .class , java .lang .String .class , java . lang . Integer . class
349349 };
350350 boolean [] canEdit = new boolean [] {
351- false , true , false , false , false , false , false , true
351+ false , true , false , false , false , false , false , true , true
352352 };
353353
354354 public Class getColumnClass (int columnIndex ) {
@@ -366,6 +366,9 @@ public void mouseClicked(java.awt.event.MouseEvent evt) {
366366 }
367367 });
368368 scrollResult .setViewportView (tableResult );
369+ if (tableResult .getColumnModel ().getColumnCount () > 0 ) {
370+ tableResult .getColumnModel ().getColumn (8 ).setResizable (false );
371+ }
369372
370373 splitResult .setLeftComponent (scrollResult );
371374
@@ -563,6 +566,11 @@ public void keyPressed(KeyEvent ke) {
563566 // comment
564567 this .tableResult .getColumnModel ().getColumn (7 ).setPreferredWidth (80 );
565568
569+ // lister port
570+ this .tableResult .getColumnModel ().getColumn (8 ).setMinWidth (40 );
571+ this .tableResult .getColumnModel ().getColumn (8 ).setPreferredWidth (60 );
572+ this .tableResult .getColumnModel ().getColumn (8 ).setMaxWidth (80 );
573+
566574 this .tableResult .setSelectionMode (javax .swing .ListSelectionModel .MULTIPLE_INTERVAL_SELECTION );
567575
568576 }
@@ -799,9 +807,14 @@ private boolean isValidRegex(String text) {
799807 break ;
800808 }
801809 }
810+ if (searchProp .getListenerPort () > -1 && searchProp .getListenerPort () == item .getListenerPort ()) {
811+ find = true ;
812+ break ;
813+ }
802814 this .lblProgress .setText (String .format (SEARCH_PROGRESS , (double ) i / proxyHistory .size () * 100.0 ));
803815 } while (false );
804816 if (m != null && find ) {
817+ BurpExtender .helpers ().outPrintln ("row:" + item .getOrdinal ());
805818 this .modelSearch .addRow (new ResultView (item , item .getOrdinal ()));
806819 }
807820 if (this .cancel ) {
@@ -880,6 +893,7 @@ public void setProperty(JSearchProperty searchProp) {
880893 this .chkComment .setSelected (searchProp .isComment ());
881894
882895 this .resultFilterDlg .setProperty (searchProp .getFilterProperty ());
896+
883897 this .hideFilter ();
884898 }
885899
0 commit comments