qilingframework / qiling

A True Instrumentable Binary Emulation Framework
https://qiling.io
GNU General Public License v2.0
5.19k stars 746 forks source link

problem with run example/netgear_6220_mips32el_linux.py #776

Closed qq963258qq closed 2 years ago

qq963258qq commented 3 years ago

*Describe the bug I run example/netgear_6220_mips32el_linux.py, and the it crash "qiling.exception.QlErrorExecutionStop: Dynamic library .init() failed!"

Sample Code As same as example/netgear_6220_mips32el_linux.py And I change 'multithread=False' to 'multithread=True'

Screenshots image

wtdcode commented 3 years ago

Seems to be introduced in #772

qq963258qq commented 3 years ago

I have updated the version to the lastest dev, but it still have the same problem.

xwings commented 3 years ago

try dev ?

wtdcode commented 3 years ago

Solved in 6a30e9e4c1eebe4d3338fab47af875ea7d0f6bcb

qq963258qq commented 3 years ago

I have tried the latest dev version qiling again, but it still have the same problem... image

wtdcode commented 3 years ago

I have tried the latest dev version qiling again, but it still have the same problem... image

Where do you get the rootfs?

qq963258qq commented 3 years ago

I have tried the latest dev version qiling again, but it still have the same problem... image

Where do you get the rootfs?

https://www.downloads.netgear.com/files/GDC/R6220/R6220-V1.1.0.106_1.0.1.zip

qq963258qq commented 3 years ago

I have already solved the "qiling.exception.QlErrorExecutionStop: Dynamic library .init() failed!" problem. I modified my script as below: before

my_netgear(["./rootfs/netgear_r6220/bin/mini_httpd",  "-d", "/www", "-r", "NETGEAR R6220", "-c", "**.cgi", "-t", "300"], "./rootfs/netgear_r6220")

after

my_netgear(["rootfs/netgear_r6220/bin/mini_httpd",  "-d", "/www", "-r", "NETGEAR R6220", "-c", "**.cgi", "-t", "300"], "rootfs/netgear_r6220")

but it still have another problem... image

BTW... I use qltool to emulate the binary, and it seems to work (the port 8080 is open). the command is: qltool run -f rootfs/netgear_r6220/bin/mini_httpd --rootfs rootfs/netgear_r6220/ -m

please help me solve the problem, thanks!

xwings commented 3 years ago

If qltools works, there is no reason your script is not working. Check the profile and reassign a correct one ?

xwings commented 2 years ago

Will you be able to try the latest version of Qiling and see if you still face same issue. There is lots of rework since 2021. Feel free to open a new issue if you have any similar problem.