You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*Describe the bug
I have installed Qiling with latest dev branch just as recommended in your tutorial.
When I run your shellcode emulation example, it results in KeyError: 'x8664'.
Emulating binaries is working without any problems for me.
Sample Code
fromqilingimportQilingfromqiling.constimportQL_VERBOSE# set up a shellcode to emulateshellcode=bytes.fromhex(''' fc4881e4f0ffffffe8d0000000415141505251564831d265488b52603e488b52 183e488b52203e488b72503e480fb74a4a4d31c94831c0ac3c617c022c2041c1 c90d4101c1e2ed5241513e488b52203e8b423c4801d03e8b80880000004885c0 746f4801d0503e8b48183e448b40204901d0e35c48ffc93e418b34884801d64d 31c94831c0ac41c1c90d4101c138e075f13e4c034c24084539d175d6583e448b 40244901d0663e418b0c483e448b401c4901d03e418b04884801d0415841585e 595a41584159415a4883ec204152ffe05841595a3e488b12e949ffffff5d49c7 c1000000003e488d95fe0000003e4c8d850f0100004831c941ba45835607ffd5 4831c941baf0b5a256ffd548656c6c6f2c2066726f6d204d534621004d657373 616765426f7800''')
# instantiate a Qiling object to emulate the shellcode. when emulating a binary Qiling would be able to automatically# infer the target architecture and operating system. this, however, is not possible when emulating a shellcode, therefore# both 'archtype' and 'ostype' arguments must be providedql=Qiling(code=shellcode, rootfs=r'examples/rootfs/x8664_windows', archtype='x8664', ostype='Windows', verbose=QL_VERBOSE.DEBUG)
# do the magic!ql.run()
Screenshots
$ python ql_shellcode.py
Traceback (most recent call last):
File "/root/qiling/ql_shellcode.py", line 21, in <module>
ql = Qiling(code=shellcode, rootfs=r'examples/rootfs/x8664_windows', archtype='x8664', ostype='Windows', verbose=QL_VERBOSE.DEBUG)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/qiling/qiling/core.py", line 154, in __init__
self._arch = select_arch(archtype, cputype, endian, thumb)(self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/qiling/qiling/utils.py", line 388, in select_arch
module = {
^
KeyError: 'x8664'
The text was updated successfully, but these errors were encountered:
*Describe the bug
I have installed Qiling with latest dev branch just as recommended in your tutorial.
When I run your shellcode emulation example, it results in
KeyError: 'x8664'
.Emulating binaries is working without any problems for me.
Sample Code
Screenshots
The text was updated successfully, but these errors were encountered: