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
So the issue here is that pexpect doesn't support cjk characters - aka any other character than latin ones.
Please try again without using any chinese characters in the path.
sudo ./fat.py ../../DIR-605LBx_FW209UIb02.bin
[+] Firmware: DIR-605LBx_FW209UIb02.bin
[+] Extracting the firmware...
[+] Image ID: 1
[+] Identifying architecture...
[+] Architecture: mipseb
[+] Building QEMU disk image...
[+] Setting up the network connection, please standby...
Traceback (most recent call last):
File "./fat.py", line 172, in
main()
File "./fat.py", line 167, in main
infer_network(arch, image_id, qemu_dir)
File "./fat.py", line 113, in infer_network
child.expect_exact("Interfaces:", timeout=None)
File "/home/china/.local/lib/python3.8/site-packages/pexpect/spawnbase.py", line 421, in expect_exact
return exp.expect_loop(timeout)
File "/home/china/.local/lib/python3.8/site-packages/pexpect/expect.py", line 179, in expect_loop
return self.eof(e)
File "/home/china/.local/lib/python3.8/site-packages/pexpect/expect.py", line 122, in eof
raise exc
pexpect.exceptions.EOF: End Of File (EOF). Exception style platform.
<pexpect.pty_spawn.spawn object at 0x7f9a915d6490>
command: /home/china/文档/firmware-analysis-toolkit-master/firmadyne/scripts/inferNetwork.sh
args: ['/home/china/文档/firmware-analysis-toolkit-master/firmadyne/scripts/inferNetwork.sh', '1', 'mipseb']
buffer (last 100 chars): b''
before (last 100 chars): b"\x96\x87\xe6\xa1\xa3/firmware-analysis-toolkit-master/firmadyne/scratch//1//image.raw': No such file or directory\r\n"
after: <class 'pexpect.exceptions.EOF'>
match: None
match_index: None
exitstatus: None
flag_eof: True
pid: 22673
child_fd: 5
closed: False
timeout: 30
delimiter: <class 'pexpect.exceptions.EOF'>
logfile: None
logfile_read: None
logfile_send: None
maxread: 2000
ignorecase: False
searchwindowsize: None
delaybeforesend: 0.05
delayafterclose: 0.1
delayafterterminate: 0.1
searcher: searcher_string:
0: b'Interfaces:'
The text was updated successfully, but these errors were encountered: