Skip to content

Commit

Permalink
change to BurpExtlib to BurpExtensionCommons
Browse files Browse the repository at this point in the history
  • Loading branch information
isayan committed Feb 26, 2021
1 parent 6029839 commit 60c8100
Show file tree
Hide file tree
Showing 21 changed files with 243 additions and 485 deletions.
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2021 raise-isayan

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
4 changes: 2 additions & 2 deletions Readme-ja.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ gradlew release
```

## 必須ライブラリ
ビルドには別途 [BurpExtLib](https://github.com/raise-isayan/BurpExtLib) のライブラリを必要とします。
* BurpExtlib v2.1.2.0
ビルドには別途 [BurpExtensionCommons](https://github.com/raise-isayan/BurpExtensionCommons) のライブラリを必要とします。
* BurpExtensionCommons v0.4.1.0

### 利用ライブラリ

Expand Down
6 changes: 3 additions & 3 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,9 @@ PrivateIP: true
gradlew release
```

## Required libraries
Build requires a separate library of [BurpExtLib](https://github.com/raise-isayan/BurpExtLib).
* BurpExtlib v2.1.2.1
## Required library
Building requires a [BurpExtensionCommons](https://github.com/raise-isayan/BurpExtensionCommons) library.
* BurpExtensionCommons v0.4.1.0

## Use Library
* google gson (https://github.com/google/gson)
Expand Down
6 changes: 3 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ repositories {
jcenter()
}

sourceCompatibility = '1.8' // -source
targetCompatibility = '1.8' // -target
sourceCompatibility = '11' // -source
targetCompatibility = '11' // -target

mainClassName = 'passive.BigIPDiscover'

Expand Down Expand Up @@ -37,7 +37,7 @@ jar {
manifest {
attributes 'Main-Class': mainClassName
}

from {
configurations.runtimeClasspath.filter{ it.exists() }.collect { it.isDirectory() ? it : zipTree(it) }
}
Expand Down
6 changes: 3 additions & 3 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
netbeans.org-netbeans-modules-javascript2-requirejs.enabled=true
release_version_major=1.7
release_version_minor=4.1
netbeans.org-netbeans-modules-javascript2-requirejs.enabled=true
release_version_major=1.8
release_version_minor=0.0
Binary file added libs/BurpExtensionCommons-v0.4.1.0.jar
Binary file not shown.
Binary file removed libs/BurpExtlib-v2.1.2.1.jar
Binary file not shown.
Binary file not shown.
14 changes: 7 additions & 7 deletions src/main/java/burp/BurpExtender.java
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
package burp;

import extension.burp.BurpExtenderImpl;
import extension.burp.NotifyType;
import passive.Config;
import passive.OptionProperty;
import passive.signature.BigIPCookieProperty;
import passive.IOptionProperty;
import passive.signature.BigIPCookieTab;
import passive.signature.BigIPCookie;
import extend.util.IpUtil;
import extend.view.base.MatchItem;
import java.beans.PropertyChangeEvent;
import java.beans.PropertyChangeListener;
import java.io.File;
Expand All @@ -27,14 +27,14 @@ public class BurpExtender extends BurpExtenderImpl implements IBurpExtender, IHt
private final static Logger logger = Logger.getLogger(BurpExtender.class.getName());

private final File CONFIG_FILE = new File(Config.getExtensionHomeDir(), Config.getExtensionFile());

private final BigIPCookieTab tabbetOption = new BigIPCookieTab();

static {
File logDir = Config.getExtensionHomeDir();
logDir.mkdirs();
}

public static BurpExtender getInstance() {
return BurpExtenderImpl.<BurpExtender>getInstance();
}
Expand Down Expand Up @@ -101,7 +101,7 @@ public void freePassiveScan(IHttpRequestResponse messageInfo) {
}
// Request判定
if (property.getScanRequest() && messageInfo.getRequest() != null) {
bigIpList.addAll(bigip.parseMessage(true, messageInfo.getRequest()));
bigIpList.addAll(bigip.parseMessage(true, messageInfo.getRequest()));
}
StringBuilder buff = new StringBuilder();
for (int i = 0; i < bigIpList.size(); i++) {
Expand All @@ -119,10 +119,10 @@ public void freePassiveScan(IHttpRequestResponse messageInfo) {
buff.append(item.getIPAddr());
}
if (buff.length() > 0) {
if (property.getNotifyTypes().contains(MatchItem.NotifyType.ITEM_HIGHLIGHT)) {
if (property.getNotifyTypes().contains(NotifyType.ITEM_HIGHLIGHT)) {
messageInfo.setHighlight(property.getHighlightColor().toString());
}
if (this.getProperty().getBigIPCookieProperty().getNotifyTypes().contains(MatchItem.NotifyType.COMMENT)) {
if (this.getProperty().getBigIPCookieProperty().getNotifyTypes().contains(NotifyType.COMMENT)) {
messageInfo.setComment(buff.toString());
}
}
Expand Down
207 changes: 0 additions & 207 deletions src/main/java/extend/util/external/JsonUtil.java

This file was deleted.

59 changes: 0 additions & 59 deletions src/main/java/extend/util/external/JsonpElement.java

This file was deleted.

Loading

0 comments on commit 60c8100

Please sign in to comment.