MCPcopy Index your code
hub / github.com/qilingframework/qiling / Qiling

Class Qiling

qiling/core.py:35–774  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33
34
35class Qiling(QlCoreHooks, QlCoreStructs):
36 def __init__(
37 self,
38 argv: Sequence[str] = [],
39 rootfs: str = r'.',
40 env: MutableMapping[AnyStr, AnyStr] = {},
41 code: Optional[bytes] = None,
42 ostype: Optional[QL_OS] = None,
43 archtype: Optional[QL_ARCH] = None,
44 cputype: Optional[QL_CPU] = None,
45 verbose: QL_VERBOSE = QL_VERBOSE.DEFAULT,
46 profile: Optional[Union[str, Mapping]] = None,
47 console: bool = True,
48 log_devices: Optional[Collection[Union[IO, str]]] = None,
49 log_override: Optional['Logger'] = None,
50 log_plain: bool = False,
51 multithread: bool = False,
52 filter: Optional[str] = None,
53 stop: QL_STOP = QL_STOP.NONE,
54 *,
55 endian: Optional[QL_ENDIAN] = None,
56 thumb: bool = False,
57 libcache: bool = False
58 ):
59 """ Create a Qiling instance.
60
61 For each argument or property, please refer to its help. e.g. help(Qiling.multithread)
62 """
63
64 ##################################
65 # Definition during ql=Qiling() #
66 ##################################
67 self._env = env
68 self._code = code
69 self._multithread = multithread
70 self._log_filter = None
71 self._internal_exception = None
72 self._stop_options = stop
73
74 ##################################
75 # Definition after ql=Qiling() #
76 ##################################
77 self._patch_bin = []
78 self._patch_lib = []
79 self._debug_stop = False
80 self._debugger = False
81
82 ###############################
83 # Properties configured later #
84 ###############################
85 self.entry_point = None
86 self.exit_point = None
87 self.timeout = 0
88 self.count = 0
89 self._initial_sp = 0
90
91 """
92 Qiling Framework Core Engine

Callers 15

__init__Method · 0.90
startMethod · 0.90
test_edl_arm64Method · 0.90
test_gdbdebug_mips32Method · 0.90
test_gdbdebug_armebMethod · 0.90
setUpMethod · 0.90

Calls

no outgoing calls

Tested by 15

test_edl_arm64Method · 0.72
test_gdbdebug_mips32Method · 0.72
test_gdbdebug_armebMethod · 0.72
setUpMethod · 0.72
test_android_arm64Method · 0.72
test_android_armMethod · 0.72