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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
93e0bac0570c3a92c77eba5cff0f6724ae1e7199f306472df0e5b518fcc9ef24
|
|
| MD5 |
2fb625ee1de4ebb975182a5daaf6670f
|
|
| BLAKE2b-256 |
904fa577703c6ebbb26f122f35a22004bff2b2a2328c55b27f5161de610433b4
|
Provenance
The following attestation bundles were made for stringedit-1.0.0.tar.gz:
Publisher:
python-publish.yml on donno2048/stringedit
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
stringedit-1.0.0.tar.gz -
Subject digest:
93e0bac0570c3a92c77eba5cff0f6724ae1e7199f306472df0e5b518fcc9ef24 - Sigstore transparency entry: 1300029530
- Sigstore integration time:
-
Permalink:
donno2048/stringedit@339b38b9b5949419eac6f6bea64f85d4adcfd6f3 -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/donno2048
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@339b38b9b5949419eac6f6bea64f85d4adcfd6f3 -
Trigger Event:
release
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ba669140c9b1e0fa6ce9a1b5b518a89b681f0162ffcbe2485e1b67dcd4c87278
|
|
| MD5 |
e2b7b2701f734a21c32ae79c243e3e61
|
|
| BLAKE2b-256 |
2e1408312815bd401726646a36f4d9cfd11bf4c21a1bdbf1d510d8e9607f6f5d
|
Provenance
The following attestation bundles were made for stringedit-1.0.0-py3-none-any.whl:
Publisher:
python-publish.yml on donno2048/stringedit
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
stringedit-1.0.0-py3-none-any.whl -
Subject digest:
ba669140c9b1e0fa6ce9a1b5b518a89b681f0162ffcbe2485e1b67dcd4c87278 - Sigstore transparency entry: 1300029653
- Sigstore integration time:
-
Permalink:
donno2048/stringedit@339b38b9b5949419eac6f6bea64f85d4adcfd6f3 -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/donno2048
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@339b38b9b5949419eac6f6bea64f85d4adcfd6f3 -
Trigger Event:
release
-
Statement type: