Skip to content

Commit

Permalink
Merge pull request #364 from doronz88/bugfix/protect-every-pb2-import
Browse files Browse the repository at this point in the history
client: add `PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python` to base
  • Loading branch information
doronz88 authored Oct 14, 2024
2 parents 1a2c8dd + 4f249ba commit 7706b1c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/rpcclient/rpcclient/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,18 @@
from rpcclient.lief import Lief
from rpcclient.network import Network
from rpcclient.processes import Processes
from rpcclient.protos.rpc_pb2 import Argument, CmdCall, CmdDlclose, CmdDlopen, CmdDlsym, CmdDummyBlock, CmdExec, \
CmdListDir, CmdPeek, CmdPoke, Response
from rpcclient.protosocket import ProtoSocket
from rpcclient.structs.consts import EAGAIN, ECONNREFUSED, EEXIST, EISDIR, ENOENT, ENOTDIR, ENOTEMPTY, EPERM, EPIPE, \
RTLD_NEXT
from rpcclient.symbol import Symbol
from rpcclient.symbols_jar import SymbolsJar
from rpcclient.sysctl import Sysctl

# 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 Argument, CmdCall, CmdDlclose, CmdDlopen, CmdDlsym, CmdDummyBlock, CmdExec, \
CmdListDir, CmdPeek, CmdPoke, Response # noqa E402

tty_support = False
try:
import termios
Expand Down

0 comments on commit 7706b1c

Please sign in to comment.