qiling icon indicating copy to clipboard operation
qiling copied to clipboard

asus-ac5300 firmware Invalid instruction (UC_ERR_INSN_INVALID), arm little endian

Open newthis opened this issue 3 years ago • 1 comments
trafficstars

*Describe the bug When emulate asus-ac5300 firmware, Invalid instruction (UC_ERR_INSN_INVALID) occured, firmware download link: http://ftp.ufanet.ru/pub/firmware/Asus/RT-AC5300/RT-AC5300_3.0.0.4_380_7266-g6439257.trx

Sample Code

PROJECT_ROOT="/opt/firmwares/asus"
ql = Qiling([PROJECT_ROOT + "/usr/sbin/httpd"], PROJECT_ROOT, console=True, verbose=QL_VERBOSE.DEBUG)
ql.run()

Error File "/home/test/PycharmProjects/Py3.8Emu/venv/lib/python3.8/site-packages/qiling/core.py", line 879, in emu_start self.uc.emu_start(begin, end, timeout, count) File "/home/test/PycharmProjects/Py3.8Emu/venv/lib/python3.8/site-packages/unicorn/unicorn.py", line 465, in emu_start raise UcError(status) unicorn.unicorn.UcError: Invalid instruction (UC_ERR_INSN_INVALID)

Additional context file command output: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /lib/ld-uClibc.so.0, stripped

newthis avatar Apr 27 '22 10:04 newthis

We need more information to debug this issue

xwings avatar Oct 06 '22 03:10 xwings