Definition at line 241 of file sandbox.py.
def miasm2.analysis.sandbox.OS_Linux_str.__init__ |
( |
|
self, |
|
|
|
custom_methods, |
|
|
|
args, |
|
|
|
kwargs |
|
) |
| |
Definition at line 242 of file sandbox.py.
243 def __init__(self, custom_methods, *args, **kwargs):
246 methods = linux_stdlib.__dict__
247 methods.update(custom_methods)
249 super(OS_Linux_str, self).
__init__(methods, *args, **kwargs)
255 data = open(self.fname).read()
256 self.options.load_base_addr = int(self.options.load_base_addr, 0)
257 self.jitter.vm.add_memory_page(self.options.load_base_addr, PAGE_READ | PAGE_WRITE, data)
260 self.jitter.add_lib_handler(libs, methods)