• 0

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


Question

16 answers to this question

Recommended Posts

  • 0

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.

  • 0

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.

  • 0

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.

  • 0

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?

  • 0

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.

  • 0

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.

  • 0

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.

  • 0

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.

  • 0

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).

  • 0

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

Haha, no it's not.

Feds use encase, winhex and that other one of which the name slips me buy, fx toolkit or something.

EDIT: FTK, not tx toolkit.

  • 0

if you didn't obfuscate your code you should be able to get it completely back using a decompiler. .net Reflectoris the best, although not free. Even if some variables are renamed it's a metter of refactoring, still a lot faster than starting again from scratch.

And remember, 0 in raid-0 stands for the amount of files you can recover when a drive fails ;)

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • It's the only reason I finally have an iPhone (for work) and enjoy using it so much that I'm tempted to move from android next time I need to replace my own device
    • So is Russia, China, Iran, North Korea, just to mention a few. What's your point? Everyone is a threat from their enemies' perspective. I'd say that Israel is only a threat to their immediate enemies like Hamas, Hezbollah and the Iranian regime, not to anyone else.
    • The government is not the good guy either. You propose 99% of people require that the government overreach and govern their freedom of information and privacy, while ignoring the government is made up 100% of people, of which 99% are (as you described) brain dead. You can't have both. The reality is Signal is absolutely right and the government is doing what it has always done. Ignoring that we are their boss and grabbing all the power they possibly can to make sure we aren't. Your (societies) ###### parenting is not reason enough as to why I can't have a safe platform for my data/information. Thinking the government is helping is precisely what they are targeting psychologically to take suckers like you for a ride. "Think of the children" was, has, is, and will always be a mechanism of control. In the rare occasion it's actually essential the mass consensus has always been there and it doesn't become a debate.
    • Google Chrome 149.0.7827.103 (offline installer) by Razvan Serea The web browser is arguably the most important piece of software on your computer. You spend much of your time online inside a browser: when you search, chat, email, shop, bank, read the news, and watch videos online, you often do all this using a browser. Google Chrome is a browser that combines a minimal design with sophisticated technology to make the web faster, safer, and easier. Use one box for everything--type in the address bar and get suggestions for both search and Web pages. Thumbnails of your top sites let you access your favorite pages instantly with lightning speed from any new tab. Desktop shortcuts allow you to launch your favorite Web apps straight from your desktop. Chrome has many useful features built in, including automatic full-page translation and access to thousands of apps, extensions, and themes from the Chrome Web Store. Google Chrome is one of the best solutions for Internet browsing giving you high level of security, speed and great features. Important to know! The offline installer links do not include the automatic update feature. Download web installer: Google Chrome Web 32-bit | Google Chrome 64-bit | Freeware Download: Google Chrome Offline Installer 64-bit | Direct Link | 131.0 MB Download: Google Chrome Offline Installer 32-bit | Direct Link | 119.0 MB Download page: Google Chrome Portable Download: Chrome ARM64 | Direct Link View: Chrome Website | Release Notes Get alerted to all of our Software updates on Twitter at @NeowinSoftware
  • Recent Achievements

    • Very Popular
      Captain_Eric earned a badge
      Very Popular
    • One Month Later
      amusc earned a badge
      One Month Later
    • One Month Later
      DJC50PLUS earned a badge
      One Month Later
    • Week One Done
      DJC50PLUS earned a badge
      Week One Done
    • Proficient
      Eric Biran went up a rank
      Proficient
  • Popular Contributors

    1. 1
      +primortal
      509
    2. 2
      PsYcHoKiLLa
      222
    3. 3
      ATLien_0
      92
    4. 4
      +Edouard
      86
    5. 5
      Steven P.
      81
  • Tell a friend

    Love Neowin? Tell a friend!