ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi,i have compiled binary file but i don't have source code for that binary.how can i get source code from binary file.if any one knows let me know(my main intention is i have a vxworks compiled binary but i don't have source code,how can i get source code)
Hi,i have compiled binary file but i don't have source code for that binary.how can i get source code from binary file.if any one knows let me know(my main intention is i have a vxworks compiled binary but i don't have source code,how can i get source code)
The object-files produced by some language systems (e.g. Java) can sometimes be decompiled with marginal results, although, even then, the outcome is "worse than minify'd." All variable names and so-forth are gone.
If the compiler performed optimization, as most compilers do, there's no longer a 1:1 correspondence between the source-code tht went in, and the object-code that came out. The optimized code is functionally equivalent, but not identical.
Pragmatically, though, the answer to your question is: "no."
Last edited by sundialsvcs; 02-27-2015 at 07:37 AM.
It's possible using decompilers and also assembly source can be get by objdump.
There are few decompilers (to c language and assembly language) around. Use Wikipedia and web search to find them.
Please don't just tell people to go look things up as an answer. If you're going to say this, provide examples.
Quote:
It's illegal in some place but legal in others and also depends on license terms of the binary. Reverse Engineering is legal in many places.
Sorry, wrong..it is NOT legal ANYPLACE to do this, unless you OWN THE RIGHTS TO THE SOURCE CODE TO START WITH. When you buy ANY software, the licence is for you to USE IT, as is...NOT to decompile it. Reverse engineering is permissible, only in the broadest sense; if you know you put in XXX and get out YZX, you can write your OWN code, using their software as a road map only. The only way this is 'legal' is if the software in question is open source to start with...and if it was, you wouldn't need to decompile it, would you??
OP, vxworks is NOT open source. If you want the source code for a valid reason, and you've purchased a license, you may (emphasis on MAY), be able to contact Wind River and ask them for it. They may require you to sign an NDA, and let you have the pieces you need. You may also be able to contact them and ask them to do a custom build for your company.
Is Berne Copyright convention ( or any other copyright law) followed by all countries of the world?
There is so much wrong with that one sentence that I'd have to spend a LONG time explaining it all, and I doubt you'd get it. To sum things up:
Whether a country accepts a 'copyright convention' is immaterial. That just means that COPYRIGHT violations may not be an offense that can be prosecuted. It DOES NOT make it 'legal', shield you from civil lawsuits, or protect you from theft of intellectual property. Not to mention the fact that if you violate the EULA of the software you're decompiling, you CAN be prosecuted for THAT, regardless of 'copyright conventions'.
Quote:
It's time to improve your knowledge.
And it's time for you to stop personal attacks, and time for you to stop posting things that are incorrect or misleading. Post reported to moderators.
Quote:
And what if that particular binary software does allows decompilation.
...which was addressed in the previous posts, wasn't it???
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 13,597
Rep:
A few comments (and reminders from the LQ rules):
* Personal attacks on others will not be tolerated.
* Do not post if you do not have anything constructive to say in the post.
* Challenge others' points of view and opinions, but do so respectfully and thoughtfully ... without insult and personal attack. Differing opinions is one of the things that make this site great.
* We understand there is a gray area with the legality of many things and that different jurisdictions have vastly different rules. We try to strike a balance between freedom of speech / the desire for knowledge with keeping LQ clear of any legal issues in our jurisdiction / not helping with actions that are clearly illegal or unethical. It's a difficult line to walk sometimes, which is why we assess each instance on an individual basis.
* Personal attacks on others will not be tolerated.
* Do not post if you do not have anything constructive to say in the post.
* Challenge others' points of view and opinions, but do so respectfully and thoughtfully ... without insult and personal attack. Differing opinions is one of the things that make this site great.
* We understand there is a gray area with the legality of many things and that different jurisdictions have vastly different rules. We try to strike a balance between freedom of speech / the desire for knowledge with keeping LQ clear of any legal issues in our jurisdiction / helping with actions that are clearly illegal or unethical. It's a difficult line to walk sometimes, which is why we assess each instance on an individual basis.
--jeremy
Thanks for LQ rules issues.
In the start I felt TBone's post to my posts as making personal attacks on me. Though some were right. But I just ignored rest. It continued then I started commenting back. And he nows thinks I am making personal attacks on him. He uses some words which I feel are personal attacks.
In the start I felt TBone's post to my posts as making personal attacks on me. Though some were right. But I just ignored rest. It continued then I started commenting back. And he nows thinks I am making personal attacks on him. He uses some words which I feel are personal attacks.
I don't 'think' you are, I know it. Read the above statement that you made. If you feel like being corrected when you post something that's either blatantly wrong or misleading is a 'personal attack', then you should take the advice that unSpawn gave you, and do a bit more research before answering.
Lots of motivations there. "Creation of unlicensed/unapproved duplicates" - one of the many things. But how can decompiling be a copyright violation when you don't copy anything? It's the distribution that's illegal. However, you could be breaking some rule in some EULA, so someone could sue you. I'd maybe worry if I was in the USA.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.