Skip to main content

Replace strings in binary files.

Project description

stringedit

Replace strings in binary files.

Installation

From PyPI

pip3 install stringedit

From GitHub

pip3 install git+https://github.com/donno2048/stringedit

Usage

To run the string editing use stringed or python3 -m stringedit

$ stringed -h
usage: stringed [-h] [-n [number]] [-m {l,r,L}] filename

Replace strings in binary files

positional arguments:
  filename              input filename

optional arguments:
  -h, --help            show this help message and exit
  -n [number], --bytes [number]
                        print amy string of at least [number] characters (default 4)
  -m {l,r,L}, --method {l,r,L}
                        method used to widen replacement string if it's too long l - pad with
                        spaces from the left r - pad with spaces from the right L - leave
                        everything after the replacement as it was

You can also use the stringpr to print all the strings, similar to the strings linux command.

$ stringpr -h
usage: stringpr [-h] [-n [number]] [-t {o,d,x}] [-s <string>] filename

Print strings in binary files

positional arguments:
  filename              input filename

optional arguments:
  -h, --help            show this help message and exit
  -n [number], --bytes [number]
                        print amy string of at least [number] characters (default 4)
  -t {o,d,x}, --radix {o,d,x}
                        print the location of the string in base 8, 10 or 16
  -s <string>, --output-separator <string>
                        string used to separate strings in output

Uses

  • Could be used to create a modded version for a game by changing dialogues and such
  • Could theoretically be used to "steal" someones binary by just replacing any info (e.g. license) with the attacker's - removes the need to decompile, change and then recompile the binary
  • And more

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

stringedit-1.0.0.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

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

stringedit-1.0.0-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file stringedit-1.0.0.tar.gz.

File metadata

  • Download URL: stringedit-1.0.0.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for stringedit-1.0.0.tar.gz
Algorithm Hash digest
SHA256 93e0bac0570c3a92c77eba5cff0f6724ae1e7199f306472df0e5b518fcc9ef24
MD5 2fb625ee1de4ebb975182a5daaf6670f
BLAKE2b-256 904fa577703c6ebbb26f122f35a22004bff2b2a2328c55b27f5161de610433b4

See more details on using hashes here.

Provenance

The following attestation bundles were made for stringedit-1.0.0.tar.gz:

Publisher: python-publish.yml on donno2048/stringedit

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file stringedit-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: stringedit-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 5.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for stringedit-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ba669140c9b1e0fa6ce9a1b5b518a89b681f0162ffcbe2485e1b67dcd4c87278
MD5 e2b7b2701f734a21c32ae79c243e3e61
BLAKE2b-256 2e1408312815bd401726646a36f4d9cfd11bf4c21a1bdbf1d510d8e9607f6f5d

See more details on using hashes here.

Provenance

The following attestation bundles were made for stringedit-1.0.0-py3-none-any.whl:

Publisher: python-publish.yml on donno2048/stringedit

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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