Skip to content

Commit

Permalink
Merge pull request #5 from cyal1/single-logConsole
Browse files Browse the repository at this point in the history
update to montoya-api:2024.7
  • Loading branch information
cyal1 authored Sep 7, 2024
2 parents fd199e8 + 638202b commit c4657d3
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
4 changes: 3 additions & 1 deletion README-ZH.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 提出改进建议、报告问题或贡献代码。
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
10 changes: 5 additions & 5 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}

Expand Down

0 comments on commit c4657d3

Please sign in to comment.