• 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

    • Just pull a 4Chan and ignore the UK gov, or better troll them. It's not like they can enforce the fine across border.
    • It has NEVER been shown that all these overreaching creepy methods of surveillance have ever saved a child or prevented a terrorist attack. Not a single one. It's the kind of people like you who just wave it away as "paranoid conspiracy" that makes big tech and governments this creepy mass data hoarding entities. Not only that, 3/4 of these surveillance ideas undermine the very foundations of safe online communication because they always want to have a backdoor in everything "just in case" they might need it to... checks the notes "save the children". If you put a backdoor into encryption chain there is no encryption chain anymore. You know what encryption keeps safe? Your medical records, your online shopping and credit card during payment, your photos in the cloud, your emails, your passwords, everything. There is ZERO guarantee only the good guys will use it. And if you think police suddenly can't apprehend child abusers because of encryption, Epstein was running his entire sex trafficking ring using GMail which is not even encrypted end to end. Or to make matters even worse, USA has a **** and a good buddy of Epstein as a president. Absolutely NOTHING has been done to address it. Maxwell just got a better "hotel" room as a reward. This clearly shows how they absolutely don't really care about the children but they care about the absolute control over all of us. And you're defending them here. Good grief. On top of constant attempts to insert backdoors into encryption chain, the entire age verification nonsense is again entirely over reaching, creepy, invades everyone's privacy with premise of yet again "protecting the children" instead of demanding device makers to provide simple and powerful tools for PARENTS to control how their children use devices and what they do on them. THIS would be the way, not the stupid age verification for everyone. Imagine if government would be dictating companies how their phones work and not the company's IT department. The parents should be the IT department to their children. And for everyone excusing "they are not knowledgeable enough" buuuuuulsheat. We live in a digital age, if you have children now, you absolutely are well versed in digital everything at least to basic extent. If you're not, how do you even function in these times then? Reality is that parents are just lazy and don't want to deal with this. They want government to raise their kids because they are too busy scrolling stupid Instagram and Tiktok or some bs.
    • You could make the argument that K should not be included, but FC, the fried chicken, is not the framework, it's the product. It's the Paint in Paint.NET. A closer analogy is if KFC included the name of the deep fryer they used. HennyPennyFC.
    • Flying as the central point eh... As a massive Spyro fan who has replayed the Reignited Trilogy three times and the originals 4 times... I have some doubts, but maybe...
    • Apple is expanding Private Cloud Compute beyond its own data centers by Pradeep Viswanathan At WWDC 2026, as part of the improved Apple Intelligence capabilities, Apple today announced that it is expanding Private Cloud Compute (PCC), its privacy-focused cloud infrastructure for Apple Intelligence, beyond its own data centers for the first time. Private Cloud Compute was designed to handle Apple Intelligence requests that are too complex to run fully on-device. The PCC system does not store user data and does not allow Apple or anyone else to access user requests. Last year, Apple also expanded its Security Bounty program with rewards of up to $1 million for researchers who could find serious vulnerabilities in PCC. Until now, Apple's PCC data centers were using Apple's own silicon. As part of the expansion, Apple is working with Google and NVIDIA to run new Apple Intelligence workloads on Google Cloud systems powered by NVIDIA GPUs. Apple will be using this new infrastructure to execute more demanding AI tasks while maintaining the same privacy and security guarantees of PCC. The new implementation uses NVIDIA Confidential Computing with NVIDIA GPUs, Intel CPUs with TDX, and Google’s Titan chip. Apple says it has worked with Google to build additional protections beyond a traditional confidential computing deployment. Despite the expansion to third-party data centers, Apple claims that its core PCC requirements remain unchanged, including stateless computation, no privileged runtime access, non-targetability, and verifiable transparency. The company highlighted that it will continue to control the PCC software stack, and Apple devices will only trust PCC software that has been cryptographically approved by Apple. To take security to the next level, Apple mentioned that it is maintaining an append-only ledger of Google Cloud hardware that is part of the PCC fleet. The company claims this will help reduce the risk of supply chain attacks. In addition to AI infrastructure, Apple also worked with Google to use technologies behind the Gemini family of models to build the next generation of Apple Foundation Models to power Apple Intelligence features across on-device and cloud workloads. As expected, for more demanding AI tasks like agentic tool use and complex reasoning, Apple will rely on the expanded PCC infrastructure running on Google Cloud. The expansion of PCC on Google Cloud will gradually ramp toward the full set of protections during the summer preview period. As before, Apple will also publish binaries for public inspection, provide research tooling, and give researchers access to live PCC nodes in research mode through the Apple Security Bounty Program.
  • 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
      506
    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!