【神兵利器】——204、Burpsuite之分块传输绕WAF

功能设计

我们先来看看插件要实现的功能:

  • 用户可以设置分块长度,是否开启注释
  • 在Burp Repeater套件上可对数据包进行快速chunked解码编码
  • 自动化对Burp的Proxy,scanner,spider等套件的数据包进行编码

编写代码

限于边幅,我只说明核心函数并通过注释的方式解释代码的相关功能

编码函数
public static  byte[] encoding(IExtensionHelpers helpers, IHttpRequestResponse requestResponse, int split_len, boolean isComment) throws UnsupportedEncodingException {
    byte[] request = requestResponse.getRequest();
    IRequestInfo requestInfo = helpers.analyzeRequest(request);
    int bodyOffset = requestInfo.getBodyOffset();
    int body_length =

猜你喜欢

转载自blog.csdn.net/Fly_hps/article/details/143241212