mirror of
https://github.com/sashs/Ropper.git
synced 2026-10-12 02:22:05 +00:00
Bugfix: 'Ropper' object has no attribute '__gatherGadgetsByEndings'
This commit is contained in:
@@ -35,6 +35,7 @@ from .gadget import Gadget, GadgetType
|
||||
from binascii import hexlify, unhexlify
|
||||
from struct import pack
|
||||
import re
|
||||
import multiprocessing
|
||||
import struct
|
||||
import sys
|
||||
import capstone
|
||||
@@ -285,6 +286,8 @@ class Ropper(object):
|
||||
if not multiprocessing:
|
||||
newGadgets = self._searchGadgetsSingle(section=section, binary=binary, instruction_count=instructionCount, gtype=gtype)
|
||||
else:
|
||||
if multiprocessing.get_start_method() != 'fork':
|
||||
multiprocessing.set_start_method('fork')
|
||||
newGadgets = self._searchGadgetsForked(section=section, binary=binary, instruction_count=instructionCount, gtype=gtype)
|
||||
|
||||
gadgets.extend(newGadgets)
|
||||
|
||||
@@ -393,6 +393,8 @@ class RopperService(object):
|
||||
single = False
|
||||
cache_file = None
|
||||
try:
|
||||
if multiprocessing.get_start_method() != 'fork':
|
||||
multiprocessing.set_start_method('fork')
|
||||
temp = RopperService.CACHE_FOLDER
|
||||
cache_file = temp + os.path.sep + self.__getCacheFileName(file)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user