Skip to main content

Python bindings for the Go Reverse Engineering Tool Kit

Project description

Build Status PyPI - Python Version PyPI

pyGoRE - Python library for analyzing Go binaries

How to use

  1. Use pip install pygore to download and install the library.
  2. Import it into your project.
  3. 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.timestamp, c.sha))

pkgs = f.get_packages()
types = f.get_types()
for p in pkgs:
    print('Package: {}'.format(
    for f in p.functions:
        print('{} from {} to {}'.format(, hex(f.offset), hex(f.end)))
    for m in p.methods:
        print('{} {} from {} to {}'.format(m.receiver,,
                                           hex(m.offset), hex(m.end)))
    for t in types:
        print('Package path: {} | Type name: {}'.format(t.packagePath,

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pygore, version 0.4.2
Filename, size File type Python version Upload date Hashes
Filename, size pygore-0.4.2-py3-none-any.whl (2.9 MB) File type Wheel Python version py3 Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page