Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yxnan/py-str0patch
Patches in-binary strings so they practically don't exist.
https://github.com/yxnan/py-str0patch
Last synced: about 16 hours ago
JSON representation
Patches in-binary strings so they practically don't exist.
- Host: GitHub
- URL: https://github.com/yxnan/py-str0patch
- Owner: yxnan
- License: 0bsd
- Created: 2021-10-23T23:54:07.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2024-01-14T18:32:23.000Z (10 months ago)
- Last Synced: 2024-01-14T23:00:59.275Z (10 months ago)
- Language: Python
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG
- License: LICENSE
Awesome Lists containing this project
README
# \0~~S~~tring Patch
Patches in-binary strings to start with the null terminator, primarily intended so they never
get displayed in the server console (for things that MM:S / SM can't reach, like the Steam
libraries).Needs a relatively recent Python 3 version.
License is BSD0. Original credits to https://git.csrd.science/nosoop/py-str0patch
## Usage
Run `python3 str0.py ${FILE}` to shut those "RecordSteamInterfaceCreation" messages up for good.
Additional configuration files may be provided by passing `-c ${CONFIGFILE}` to the script.
You can add your sections following the syntax of `str0.ini`Here is a useful bash snippet to spot the string you want to patch:
```bash
find -name "*.so" -exec sh -c "strings {} | grep -E ''" \;
```**NOTE**: The patch process is *NOT* whole string matching, so don't write a vague string, as this may corrupt the file.
## Dealing with autoupdates
`incrontab` works great for automatically patching binaries after game updates. Add the
following entry:```
/path/containing/bin IN_MOVED_TO python3 /path/to/str0.py $@/$# -c /path/to/config.ini
```