Skip to main content

Deal with bad characters easily during exploit writing with badchars.

Project description

badbyte

logo

Deal with bad characters easily during exploit writing with badchars.

Table of Contents

  1. Installation
  2. Usage
  3. Programatically use

Instalation

using pip:

pip3 install badbyte 

or from repo:

git clone git@github.com:C3l1n/badbyte.git
cd badbyte
pip3 install .

Usage

You can always use:

badbyte --help

Generate payload to check all characters

badbyte g --bad "3d 26 25 0d" --pre START --post STOP

logo

use:

  • --bad to supply hexascii values of bad characters
  • --pre to set string for marking start point (or leave default)
  • --post to set string for marking stop point (or leave default)

Then use payload in your exploit and fire it.

Analyze memory dumped after trigger

Copy hexascii from memory dump of your favourite debugger i.e. windbg:

logo

remember to skip addresses and ascii representation. I use vim and column select or visual studio code and alt+shift select.

logo

Fire badbyte to analyze output:

badbyte p -c --pre START --post STOP

logo

Programatically use

Documentation not made (feel free to read code) but you can find in example/programatically_generate_payload.py example of payload generation in exploit.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

badbyte-0.1.1.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

badbyte-0.1.1-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

Details for the file badbyte-0.1.1.tar.gz.

File metadata

  • Download URL: badbyte-0.1.1.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for badbyte-0.1.1.tar.gz
Algorithm Hash digest
SHA256 54876fef534b4898073c69ac03e49baf777eeeed12b8be1ba5eb2de2de0ce09e
MD5 22c6caebd136548b90d62d427b972a94
BLAKE2b-256 487969ced19ed61e1c981570c326bad157dfd54be7461c198f236b6a4b5396f8

See more details on using hashes here.

File details

Details for the file badbyte-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: badbyte-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 6.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for badbyte-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 bc19b443383868e68d9008944d3cb5450f93528ca8c865921a88f06015defbaa
MD5 946284e1ea6bc7136d6994f54e0fdce6
BLAKE2b-256 ea4013d3a48120b1f70b53a8b2fd098467dc941aafba219ad9b5d634dce973d3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page