pyGoRE - Python library for analyzing Go binaries
How to use
- Use
pip install pygoreto 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))
Metadata
Release files for pygore 0.5.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pygore-0.5.0-py3-none-any.whl | Python 3 | none | any | Details for pygore-0.5.0-py3-none-any.whl |
Release files / pygore-0.5.0-py3-none-any.whl
| Download URL | pygore-0.5.0-py3-none-any.whl |
|---|---|
| Size | 3.1 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2f26716d9ea2a371e71430bd25884f3f4afa0adc3123df8be1b4f69605fbc6e3
|
|
BLAKE2b-256 checksum How to use checksums |
7346b0a678fa955f248275c1ab8c35abc2c0741f1510247297dc08672fc1ff19
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Security for pygore 0.5.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.