Skip to content

Commit

Permalink
fix SendTo
Browse files Browse the repository at this point in the history
  • Loading branch information
isayan committed Feb 18, 2021
1 parent e97a2d4 commit 145e673
Show file tree
Hide file tree
Showing 10 changed files with 27 additions and 19 deletions.
6 changes: 3 additions & 3 deletions Readme-ja.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Burp Suiteにはアジアの文字エンコーディングの利用に欠点が
## ビルド

```
gradlew build
gradlew release
```

## 動作環境
Expand All @@ -36,7 +36,7 @@ gradlew build

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

### 利用ライブラリ

Expand All @@ -48,7 +48,7 @@ gradlew build
* BSD 3-Clause license
* https://github.com/bobbylight/RSyntaxTextArea/blob/master/RSyntaxTextArea/src/main/resources/META-INF/LICENSE

* gson (https://github.com/google/gson)
* Google gson (https://github.com/google/gson)
* Apache License 2.0
* https://github.com/google/gson/blob/master/LICENSE

Expand Down
6 changes: 3 additions & 3 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ If you are online, please refer to [help](/src/main/help/help.adoc).
## build

```
gradlew build
gradlew release
```

## Operating environment
Expand All @@ -36,7 +36,7 @@ gradlew build

## Required library
Building requires a [BurpExtLib](https://github.com/raise-isayan/BurpExtLib) library.
* BurpExtlib v2.1.2.0
* BurpExtlib v2.1.2.2

## Use Library
* Apache common codec (https://commons.apache.org/proper/commons-codec/)
Expand All @@ -47,7 +47,7 @@ Building requires a [BurpExtLib](https://github.com/raise-isayan/BurpExtLib) lib
* BSD 3-Clause license
* https://github.com/bobbylight/RSyntaxTextArea/blob/master/RSyntaxTextArea/src/main/resources/META-INF/LICENSE

* gson (https://github.com/google/gson)
* Google gson (https://github.com/google/gson)
* Apache License 2.0
* https://github.com/google/gson/blob/master/LICENSE

Expand Down
16 changes: 10 additions & 6 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -43,24 +43,28 @@ processResources {
}
}

clean.doFirst {
delete 'release/*.jar';
clean.doFirst {
delete fileTree('release') {
include '*.jar'
}
}

jar {
// Keep jar clean:
exclude 'META-INF/**', 'about.html', 'module-info.class'

manifest {
attributes 'Main-Class': mainClassName
}

from {
configurations.runtimeClasspath.filter{ it.exists() }.collect { it.isDirectory() ? it : zipTree(it) }
}

destinationDir = file('release')
version = "v${release_version_major}"
destinationDirectory = file('release')
archiveVersion = "v${release_version_major}"
}


task release(type: Zip, dependsOn: ['build', 'asciidoctor']) {
archiveBaseName ="${rootProject.name}_v${release_version_major}.${release_version_minor}"
destinationDirectory = file("${projectDir}")
Expand Down
2 changes: 1 addition & 1 deletion 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=2.1
release_version_minor=8.1
release_version_minor=8.2
Binary file not shown.
Binary file modified release/YaguraExtender-v2.1.jar
Binary file not shown.
12 changes: 8 additions & 4 deletions src/main/java/burp/BurpExtender.java
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
import java.util.regex.Pattern;
import javax.swing.JOptionPane;
import javax.swing.JTable;
import javax.swing.SwingUtilities;
import javax.swing.table.TableModel;
import passive.IssueItem;
import yagura.Config;
Expand Down Expand Up @@ -228,13 +229,16 @@ public void uncaughtException(Thread t, Throwable e) {
} catch (IOException ex) {
logger.log(Level.SEVERE, null, ex);
}

setSendToMenu(new SendToMenu(callbacks, this.option.getSendToProperty()));

callbacks.registerHttpListener(this);
callbacks.registerProxyListener(this);
callbacks.addSuiteTab(this.tabbetOption);
callbacks.registerExtensionStateListener(this);
callbacks.registerContextMenuFactory(this.getSendToMenu());
SwingUtilities.invokeLater(() -> {
callbacks.addSuiteTab(this.tabbetOption);
setSendToMenu(new SendToMenu(callbacks, this.option.getSendToProperty()));
callbacks.registerContextMenuFactory(this.getSendToMenu());
});

this.tabbetOption.setProperty(this.option);
this.tabbetOption.addPropertyChangeListener(newPropertyChangeListener());
this.registerView();
Expand Down
1 change: 1 addition & 0 deletions src/main/java/yagura/model/SendToMenu.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
import javax.swing.FocusManager;
import javax.swing.JMenuItem;
import javax.swing.JTable;
import javax.swing.KeyStroke;
import javax.swing.table.TableModel;

/**
Expand Down
1 change: 1 addition & 0 deletions src/main/java/yagura/model/SendToMultiEditor.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package yagura.model;

import burp.BurpExtender;
import burp.IContextMenuInvocation;
import burp.IHttpRequestResponse;
import extend.util.Util;
Expand Down
2 changes: 0 additions & 2 deletions src/test/java/yagura/ConfigTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import yagura.model.HotKey;
import yagura.model.IOptionProperty;
import yagura.model.MatchAlertItem;
import yagura.model.MatchAlertProperty;
Expand Down Expand Up @@ -63,7 +62,6 @@ public static void tearDownClass() {
@Before
public void setUp() {
JsonUtil.registerTypeHierarchyAdapter(MatchItem.class, new XMatchItemAdapter());
JsonUtil.registerTypeHierarchyAdapter(HotKey.class, new HotKeyAdapter());
}

@After
Expand Down

0 comments on commit 145e673

Please sign in to comment.