Skip to content
This repository was archived by the owner on Aug 23, 2022. It is now read-only.
This repository was archived by the owner on Aug 23, 2022. It is now read-only.

Issue in disassembling binaries #789

Open
@naren-jayram

Description

@naren-jayram

Hello,

I'm getting the below error when trying to disassemble. Could you please look into it?

┌──(kali㉿kali)-[/opt/…/mcsema/examples/Maze/bin]
└─$ mcsema-disass-3.10 --arch aarch64 --os linux --binary maze.aarch64 --output /tmp/maze.aarch64.cfg --log_file /tmp/maze.aarch64.log --entrypoint main --disassembler /opt/Disassemblers/idafree-7.7/ida64

QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-kali'
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/mcsema_disass-3.1.3.10-py3.10.egg/mcsema_disass/ida7/disass.py", line 75, in execute
return subprocess.check_call(
File "/usr/lib/python3.10/subprocess.py", line 369, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '/opt/Disassemblers/idafree-7.7/ida64 -B -S"/usr/local/lib/python3.10/dist-packages/mcsema_disass-3.1.3.10-py3.10.egg/mcsema_disass/ida7/get_cfg.py --output /tmp/maze.aarch64.cfg --log_file /tmp/maze.aarch64.log --arch aarch64 --os linux --entrypoint main" /tmp/tmp6kbj1zy0/maze.aarch64' returned non-zero exit status 1.
Could not generate a CFG. Try using the --log_file option to see an error log.
Traceback (most recent call last):
File "/usr/local/bin/mcsema-disass-3.10", line 33, in
sys.exit(load_entry_point('mcsema-disass==3.1.3.10', 'console_scripts', 'mcsema-disass-3.10')())
File "/usr/local/lib/python3.10/dist-packages/mcsema_disass-3.1.3.10-py3.10.egg/mcsema_disass/main.py", line 168, in main
if 0 == os.path.getsize(args.output):
File "/usr/lib/python3.10/genericpath.py", line 50, in getsize
return os.stat(filename).st_size
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/maze.aarch64.cfg'

┌──(kali㉿kali)-[/opt/…/mcsema/examples/Maze/bin]
└─$ sudo mcsema-disass-3.10 --arch aarch64 --os linux --binary maze.aarch64 --output /tmp/maze.aarch64.cfg --log_file /tmp/maze.aarch64.log --entrypoint main --disassembler /opt/Disassemblers/idafree-7.7/ida64

[sudo] password for kali:
Authorization required, but no authorization protocol specified
qt.qpa.xcb: could not connect to display :0
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.

Aborted
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/mcsema_disass-3.1.3.10-py3.10.egg/mcsema_disass/ida7/disass.py", line 75, in execute
return subprocess.check_call(
File "/usr/lib/python3.10/subprocess.py", line 369, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '/opt/Disassemblers/idafree-7.7/ida64 -B -S"/usr/local/lib/python3.10/dist-packages/mcsema_disass-3.1.3.10-py3.10.egg/mcsema_disass/ida7/get_cfg.py --output /tmp/maze.aarch64.cfg --log_file /tmp/maze.aarch64.log --arch aarch64 --os linux --entrypoint main" /tmp/tmphehlub9f/maze.aarch64' returned non-zero exit status 134.
Could not generate a CFG. Try using the --log_file option to see an error log.
Traceback (most recent call last):
File "/usr/local/bin/mcsema-disass-3.10", line 33, in
sys.exit(load_entry_point('mcsema-disass==3.1.3.10', 'console_scripts', 'mcsema-disass-3.10')())
File "/usr/local/lib/python3.10/dist-packages/mcsema_disass-3.1.3.10-py3.10.egg/mcsema_disass/main.py", line 168, in main
if 0 == os.path.getsize(args.output):
File "/usr/lib/python3.10/genericpath.py", line 50, in getsize
return os.stat(filename).st_size
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/maze.aarch64.cfg'

OS Details:

┌──(kali㉿kali)-[/opt/…/mcsema/examples/Maze/bin]
└─$ cat /etc/os-release
PRETTY_NAME="Kali GNU/Linux Rolling"
NAME="Kali GNU/Linux"
ID=kali
VERSION="2022.2"
VERSION_ID="2022.2"
VERSION_CODENAME="kali-rolling"
ID_LIKE=debian
ANSI_COLOR="1;31"
HOME_URL="https://www.kali.org/"
SUPPORT_URL="https://forums.kali.org/"
BUG_REPORT_URL="https://bugs.kali.org/"

┌──(kali㉿kali)-[/opt/…/mcsema/examples/Maze/bin]
└─$ uname -a
Linux kali 5.16.0-kali7-amd64 #1 SMP PREEMPT Debian 5.16.18-1kali1 (2022-04-01) x86_64 GNU/Linux

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