qiling icon indicating copy to clipboard operation
qiling copied to clipboard

problem with run example/netgear_6220_mips32el_linux.py

Open qq963258qq opened this issue 4 years ago • 9 comments

*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

qq963258qq avatar Apr 21 '21 13:04 qq963258qq

Seems to be introduced in #772

wtdcode avatar Apr 21 '21 14:04 wtdcode

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

qq963258qq avatar Apr 22 '21 02:04 qq963258qq

try dev ?

xwings avatar Apr 27 '21 14:04 xwings

Solved in 6a30e9e4c1eebe4d3338fab47af875ea7d0f6bcb

wtdcode avatar Apr 27 '21 14:04 wtdcode

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

qq963258qq avatar Apr 28 '21 02:04 qq963258qq

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

Where do you get the rootfs?

wtdcode avatar Apr 28 '21 02:04 wtdcode

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 avatar Apr 28 '21 03:04 qq963258qq

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!

qq963258qq avatar May 10 '21 10:05 qq963258qq

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

xwings avatar May 25 '21 00:05 xwings

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.

xwings avatar Oct 06 '22 03:10 xwings