Python bindings for the Go Reverse Engineering Tool Kit
Project description
pyGoRE - Python library for analyzing Go binaries
How to use
- Use
pip install pygore
to download and install the library. - Import it into your project.
- Write a new cool tool.
Sample code
import pygore
testfile = '/path/to/go/binary/file'
f = pygore.GoFile(testfile)
c = f.get_compiler_version()
print('Compiler: {}\nTimestamp: {}\nSHA {}\n'.
format(c.name, c.timestamp, c.sha))
pkgs = f.get_packages()
types = f.get_types()
f.close()
for p in pkgs:
print('Package: {}'.format(p.name))
print("Functions:")
for f in p.functions:
print('{} from {} to {}'.format(f.name, hex(f.offset), hex(f.end)))
print("Methods:")
for m in p.methods:
print('{} {} from {} to {}'.format(m.receiver, m.name,
hex(m.offset), hex(m.end)))
print("Types:")
for t in types:
print('Package path: {} | Type name: {}'.format(t.packagePath, t.name))
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
File details
Details for the file pygore-0.5.0-py3-none-any.whl
.
File metadata
- Download URL: pygore-0.5.0-py3-none-any.whl
- Upload date:
- Size: 3.1 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2f26716d9ea2a371e71430bd25884f3f4afa0adc3123df8be1b4f69605fbc6e3 |
|
MD5 | e0f74ba3ab8cd886d42a6c5b10df228c |
|
BLAKE2b-256 | 7346b0a678fa955f248275c1ab8c35abc2c0741f1510247297dc08672fc1ff19 |