-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
引入 MontoyaAPI 依赖包;兼容 HaE 3.0 版本;更新版本号为 1.6.0
- Loading branch information
vaycore
committed
May 7, 2024
1 parent
a4c9376
commit 3419753
Showing
21 changed files
with
1,731 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
package burp.hae; | ||
|
||
import burp.IHttpService; | ||
import burp.IMessageEditorController; | ||
|
||
/** | ||
* 请求响应编辑器组件的控制器 | ||
* <p> | ||
* Created by vaycore on 2024-05-07. | ||
*/ | ||
public class MessageEditorController implements IMessageEditorController { | ||
|
||
private IHttpService service; | ||
private byte[] request; | ||
private byte[] response; | ||
|
||
@Override | ||
public IHttpService getHttpService() { | ||
return this.service; | ||
} | ||
|
||
@Override | ||
public byte[] getRequest() { | ||
if (this.request == null || this.request.length == 0) { | ||
return new byte[0]; | ||
} | ||
return this.request; | ||
} | ||
|
||
@Override | ||
public byte[] getResponse() { | ||
if (this.response == null || this.response.length == 0) { | ||
return new byte[0]; | ||
} | ||
return this.response; | ||
} | ||
|
||
public void setHttpService(IHttpService service) { | ||
this.service = service; | ||
} | ||
|
||
public void setRequest(byte[] request) { | ||
this.request = request; | ||
} | ||
|
||
public void setResponse(byte[] response) { | ||
this.response = response; | ||
} | ||
} |
Oops, something went wrong.