question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't Execute Binary

See original GitHub issue

Good afternoon,

I’m using arm_now to debug a MIPS binary. I was able to download the challenge binary but cannot run it. I ran chmod +x on the file. I get the following.

ls
ch27.bin    wget-log    wget-log.2  wget-log.4  wget-log.6
index.html  wget-log.1  wget-log.3  wget-log.5  wget-log.7
# ./ch27.bin 
-sh: ./ch27.bin: not found
#

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:11 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
idlewogcommented, Aug 14, 2019

Yes @SakiiR you’re right … that’s a root-me challenge … i’v done it with ghidra instead … but , as i said , i tried all the possible arch … and none worked binwalk and file gives me different results … weird … anyway, i can post the output of ld cmd next week …if it can help …

1reaction
ShellCode33commented, Jul 9, 2019

Hi, this usually happens when you’re executing a binary on the wrong architecture, try using another MIPS arch, see arm_now list

Read more comments on GitHub >

github_iconTop Results From Across the Web

How can I resolve the error "cannot execute binary file"?
This means that you are trying to execute a binary file using your bash script which is not intended to be run ......
Read more >
How to Fix Cannot Execute Binary File Error
When you cannot execute binary file Linux, generally the message of the error appears when Linux is not able to detect or identify...
Read more >
Error: cannot execute binary file - Educative.io
This error typically occurs when a binary file for a certain processor architecture is run on a different architecture e.g., an x86 executable...
Read more >
"cannot execute binary file" when trying to run a shell script on ...
chmod -x removes execution permission from a file. Do this: chmod +x path/to/mynewshell.sh. And run it with /path/to/mynewshell.sh.
Read more >
How to Resolve "Cannot Execute Binary File" Errors? (5 ...
Whenever a user encounters the “cannot execute binary file” error, it usually serves as a warning not to open the file you are...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found