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

generate-payloag

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:

dump-copy

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

select-hexdump

Fire badbyte to analyze output:

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

analyze

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.2.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.2-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: badbyte-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 08fc7bdae38f4a2e47c68f1a82256661e2dcf3a636fdee9b72e194d8d0d9ee75
MD5 35b9b8961c1d6fe3639a7f6fb8ab94f4
BLAKE2b-256 ce43b5249785fd0275c79d49f5b88b8386ec02acf646859d8711080b4d9c1430

See more details on using hashes here.

File details

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

File metadata

  • Download URL: badbyte-0.1.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3179857518d1aa1b6fa5dc3301de217723dffb9e29c1ca9489070951da5f5616
MD5 9aaa3eb701d06a6276b4bd878b3d9079
BLAKE2b-256 1f62b914fb2eee428df64508cd008f47e8004d20befe9f308eadf8bd31f89338

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