Skip to content

Commit

Permalink
Merge pull request #366 from doronz88/bugfix/guard-symbol-protobuf-im…
Browse files Browse the repository at this point in the history
…port

symbol: guard pb2 import
  • Loading branch information
doronz88 authored Oct 14, 2024
2 parents ceeafc7 + 612c320 commit d107851
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/rpcclient/rpcclient/symbol.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,12 @@
from capstone import CS_ARCH_ARM64, CS_ARCH_X86, CS_MODE_64, CS_MODE_LITTLE_ENDIAN, Cs, CsInsn
from construct import Container

from rpcclient.protos.rpc_pb2 import ARCH_ARM64
from rpcclient.structs.generic import Dl_info

# make sure imports from the *_pb2 modules don't depend on the locally installed protobuf version
os.environ['PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION'] = 'python'
from rpcclient.protos.rpc_pb2 import ARCH_ARM64 # noqa: E402

ADDRESS_SIZE_TO_STRUCT_FORMAT = {1: 'B', 2: 'H', 4: 'I', 8: 'Q'}
RETVAL_BIT_COUNT = 64

Expand Down

0 comments on commit d107851

Please sign in to comment.