Help!!! Need to read & decompile program FROM prop. (Virus emergency!!)
m.r.b.
Posts: 36
I· have a major problem....
I have been working on some source code for a few weeks in the evenings.... as time permits.. And it worked fantastically...
I have just been doing minor mods here and there to streamline it, before burn to CD for permanent archiving.
As a matter of course, I·archive·some software changes to zip files, on my HDD, as I went along.. to be on the carefull side!!
... and I normally backup files to external HDD, but the one time I·didn't (still work in progress!!) I landed in trouble!!
Anyway .... As is SO easily done, I opened an email (with a·{??·spoofed}·friends email address), opened an attachment and, well.. the rest is history..
but in the process, 'lost' a few files (my source code+zipped archives) {well actually A LOT more than that but I restored from external HDD}... I used antivirus software, cleaned up my PC.. then tried to recover the files with a file recovery program... but, they are gone beyond recovery!!! (can open them in Prop tool,·some of the·source code is still visable, the rest is jibberish!!)
Can I / What is available to / How do I ... "Read back from the prop chip, through the prop plug interface... then decompile to recover my source code???"
Thanks in advance..
M.R.B.
I have been working on some source code for a few weeks in the evenings.... as time permits.. And it worked fantastically...
I have just been doing minor mods here and there to streamline it, before burn to CD for permanent archiving.
As a matter of course, I·archive·some software changes to zip files, on my HDD, as I went along.. to be on the carefull side!!
... and I normally backup files to external HDD, but the one time I·didn't (still work in progress!!) I landed in trouble!!
Anyway .... As is SO easily done, I opened an email (with a·{??·spoofed}·friends email address), opened an attachment and, well.. the rest is history..
but in the process, 'lost' a few files (my source code+zipped archives) {well actually A LOT more than that but I restored from external HDD}... I used antivirus software, cleaned up my PC.. then tried to recover the files with a file recovery program... but, they are gone beyond recovery!!! (can open them in Prop tool,·some of the·source code is still visable, the rest is jibberish!!)
Can I / What is available to / How do I ... "Read back from the prop chip, through the prop plug interface... then decompile to recover my source code???"
Thanks in advance..
M.R.B.
Comments
As far as decompiling ... there is nothing that will give you back your source code. There are some programs, like GEAR, that will interpret the byte codes and display them, they're not in any form that you can use to reconstruct your source program.
-Phil
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
The more I know, the more I know I don't know.· Is this what they call Wisdom?
I work in the computer security area (just on hat that I wear) and recommend that you try spinrite. This is a great hard drive recovery tool from grc.com. Its about $90 at their website. This isn't an ad, and I don't get anything back from them other than satisfaction that they might get a sale to make up for the, ahh, lets say lag with my initial purchase, which has been rectified! I have recovered a few HD after the OS though they were dead, most recently my sisters.
It's not meant to be a deleted file recovery tool, but it does a good job of uncovering damaged data.
I hope it helps.
g/l!
Paul
I'm prepared to put my neck on the line if someone wants to post a .binary file which I've never seen before for decompilation. This will be by-hand decompilation so please don't get carried away with "crack this, sucker". Let's start with just one short .binary, ~100 bytes / ~25 longs, of reasonably sensible code and see where I get to. It should be enough that I can get a feel for how easy or hard it actually is to do.
I have 2/3rds re-written my source code... in 1 saturday + sunday afternoon + a few hours here-and-there in the evenings...
It looks a LOT better structured than my first attempt... There are now more features included, that I wanted to include in the old version, but couldn't due to the structuring of the old version being so bad!!!.. The consensus was right, it does turn out better, and in half the time (or less!!) if re-written from scratch!!
In a way... Things appear to have turned out OK... and .. I have learned to program the propeller 'better' (used to PIC + Z80 ETC..)
I am ALLWAYS saving EACH software change to external USB HDD, so that I can...
1) Roll back if I don't like changes I make
2) For data security, if I were to lose the source again.
Regards MRB
It usually takes a lot of courage to throw away what one has, especially after a protracted development period, and you actually got an opportunity to capitalise on as you're finding now. If nothing else, all those 'nasty hacks' and kludges needed to make the old version work can be rolled into a new design from the ground up giving a much improved version.
I was thinking more of decompilation as an academic exercise rather than a fix for your particular problem, and I'd still be grateful if someone would be kind enough to throw me a bit of .binary I can have a go at decompiling.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- Rick