-
Notifications
You must be signed in to change notification settings - Fork 260
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pexpect.exceptions.EOF: End Of File (EOF). Exception style platform. #62
Comments
Same problem. |
This comment has been minimized.
This comment has been minimized.
It work for me killing fat-related processes, but I don’t know what caused the error, I guess it might be the memory space too small. cuc@cuc-VirtualBox:~/tools/firmware-analysis-toolkit$ ps aux | grep fat
cuc 2304 82.4 0.6 53924 6348 ? R 17:24 147:52 python3 /home/cuc/tools/firmware-analysis-toolkit/fat.py /home/cuc/tools/firmware-analysis-toolkit/share/dlink/DCS-930L_Ax_v1.15.04.bin
root 2623 0.3 6.4 1191064 64876 pts/18 Sl+ 17:26 0:42 qemu-system-mipsel -m 256 -M malta -kernel /home/cuc/tools/firmware-analysis-toolkit/firmadyne/binaries//vmlinux.mipsel -drive if=ide,format=raw,file=/home/cuc/tools/firmware-analysis-toolkit/firmadyne/scratch//7//image.raw -append root=/dev/sda1 console=ttyS0 nandsim.parts=64,64,64,64,64,64,64,64,64,64 rdinit=/firmadyne/preInit.sh rw debug ignore_loglevel print-fatal-signals=1 user_debug=31 firmadyne.syscall=0 -nographic -netdev socket,id=net1,listen=:2001 -device e1000,netdev=net1 -netdev socket,id=net2,listen=:2002 -device e1000,netdev=net2 -netdev socket,id=net3,listen=:2003 -device e1000,netdev=net3
cuc 12754 0.0 0.1 15756 1088 pts/23 S+ 20:24 0:00 grep --color=auto fat
cuc@cuc-VirtualBox:~/tools/firmware-analysis-toolkit$ sudo kill -9 2304
cuc@cuc-VirtualBox:~/tools/firmware-analysis-toolkit$ sudo kill -9 2623 ./fat.py wnap320_V3.7.11.4_firmware.tar
__ _
/ _| | |
| |_ __ _ | |_
| _| / _` | | __|
| | | (_| | | |_
|_| \__,_| \__|
Welcome to the Firmware Analysis Toolkit - v0.3
Offensive IoT Exploitation Training http://bit.do/offensiveiotexploitation
By Attify - https://attify.com | @attifyme
[+] Firmware: wnap320_V3.7.11.4_firmware.tar
[+] Extracting the firmware...
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/pexpect/spawnbase.py", line 166, in read_nonblocking
s = os.read(self.child_fd, size)
OSError: [Errno 5] Input/output error
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/pexpect/expect.py", line 111, in expect_loop
incoming = spawn.read_nonblocking(spawn.maxread, timeout)
File "/usr/lib/python3/dist-packages/pexpect/pty_spawn.py", line 485, in read_nonblocking
return super(spawn, self).read_nonblocking(size)
File "/usr/lib/python3/dist-packages/pexpect/spawnbase.py", line 171, in read_nonblocking
raise EOF('End Of File (EOF). Exception style platform.')
pexpect.exceptions.EOF: End Of File (EOF). Exception style platform.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "./fat.py", line 170, in
main()
File "./fat.py", line 158, in main
image_id = run_extractor(args.firm_path)
File "./fat.py", line 52, in run_extractor
child.expect_exact("Tag: ")
File "/usr/lib/python3/dist-packages/pexpect/spawnbase.py", line 418, in expect_exact
return exp.expect_loop(timeout)
File "/usr/lib/python3/dist-packages/pexpect/expect.py", line 117, in expect_loop
return self.eof(e)
File "/usr/lib/python3/dist-packages/pexpect/expect.py", line 63, in eof
raise EOF(msg)
pexpect.exceptions.EOF: End Of File (EOF). Exception style platform.
<pexpect.pty_spawn.spawn object at 0x7f994ab87040>
command: /home/hjk/soft/firmware-analysis-toolkit-master/firmadyne/sources/extractor/extractor.py
args: ['/home/hjk/soft/firmware-analysis-toolkit-master/firmadyne/sources/extractor/extractor.py', '-np', '-nk', 'wnap320_V3.7.11.4_firmware.tar', '/home/hjk/soft/firmware-analysis-toolkit-master/firmadyne/images']
buffer (last 100 chars): b''
before (last 100 chars): b'firmware-analysis-toolkit-master/firmadyne/wnap320_V3.7.11.4_firmware.tar\r\n>> Skipping: completed!\r\n'
after: <class 'pexpect.exceptions.EOF'>
match: None
match_index: None
exitstatus: None
flag_eof: True
pid: 23010
child_fd: 5
closed: False
timeout: None
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'Tag:
|
I encountered the same problem, have you solved it? |
Any solutions on this ?? |
I think I found the solution. Go to firmadyne/sources/extractor/exrtractor.py |
Interesting...
|
For me I just reinstall the entire thing, it works for me, I swear |
first run some times previous workspace lives and causes problem! |
i have the same problem is there any way to fix it |
Worked for me! |
(ayman㉿kali)-[~/Downloads/firmware-analysis-toolkit/firmadyne]
[+] Firmware: Gaw5.6T02-4-DL-R1B020-ME.EN_upgrade(0322113411).en_upgrade I have same this problem anyone solve it |
./fat.py wnap320_V3.7.11.4_firmware.tar
[+] Firmware: wnap320_V3.7.11.4_firmware.tar
[+] Extracting the firmware...
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/pexpect/spawnbase.py", line 166, in read_nonblocking
s = os.read(self.child_fd, size)
OSError: [Errno 5] Input/output error
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/pexpect/expect.py", line 111, in expect_loop
incoming = spawn.read_nonblocking(spawn.maxread, timeout)
File "/usr/lib/python3/dist-packages/pexpect/pty_spawn.py", line 485, in read_nonblocking
return super(spawn, self).read_nonblocking(size)
File "/usr/lib/python3/dist-packages/pexpect/spawnbase.py", line 171, in read_nonblocking
raise EOF('End Of File (EOF). Exception style platform.')
pexpect.exceptions.EOF: End Of File (EOF). Exception style platform.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "./fat.py", line 170, in
main()
File "./fat.py", line 158, in main
image_id = run_extractor(args.firm_path)
File "./fat.py", line 52, in run_extractor
child.expect_exact("Tag: ")
File "/usr/lib/python3/dist-packages/pexpect/spawnbase.py", line 418, in expect_exact
return exp.expect_loop(timeout)
File "/usr/lib/python3/dist-packages/pexpect/expect.py", line 117, in expect_loop
return self.eof(e)
File "/usr/lib/python3/dist-packages/pexpect/expect.py", line 63, in eof
raise EOF(msg)
pexpect.exceptions.EOF: End Of File (EOF). Exception style platform.
<pexpect.pty_spawn.spawn object at 0x7f994ab87040>
command: /home/hjk/soft/firmware-analysis-toolkit-master/firmadyne/sources/extractor/extractor.py
args: ['/home/hjk/soft/firmware-analysis-toolkit-master/firmadyne/sources/extractor/extractor.py', '-np', '-nk', 'wnap320_V3.7.11.4_firmware.tar', '/home/hjk/soft/firmware-analysis-toolkit-master/firmadyne/images']
buffer (last 100 chars): b''
before (last 100 chars): b'firmware-analysis-toolkit-master/firmadyne/wnap320_V3.7.11.4_firmware.tar\r\n>> Skipping: completed!\r\n'
after: <class 'pexpect.exceptions.EOF'>
match: None
match_index: None
exitstatus: None
flag_eof: True
pid: 23010
child_fd: 5
closed: False
timeout: None
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'Tag: '
The text was updated successfully, but these errors were encountered: