Link to home
Start Free TrialLog in
Avatar of Rajat Sehgal
Rajat SehgalFlag for India

asked on

executable binary to shell script

How to convert executable binary to shell script
Avatar of Scott Silva
Scott Silva
Flag of United States of America image

It can be done, in a fashion... You basically uuencode the binary and embed the encoded text at the end of the script. Then the script has to uudecode that text back into a binary...
Or do you mean that you have an exexutable binary, and you want to replace it with a shell script? If so, the answer is probably no, unless you know exactly what the binary does, and what it does is replaceable by a series of linux commands.

If you want help with this, you'll have to provide a _lot_ more information about the binary.
Avatar of tfewster
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Funny that the accepted solution isn't what the question was...
Mine actually converts a binary to a shell script...
But whatever...
Doubly amusing, as the scriptlet I posted was the answer I needed, rather than the answer to the question I'd asked in