Skip to content

About fat path error #7

@novysodope

Description

@novysodope

When running fat, the following error message is prompted:

Traceback (most recent call last):
File "fat.py", line 172, in
main()
File "fat.py", line 160, in main
image_id = run_extractor(args.firm_path)
File "fat.py", line 54, in run_extractor
child.expect_exact("Tag: ")
File "/home/iov/.local/lib/python3.6/site-packages/pexpect/spawnbase.py", line 421, in expect_exact
return exp.expect_loop(timeout)
File "/home/iov/.local/lib/python3.6/site-packages/pexpect/expect.py", line 179, in expect_loop
return self.eof(e)
File "/home/iov/.local/lib/python3.6/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 0x7f42e7f680f0>
command: /usr/bin/sudo
args: ['/usr/bin/sudo', '--', '/home/iov/Desktop/Tools/2-Analysis/firmadyne/sources/extractor/extractor.py', '-np', '-nk', '/home/iov/Desktop/Images/WNAP320 Firmware Version 2.0.3.zip', '/home/iov/Desktop/Tools/2-Analysis/firmadyne/images']
buffer (last 100 chars): b''
before (last 100 chars): b'do: /home/iov/Desktop/Tools/2-Analysis/firmadyne/sources/extractor/extractor.py: command not found\r\n'
after: <class 'pexpect.exceptions.EOF'>
match: None
match_index: None
exitstatus: None
flag_eof: True
pid: 7275
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: '

It is due to an incorrect configuration of the firmadyne_path parameter in the configuration file. Please go to the installation directory of fat or execute the following command on the error terminal:

sudo nano fat.config

The value of firmadyne_path should be changed to /home/your_username/Desktop/Tools/3-Analysis/firmadyne/

And it is also necessary to execute the following command to avoid errors with missing magic modules:

sudo -H pip install git+https://github.com/ahupp/python-magic

Thanks ReturnHere feedback from:
#5

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions