Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor pwnlib.encoders.encode() to be more nice to bytes objects #1923

Open
wants to merge 8 commits into
base: stable
Choose a base branch
from

Commits on Jun 25, 2021

  1. Refactor pwnlib.encoders.encode() to be more nice to bytes objects

    * Add byteset() to misc which does "the right thing" and returns a set of bytes
    * Make bytes_avoid be a bytes() object instead of a set
    * Update documentation to note that functions take bytes() and not str()
    heapcrash committed Jun 25, 2021
    Configuration menu
    Copy the full SHA
    1efc949 View commit details
    Browse the repository at this point in the history
  2. Allow an empty byteset()

    heapcrash committed Jun 25, 2021
    Configuration menu
    Copy the full SHA
    763ff67 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    fcad2d7 View commit details
    Browse the repository at this point in the history
  4. Adopt byteset() and the new module for encoder_class

    Also adds examples/encoder.py to make sure the encoders can work in
    simple situations, avoiding basic characters, and being forced to
    encode even if the avoid= are missing in the original bytes.
    heapcrash committed Jun 25, 2021
    Configuration menu
    Copy the full SHA
    ca80189 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    f983bbc View commit details
    Browse the repository at this point in the history

Commits on Jul 15, 2021

  1. Configuration menu
    Copy the full SHA
    c22d82a View commit details
    Browse the repository at this point in the history

Commits on Jul 31, 2023

  1. Configuration menu
    Copy the full SHA
    f25e2b7 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    39f6639 View commit details
    Browse the repository at this point in the history