flat assembler
Message board for the users of flat assembler.

Index > Linux > any way to force OS to run binary files?

Author
Thread Post new topic Reply to topic
DrenThales



Joined: 05 Sep 2006
Posts: 11
DrenThales 18 Sep 2006, 18:49
Is there any way to force Linux to run binary files as machine code? It keeps giving me "cannot execute binary file", even when I'm using root.

(I'm using Fedora Core 5 distro, currently)
Post 18 Sep 2006, 18:49
View user's profile Send private message Reply with quote
Quantum



Joined: 24 Jun 2005
Posts: 122
Quantum 18 Sep 2006, 23:43
Plain binary file or an ELF executable file?
Post 18 Sep 2006, 23:43
View user's profile Send private message Reply with quote
mattst88



Joined: 12 May 2006
Posts: 260
Location: South Carolina
mattst88 11 Oct 2006, 01:31
This is most likely because you need to set the file to executable permissions.

Code:
chmod +x your_exe    
Post 11 Oct 2006, 01:31
View user's profile Send private message Visit poster's website Reply with quote
a16b03



Joined: 24 Jan 2006
Posts: 43
Location: Riga, Latvia
a16b03 13 Oct 2006, 18:52
Check Kernel Configuration (where executable files or something)

There you can select binary file support
Post 13 Oct 2006, 18:52
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger ICQ Number Reply with quote
orbital_fox



Joined: 08 Sep 2006
Posts: 14
orbital_fox 17 Oct 2006, 09:48
I think its what mattst88 said..

It does not matter if u are root, a user or god himself.. First you must make the file executable.. and then u can run it. Its only after that, that it matters which user u are and if u can actually execute the script/program

_________________
http://section-9.co.nr
Post 17 Oct 2006, 09:48
View user's profile Send private message Visit poster's website Reply with quote
rob.rice



Joined: 20 Dec 2003
Posts: 54
rob.rice 24 Oct 2006, 05:27
IF you are root to linux you ARE god
but with out breathing life in to it even god can't tell a stone to get up and run
Post 24 Oct 2006, 05:27
View user's profile Send private message Reply with quote
f0dder



Joined: 19 Feb 2004
Posts: 3175
Location: Denmark
f0dder 24 Oct 2006, 06:54
Write a little ELF program that loads (mmap() seems like a decent choice) a binary file and executes it...
Post 24 Oct 2006, 06:54
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.