REshare Python
This is the Python wrapper for the REshare reverse-engineering exchange format.
Installation
The package is available on PyPI:
pip install reshare==0.1.1
Usage
from reshare import *
from reshare.helpers import *
resh_export = ResharePy("my_project") # Convenience wrapper
# ... add RE knownledge to the export object ...
with open("reshare.json", "w") as out:
out.write(json.dumps(resh_export.to_json_data(), indent=2))
# Time flies...
with open("reshare.json","r") as inp:
data = json.load(inp)
resh_import = Reshare.from_json_data(data)
# ... parse RE data for your tool ...
Helpers
While Python is a common denominator among reversing tools, the generated REshare classes aren't comfortable to work with:
- Reasonable defaults are not available
- Variant metadata is exposed
Wrapper classes with ...Py suffix are provided that:
- Implement constructors with reasonable default values
- Hide variant internals
- Handle dynamically typed attribute assignment (in case of
ReshTypeSpecfor now)
Metadata
Release files for reshare 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| reshare-0.1.3.tar.gz | 7.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| reshare-0.1.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 13.5 kB