Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I am really curious that it is possible to recover all codes from so(Shared Object) file.
I made libxxx.so with 2 C files and 2 C header files.
And I removed original files except libxxx.so.
Can I remake those original files from this so file?
I want to know is it possible.
Then How? give me some clues.
Thanks.
You can get certain things back such as method names, and number of arguments from those variables, but no, you cannot decompile a binary .so file back to its original source.
Related
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 days ago.
Improve this question
I have to deliver a project for my teacher that says that I have to open a file, put some data from the file into a struct that I made, and then create a file and write the data from the struct. (sorry for my bad English). However it won't create a file, I looked everywhere, and the compiler and the fopen don't give me an error.
I searched everywhere to find the file, but I found nothing. So I am thinking that my code doesn't create a file for some reason. I tried to create a file with fopen again with a different code and the file was created.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
I want to write a code and separate comments and code and store them in different files.
I have tried copying whole code into another file.
I need 2 files, one containing code and and one containing comments.
First research on how compiler distinguishes comments from code.
Link - Do comments get translated to machine code? C++
You can strip comment from code in the same way comments are stripped before/in preprocessing.
Stripped comment before/in preprocessing - Comments in file.
Output to the preprocessing - Code in file.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 years ago.
Improve this question
I need to change a some parts in binary file. For example "00asdd" to some number. I don't have a clue what to do. So the file can be converted from binary to ASCII.
Use an editor that can handle binary files. emacs can usually do that.
You can also write a C program that opens the file in binary mode and modifies it to you liking. Be aware that is you insert or delete bytes from a binary file, you usually corrupt its structure and it no longer functions correctly.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I have a c code file (let's say A). I wanted to redirect the output of that code to a text file by using another C program (say B). But the thing is I can't touch (edit) the A file. Is there a way to do so by using FILE operations, maybe?
You have two options here:
Probably the easiest, yet least flexible solution would using system function:
system("A.exe <someargs> > filename.txt");
If you want more flexibility, you should look into your platform APIs. On Windows, you can use CreateProcess specifying a handle to which redirect each of the streams (stdin, stdout and stderr).
http://msdn.microsoft.com/en-us/library/windows/desktop/ms682499%28v=vs.85%29.aspx
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
For instance jpeg (JFIF) has a SOI (start of image) marker. One can argue that it can be used to identify the type of file, but I'm looking for more sound reason with supporting examples.
These are often referred to as "signature bytes" and their primary purpose is simply to aide in validating the file. Some file types contain additional signature bytes elsewhere in the file (ie: BMP format), and some contain none at all. The latter kind still generally provide some other means to validate the file using a variety of techniques, such as checksums, stored file size and the like.