Skip to content

Commit

Permalink
implementation lib upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
isayan committed Jul 16, 2024
1 parent 9221e5e commit 685c024
Show file tree
Hide file tree
Showing 8 changed files with 46 additions and 7 deletions.
9 changes: 6 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,12 @@ task release(type: Zip, dependsOn: ['build', 'asciidoctor']) {

dependencies {
// https://mvnrepository.com/artifact/org.bouncycastle/bcprov-jdk18on
compileOnly 'org.bouncycastle:bcpkix-jdk18on:1.74'
compileOnly 'org.bouncycastle:bcpkix-jdk18on:1.78.1'
// https://mvnrepository.com/artifact/org.bouncycastle/bcprov-jdk18on
compileOnly 'org.bouncycastle:bcprov-jdk18on:1.74'
compileOnly 'org.bouncycastle:bcprov-jdk18on:1.78.1'

// https://mvnrepository.com/artifact/org.brotli/dec
compileOnly 'org.brotli:dec:0.1.2'

// https://github.com/raise-isayan/BurpExtensionCommons
implementation fileTree(dir: 'libs', include: ['*.jar'])
Expand All @@ -102,7 +105,7 @@ dependencies {
// https://mvnrepository.com/artifact/net.portswigger.burp.extensions/montoya-api
implementation 'net.portswigger.burp.extensions:montoya-api:2023.12.1'
// https://mvnrepository.com/artifact/commons-codec/commons-codec
implementation 'commons-codec:commons-codec:1.16.0'
implementation 'commons-codec:commons-codec:1.17.0'
// https://mvnrepository.com/artifact/com.fifesoft/rsyntaxtextarea
implementation 'com.fifesoft:rsyntaxtextarea:3.3.4'

Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
netbeans.org-netbeans-modules-javascript2-requirejs.enabled=true
release_version_major=3.1
release_version_minor=0.2
release_version_minor=1.0
netbeans.license=mit
2 changes: 1 addition & 1 deletion help/help.html
Original file line number Diff line number Diff line change
Expand Up @@ -2804,7 +2804,7 @@ <h3 id="_version">3.11. Version</h3>
<div id="footer">
<div id="footer-text">
Version unspecified<br>
Last updated 2024-07-10 20:31:17 +0900
Last updated 2024-07-10 20:31:16 +0900
</div>
</div>
</body>
Expand Down
Binary file modified help/images/custom_jtranscoder.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified release/YaguraExtension-v3.1.jar
Binary file not shown.
Binary file modified src/main/help/images/custom_jtranscoder.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 0 additions & 2 deletions src/main/java/extend/util/external/BouncyUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
import java.util.Map;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.bouncycastle.asn1.ASN1Encodable;
import org.bouncycastle.asn1.ASN1EncodableVector;
import org.bouncycastle.asn1.ASN1Encoding;
import org.bouncycastle.asn1.ASN1Object;
Expand Down Expand Up @@ -2262,7 +2261,6 @@ public static String toSKEIN1024_1024Sum(String str, String charset, boolean upp

// https://github.com/bcgit/bc-java/tree/main/core/src/test/java/org/bouncycastle/crypto/test


/**
* 証明書
* https://gist.github.com/vivekkr12/c74f7ee08593a8c606ed96f4b62a208a
Expand Down
38 changes: 38 additions & 0 deletions src/main/java/extend/util/external/BrotliUtil.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
package extend.util.external;

import static extension.helpers.ConvertUtil.compressZlib;
import static extension.helpers.ConvertUtil.toBase64Encode;
import extension.helpers.StringUtil;
import java.io.BufferedOutputStream;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.nio.charset.Charset;
import java.nio.charset.StandardCharsets;
import java.util.zip.Deflater;
import java.util.zip.GZIPInputStream;
import org.brotli.dec.BrotliInputStream;

/**
*
* @author isayan
*/
public class BrotliUtil {

public static byte[] decompressBrotli(byte[] content) throws IOException {
ByteArrayOutputStream baos = new ByteArrayOutputStream();
try (BrotliInputStream btis = new BrotliInputStream(new ByteArrayInputStream(content))) {
try (BufferedOutputStream out = new BufferedOutputStream(baos)) {
byte[] buf = new byte[1024];
int size;
while ((size = btis.read(buf, 0, buf.length)) != -1) {
out.write(buf, 0, size);
}
out.flush();
}
}
return baos.toByteArray();
}

}

0 comments on commit 685c024

Please sign in to comment.