GithubHelp home page GithubHelp logo

Broken config patch about scapy-ssl_tls HOT 4 CLOSED

tintinweb avatar tintinweb commented on May 28, 2024
Broken config patch

from scapy-ssl_tls.

Comments (4)

tintinweb avatar tintinweb commented on May 28, 2024

Hi @strizhechenko, thanks for the report.
what os are you on?

from scapy-ssl_tls.

strizhechenko avatar strizhechenko commented on May 28, 2024

Hi! Meh, it was so long ago so I forgot it :(
Most probably it's CentOS 6, maybe latest MacOS.

from scapy-ssl_tls.

strizhechenko avatar strizhechenko commented on May 28, 2024

I'll try to reproduce it this weekend and report here full scenario

from scapy-ssl_tls.

tintinweb avatar tintinweb commented on May 28, 2024

Hi @strizhechenko,

the scapy/config.py patching magic attempts to find the load_layers list in the scapy config files and follows until the end of the list ]. We then do a backwards search to find the last " just before the ]. If that line does not contain ssl_tls we're inplace appending , "ssl_tls"] to that line without ever touching any line-endings. According to this procedure, we never ever change nor add linebreaks.

Are you using a custom scapy version or a version that already messed with the load_layers list? As long as the load_layers list is not misformatted (e.g. end of the list is a line with only a ]) it should do fine.

  • CNR on ubuntu 16.04 pip
  • CNR on centos 7
  • did not test osx
  • CNR with dos line endings, unix line endings, manual modifications to config.py (found an unrelated corner-case were we would not patch the line if ] stands for itself on a separate line)

I'll close this issue for now. Feel free to reopen it if you can reproduce it and I'm happy to rewrite that hacky code 👍

cheers
tin

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.