LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-10-2015, 12:04 AM   #1
mohanagy
LQ Newbie
 
Registered: May 2015
Posts: 4

Rep: Reputation: Disabled
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
 
Old 05-10-2015, 03:23 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by mohanagy View Post
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.
 
Old 05-10-2015, 04:05 PM   #3
mohanagy
LQ Newbie
 
Registered: May 2015
Posts: 4

Original Poster
Rep: Reputation: Disabled
Hahaha i asked my self
and the answaer was
u lost the orginal file -_-
 
Old 05-11-2015, 07:04 AM   #4
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,882
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
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?
 
Old 05-11-2015, 09:35 AM   #5
replica9000
Senior Member
 
Registered: Jul 2006
Distribution: Debian Unstable
Posts: 1,126
Blog Entries: 2

Rep: Reputation: 260Reputation: 260Reputation: 260
Quote:
Originally Posted by mohanagy View Post
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
 
Old 05-11-2015, 09:42 AM   #6
mohanagy
LQ Newbie
 
Registered: May 2015
Posts: 4

Original Poster
Rep: Reputation: Disabled
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Decoding Shell Script MDara Programming 4 04-16-2014 06:54 PM
Decoding vendor-encapsulated-information in dhclient-script Rish.Ahm Linux - Networking 2 09-20-2012 03:22 AM
How to pass command line arguments from one shell script to another shell script VijayaRaghavanLakshman Linux - Newbie 5 01-20-2012 09:12 PM
FLAC decoding script jamesan Programming 5 08-05-2009 07:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:48 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration