Jump to content



Photo

[C#] HDD died, .net reverse eng.


  • Please log in to reply
16 replies to this topic

#1 sathenzar

sathenzar

    Neowinian

  • Joined: 12-June 06

Posted 01 September 2012 - 23:34

So my hdd died yesterday. My previous backup around 2 months old. Is there anyway to use my assemblies/debugger files generated to reverse engineer my code so I don't have to re-write everything? This whole thing has been a nightmare.

EDIT: I'm using .net 4.0 and WPF/C#.


#2 Arceles

Arceles

    Time Craymel

  • Tech Issues Solved: 1
  • Joined: 28-November 09
  • Location: 4th dimmension.
  • OS: Win 7 Ultimate / Win 8.1 Pro (With Start Menu Start8, otherwise is UNUSABLE) / Android 4.1.2 Jelly Bean
  • Phone: XT890 Motorola RAZRi (x86 processor)

Posted 01 September 2012 - 23:43

I think is better for you to pay for a recovery data service....

#3 firey

firey

    F͎̗͉͎͈͑͡ȉ͎̣̐́ṙ͖̺͕͙̓̌è̤̞͉̟̲͇̍̍̾̓ͥͅy͓̍̎̌̏̒

  • Tech Issues Solved: 5
  • Joined: 30-October 05
  • Location: Ontario, Canada
  • OS: Windows 7
  • Phone: Android (4.1.2)

Posted 01 September 2012 - 23:50

So my hdd died yesterday. My previous backup around 2 months old. Is there anyway to use my assemblies/debugger files generated to reverse engineer my code so I don't have to re-write everything? This whole thing has been a nightmare.

EDIT: I'm using .net 4.0 and WPF/C#.


Could use Reflector and dump it that way.

#4 Osiris

Osiris

    Neowinian God!

  • Joined: 31-October 01
  • Location: Australia
  • OS: WIndows 8.1
  • Phone: HTC 8X

Posted 01 September 2012 - 23:52

Depending on the cause of the failure, you can try the freezer trick or using spinrite. As I said depends on the cause of the failure, imo for home users data recovery services are not feasible as they often are not the target market and often depending on how the drive has died they can be just as limited as to what they can do.

#5 vetStephen

Stephen

    Neowinian Senior

  • Joined: 17-July 05
  • Location: Manchester / Huddersfield, UK

Posted 01 September 2012 - 23:53

http://www.jetbrains.com/decompiler/ can be used to decompile your assemblies,

Note: always use sourcecontrol, you would have kept the source if it was hosted somewhere

#6 OP sathenzar

sathenzar

    Neowinian

  • Joined: 12-June 06

Posted 02 September 2012 - 15:06

I might point out the hard drive that failed was a pci-e revo drive setup in raid 0. But thanks for the jetbrains idea I'll look it up. Really I want the code, I can always re-construct the xaml if I need to. This whole thing has just been a nightmare. My last copy is so many thousands upon thousands of lines of code behind.

#7 OP sathenzar

sathenzar

    Neowinian

  • Joined: 12-June 06

Posted 02 September 2012 - 15:56

Ok so that worked in a way (the program you gave me), however it renamed all of my variables in their own scope (I have a billion variables lol). Is there anyway to save the variable names or is that something the compiler does when converting to IL code and such?

#8 vetStephen

Stephen

    Neowinian Senior

  • Joined: 17-July 05
  • Location: Manchester / Huddersfield, UK

Posted 04 September 2012 - 13:43

Ok so that worked in a way (the program you gave me), however it renamed all of my variables in their own scope (I have a billion variables lol). Is there anyway to save the variable names or is that something the compiler does when converting to IL code and such?


the variable name isnt saved when changed to ILcode, it is only saved if the member is public.

#9 OP sathenzar

sathenzar

    Neowinian

  • Joined: 12-June 06

Posted 15 September 2012 - 18:14

Yeah that's what I figured. It had been a while since I studied the process of the compiler to IL code but I couldn't remember if it renamed the variables that were private or not. I think it does that for faster processing if I'm not mistaken. Oh well, either way I just started re-writing everything *sigh*. This time I will have several back ups :) I lost about 20,000 lines of code.

#10 Stetson

Stetson

    Neowinian Senior

  • Joined: 04-October 06

Posted 15 September 2012 - 18:23

I might point out the hard drive that failed was a pci-e revo drive setup in raid 0.


You were storing the only copy of your source code on RAID 0? :s

#11 sbauer

sbauer

    Neowinian

  • Tech Issues Solved: 2
  • Joined: 05-September 03
  • Location: Baltimore, MD
  • OS: Windows 7 / OSX
  • Phone: iPhone 5

Posted 15 September 2012 - 18:45

Yeah that's what I figured. It had been a while since I studied the process of the compiler to IL code but I couldn't remember if it renamed the variables that were private or not. I think it does that for faster processing if I'm not mistaken. Oh well, either way I just started re-writing everything *sigh*. This time I will have several back ups :) I lost about 20,000 lines of code.


Backups are nice, but you really should be using version control. It's not just for projects with multiple developers. Bitbucket is free. Backups taken care of.

#12 OP sathenzar

sathenzar

    Neowinian

  • Joined: 12-June 06

Posted 15 September 2012 - 19:42

Backups are nice, but you really should be using version control. It's not just for projects with multiple developers. Bitbucket is free. Backups taken care of.


Lol yeah I know. Pretty dumb. It wasn't ALL of my projects. Just one I had started on and just ran out of space on my back up hard drives and thought oh well this is a brand new hdd I'll back it up in a couple of weeks. Well the week before I was going to buy a new one the new hdd died lol. Lesson learned.

#13 ffMathy

ffMathy

    C# .NET guru

  • Joined: 21-January 11
  • OS: Windows 8

Posted 26 November 2012 - 10:12

Have you tried harddrive recovery software such as R-Studio? It's the same software the feds use to recover deleted data.

#14 wrack

wrack

    Wireless Robotic Android Calibrated for Killing

  • Joined: 09-December 06
  • Location: Melbourne, Australia

Posted 06 December 2012 - 00:58

1) Try software based recovery solutions.
2) Try DECOMPILER such as JustDecompile from JetBrains or Reflector from RedGate
3) Try hardware based recovery solution if the cost if worth it (Keep in mind, this method is a destructive to the disk, you will not get the original disk back).

#15 pes2013

pes2013

    Neowinian

  • Joined: 24-September 12

Posted 09 December 2012 - 17:49

It's the same software the feds use to recover deleted data.

Source for that statement?



Click here to login or here to register to remove this ad, it's free!