Giter Club home page Giter Club logo

Comments (3)

tomato42 avatar tomato42 commented on June 2, 2024

There isn't a ready to use way to display the message before sending, but it shouldn't be too hard to add something like that.
fuzz_message() here:

def fuzz_message(generator, substitutions=None, xors=None):

can modify any byte of the message before it's sent, so instead of calling substitute_and_xor() on data, you could do print(data.hex()) to get the hex-encoded message.

Sending hex-encoded message is supported, see RawMessageGenerator() for that. You'll need to convert the hex-encoded bytes to bytes() or bytearray() first, with something like bytes.fromhex('deadbeef').

(If you want compatibility with very old pythons, you may want to use the a2b_hex() and b2a_hex() functions from tlslite-ng instead: https://github.com/tlsfuzzer/tlslite-ng/blob/4b5efc2285f114b437f6f1678617af3ca0e0fbc5/tlslite/utils/compat.py#L52 )

from tlsfuzzer.

r4t31 avatar r4t31 commented on June 2, 2024

Unfortunately, if we will take data from this place - it will be not full.
I can get data modifying method send() from tlslite\bufferedsocket.py
But when I try to modify hex data and send it like that my TLS message is sending incorrectly...

class BufferedSocket(object):
    def send(self, data):
          data = my_mod_data
          if self.buffer_writes:
          self._write_queue.append(data)
          return len(data)
          return self.socket.send(data)

from tlsfuzzer.

tomato42 avatar tomato42 commented on June 2, 2024

what do you mean by not full? it is the complete message; it does not include the record layer but that's by design, how messages are fragmented is separate from their contents

from tlsfuzzer.

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.