Coder Social home page Coder Social logo

chunkedhttpadapter's Introduction

ChunkedHTTPAdapter

说明

参考文章《利用分块传输吊打所有WAF》所提供的方法,继承改写了requests默认的HTTPAdapter,使其能自动将request body改为Chunked形式并添加随机注释,不必自己实现迭代器。

支持data参数和files参数(仍然可以给data参数传产生器,有随机注释)。

可设置必须分割的关键词,用来绕过WAF的关键词检测(大小写敏感)。

在python2下进行编写,简单的适配了python3。

详细使用参考test.py

具体效果可以使用Wireshark抓包,查看TCP流:

tcp_flow

参考:

  1. Requests 高级用法 块编码请求

http://docs.python-requests.org/zh_CN/latest/user/advanced.html#chunk-encoding

  1. 利用分块传输吊打所有WAF

https://www.anquanke.com/post/id/169738

chunkedhttpadapter's People

Contributors

fnmsd avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.