-
Notifications
You must be signed in to change notification settings - Fork 161
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial implementation of custom regex columns #153.
- Loading branch information
Showing
7 changed files
with
254 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
src/main/java/com/nccgroup/loggerplusplus/logview/logtable/RegexLogColumn.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
// | ||
// Burp Suite Logger++ | ||
// | ||
// Released as open source by NCC Group Plc - https://www.nccgroup.trust/ | ||
// | ||
// Developed by Soroush Dalili (@irsdl) | ||
// | ||
// Project link: http://www.github.com/nccgroup/BurpSuiteLoggerPlusPlus | ||
// | ||
// Released under AGPL see LICENSE for more information | ||
// | ||
|
||
package com.nccgroup.loggerplusplus.logview.logtable; | ||
|
||
// To define a structure for table headers | ||
// This will provide a high degree of customisation | ||
// a sample JSON object which will be converted to this object is as follows: | ||
// "{'columnsDefinition':[{'id':'number','visibleName':'#','width':50,'type':'int','readonly':true,'order':1,'visible':true,'description':'Item index number','isRegEx':false,'regExData':{'regExString':'','regExCaseSensitive':false}}]}"; | ||
|
||
import com.google.gson.*; | ||
import com.nccgroup.loggerplusplus.logentry.LogEntryField; | ||
import lombok.Getter; | ||
import lombok.Setter; | ||
|
||
import javax.swing.table.TableColumn; | ||
import java.lang.reflect.Type; | ||
import java.util.regex.Pattern; | ||
|
||
public class RegexLogColumn extends LogTableColumn implements Comparable<LogTableColumn>{ | ||
|
||
@Getter @Setter | ||
Pattern pattern; | ||
@Getter @Setter | ||
boolean matchRequest; | ||
@Getter @Setter | ||
boolean matchResponse; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.