LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   decoding shell script (https://www.linuxquestions.org/questions/linux-general-1/decoding-shell-script-4175542108/)

mohanagy 05-10-2015 12:04 AM

decoding shell script
 
hello every one
i'm new in the linux world
i faced encoded shell script
if u see this post
http://www.linuxquestions.org/questi...script-828096/
the script shell was encoded and end with sh.x and sh.x.c
the problem is how to decode this file?
can i do
the programe was used in
is shc Version 3.8.9, Generic Script Compiler

unSpawn 05-10-2015 03:23 PM

Quote:

Originally Posted by mohanagy (Post 5360263)
the script shell was encoded and end with sh.x and sh.x.c
the problem is how to decode this file?

The legal way is to ask the person who encoded it for the source.

mohanagy 05-10-2015 04:05 PM

Hahaha i asked my self
and the answaer was
u lost the orginal file -_-

rtmistler 05-11-2015 07:04 AM

Definitely a learning experience where you learn to retain original source, and a record of the process which you used to transform the content from one form to another.

My rule of thinking is the following:
  1. You created the original. You're not capable of replicating what you did?
  2. From what you have, it is either possible to reverse engineer, versus not. If possible, it is next a question of whether it is worth your time to do this versus re-do your original efforts.
  3. We all learn new techniques at doing stuff. If this script is less than a year (or some acceptable time frame) old (a) definitely applies. If the script is very old, then one would wonder if a more current way to do things would be applicable.
  4. What about looking in to file recovery? Like Photorec or another file recovery mechanism where you apply it to a known source directory location where you know you once had the source and have a possibility of recovery some or all of that original source?

replica9000 05-11-2015 09:35 AM

Quote:

Originally Posted by mohanagy (Post 5360522)
Hahaha i asked my self
and the answaer was
u lost the orginal file -_-

Have a look at this article

http://www.linuxjournal.com/article/8256?page=0,0

mohanagy 05-11-2015 09:42 AM

i can't recode the orginal
it's big code
i can't make revoery file

and i need the code thats the resone

======
i tried the liink and i failed


All times are GMT -5. The time now is 01:31 PM.