From 638202b0370e0817de7cebe09ed790ec1a7f257a Mon Sep 17 00:00:00 2001 From: cyal1 Date: Sat, 7 Sep 2024 17:19:04 +0800 Subject: [PATCH] update to montoya-api:2024.7 --- README-ZH.md | 4 +++- README.md | 4 +++- build.gradle | 10 +++++----- 3 files changed, 11 insertions(+), 7 deletions(-) diff --git a/README-ZH.md b/README-ZH.md index 6425481..ae5cbff 100644 --- a/README-ZH.md +++ b/README-ZH.md @@ -148,10 +148,12 @@ PyBurp允许通过gRPC调用其它程序提供的方法。你需要实现 [burpe server.shutdown() ``` +和 Frida 交互示例请查看[server_frida.py](https://github.com/cyal1/pyburpRPC/blob/main/examples/server_frida.py) + **注意:** 1. pyburp 只支持`str`,`bool`,`int`,`float`,`bytes`5种类型的参数 2. 如果服务端暴露的方法**只有一个参数且为bytes类型**时,在PyBurp中需要通过[bytearray](https://portswigger.github.io/burp-extensions-montoya-api/javadoc/burp/api/montoya/core/ByteArray.html#byteArray(java.lang.String))封装参数,或者放入`[]`中,否则`byte[]`将被视为可变参数数组,每个字节被视为一个参数。 -3. 服务端返回的bytes类型在PyBurp中为[array.array('b',initializer)](https://www.jython.org/jython-old-sites/docs/library/array.html#array-efficient-arrays-of-numeric-values)类型,可以通过`tostring()`转换成字符串,或用`bytearray`方法转换成[ByteArray](https://portswigger.github.io/burp-extensions-montoya-api/javadoc/burp/api/montoya/core/ByteArray.html)。 +3. 服务端返回的bytes类型在PyBurp中为[array.array('B',initializer)](https://www.jython.org/jython-old-sites/docs/library/array.html#array-efficient-arrays-of-numeric-values)类型,可以通过`tostring()`转换成字符串,或用`bytearray`方法转换成[ByteArray](https://portswigger.github.io/burp-extensions-montoya-api/javadoc/burp/api/montoya/core/ByteArray.html)。 ## 贡献与反馈 欢迎社区成员对 PyBurp 提出改进建议、报告问题或贡献代码。 diff --git a/README.md b/README.md index c512115..bf41eb3 100644 --- a/README.md +++ b/README.md @@ -148,10 +148,12 @@ Here’s a Python demonstration: server.shutdown() ``` +For examples of interactions with Frida, please check [server_frida.py](https://github.com/cyal1/pyburpRPC/blob/main/examples/server_frida.py) + **Note:** 1. PyBurp supports only the following parameter types: `str`,`bool`,`int`,`float`,`bytes`. 2. If the server-side exposed method has **only one parameter and it is of type bytes**,in PyBurp, you need to wrap the parameter using [bytearray](https://portswigger.github.io/burp-extensions-montoya-api/javadoc/burp/api/montoya/core/ByteArray.html#byteArray(java.lang.String)) or place it in `[]`; otherwise, `byte[]` will be treated as a variable-length argument array, with each byte being treated as an individual argument. -3. The `bytes` type returned by the server is of type [array.array('b',initializer)](https://www.jython.org/jython-old-sites/docs/library/array.html#array-efficient-arrays-of-numeric-values) in PyBurp,It can be converted to a string using `tostring()` or to a [ByteArray](https://portswigger.github.io/burp-extensions-montoya-api/javadoc/burp/api/montoya/core/ByteArray.html) using the `bytearray` method. +3. The `bytes` type returned by the server is of type [array.array('B',initializer)](https://www.jython.org/jython-old-sites/docs/library/array.html#array-efficient-arrays-of-numeric-values) in PyBurp,It can be converted to a string using `tostring()` or to a [ByteArray](https://portswigger.github.io/burp-extensions-montoya-api/javadoc/burp/api/montoya/core/ByteArray.html) using the `bytearray` method. ## Contributions We welcome contributions from the community for improvements, issue reporting, or code contributions to PyBurp. diff --git a/build.gradle b/build.gradle index a045eb9..b7bc9b8 100644 --- a/build.gradle +++ b/build.gradle @@ -11,17 +11,17 @@ repositories { } dependencies { - compileOnly 'net.portswigger.burp.extensions:montoya-api:2023.12.1' + compileOnly 'net.portswigger.burp.extensions:montoya-api:2024.7' // compileOnly files('/Users/test/Downloads/montoya-api-2023.9.jar') implementation 'org.mozilla:rhino:1.7.14' implementation 'org.json:json:20231013' implementation 'com.fifesoft:rsyntaxtextarea:3.3.3' implementation 'org.python:jython-standalone:2.7.3' - runtimeOnly 'io.grpc:grpc-netty-shaded:1.54.1' - implementation 'io.grpc:grpc-protobuf:1.54.1' - implementation 'io.grpc:grpc-stub:1.54.1' - implementation group: 'org.xerial', name: 'sqlite-jdbc', version: '3.41.2.2' + runtimeOnly 'io.grpc:grpc-netty-shaded:1.66.0' + implementation 'io.grpc:grpc-protobuf:1.66.0' + implementation 'io.grpc:grpc-stub:1.66.0' compileOnly 'org.apache.tomcat:annotations-api:6.0.53' // necessary for Java 9+ + implementation group: 'org.xerial', name: 'sqlite-jdbc', version: '3.41.2.2' implementation "com.github.kklisura.cdt:cdt-java-client:4.0.0" }