GithubHelp home page GithubHelp logo

Comments (4)

alexmgr avatar alexmgr commented on May 24, 2024

Hi lespla,

Thanks for the report.
We currently don't have any logic to fragment TLS Records. For now, you'll have to perform fragmentation manually. Will be a little bit of work, but shouldn't be too bad for the scenario you're trying to cover.
This feature is on my todo list, since it's code I'd like to exercise in implementations also.

from scapy-ssl_tls.

alexmgr avatar alexmgr commented on May 24, 2024

Added basic fragmentation support in the fragmentation branch, commit 6ad9dce. Will not yet solve the case your after, since your error is raised at packet build time. Will try and add that in a later commit, by building on top of this.

from scapy-ssl_tls.

alexmgr avatar alexmgr commented on May 24, 2024

I added fragmentation support in PR #46. Could you check out the fragmentation branch and check out if it fits your needs?
The flow should go somewhat like this:

# Something larger than 2**16 -1
data = TLSHandshake()/("A"(2**17))
tls = TLSRecord()/data
fragments = []
try:
    tls_sock.sendall(tls)
except TLSFragmentationError:
    fragments = tls_fragment_payload(data, TLSRecord()/TLSHandshake())
# Send fragments now

Thanks!

from scapy-ssl_tls.

alexmgr avatar alexmgr commented on May 24, 2024

I've done some testing on this, and consider it complete with #46. Let me know if you have any issues with it.
Closing.

from scapy-ssl_tls.

Related Issues (20)

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.