• 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

    • I'm from Australia. This posts reeks of a Nigerian scammer.
    • It's funny that iPhone users think they are getting feature, where in fact they are getting cosmetics that just do iteration circles of "improvement" of the said cosmetics. Apple just doesn't know what to do with this product anymore. There is no innovation on this areas anymore.
    • You can disable the bloat on every browser. That's not the point. I will never use a browser of a shady company. I don't trust them at all. I can still find adblocking solutions than having to rely on a browser from a shady company. Every year they try something shady lol 2016: Brave Ad Replacement https://archive.is/W0k4j#selection-203.7-203.28 2016: pay-to-win Wikipedia clone into the default search engine list https://github.com/brave/browser-laptop/issues/5475 2018: Tom Scott and other creators noticed Brave was soliciting donations in their names without their knowledge or consent. https://www.reddit.com/r/brave...aims_that_brave_is_falsely/ 2020: Brave got caught injecting URLs with affiliate codes https://www.theverge.com/2020/...-crypto-privacy-ceo-apology 2021: Brave's TOR window was found leaking DNS queries https://www.zdnet.com/article/...n-addresses-in-dns-traffic/ 2022: Brave floated the idea of further discouraging users from disabling sponsored messages. https://github.com/brave/brave-browser/issues/22066 2023: Brave got caught installing a paid VPN service on users' computers without their consent. https://www.xda-developers.com...owser-installs-vpn-windows/ 2023: Brave got caught scraping and reselling people's data with their custom web crawler, which was designed specifically not to announce itself to website owners. https://stackdiary.com/brave-s...ghted-data-for-ai-training/ 2024: Brave gave up on providing advanced fingerprint protection, citing flawed statistics https://www.bleepingcomputer.c...tion-as-it-breaks-websites/ 2025: Brave staff publish an article endorsing PrivacyTests and say they "work with legitimate testing sites" like them. This article fails to disclose PrivacyTests is run by a Brave Senior Architect! https://brave.com/blog/adblock...esting-websites-harm-users/
    • Alpine Linux 3.24 released with support for COSMIC Desktop and other improvements by David Uzondu Alpine Linux 3.24 has been released with updated system packages, including Linux kernel 6.18 and Rust 1.96. The team also added IPv6 support to the system installer, and they introduced automatic serial console configuration for headless setups. System76's COSMIC desktop environment is now available in the community repo. System76 originally started building this DE because its developers found GNOME to be pretty limited. Plus, it did not help that with virtually every GNOME update, the changes broke System76's custom desktop extensions. As for system packages, the Alpine team moved GTK+ 3.0 from the main repository to the community repository due to its legacy status. py3-setuptools has been upgraded to version 82.0.0, while the old pkg_resources module has been completely dropped. The team also removed outdated packages that still relied on py3-six and GTK+ 2.0. In addition to that, libsoup 2 has been removed because the library was affected by multiple security vulnerabilities. If you're a GRUB user, the Alpine Team said that you must manually run the grub-install command with your specific device or EFI options right after upgrading your system, otherwise, your computer may fail to boot properly with the newly updated GRUB 2.14 bootloader. New installations of Alpine Linux now offer an optional path to a /usr-merged directory layout if you set the BOOTSTRAP_USR_MERGED environment variable to 1 before you execute the setup-disk command. If you already run an older installation, you can migrate manually by installing the merge-usr package and executing its binary as the root user. The team recommends this layout to align Alpine with modern Linux standards, though you should verify your custom scripts before making the switch. Alpine Linux is a pretty tiny (~5MB) Linux distro built around musl libc, BusyBox, and OpenRC. It's been around since 2005, comes with its own package manager called Alpine Package Keeper (APK), and is widely used in modern cloud computing and software deployment.
    • Instagram now lets you manually reorder posts on your profile grid by David Uzondu Instagram is finally rolling out the ability to customize your feed layout as you see fit by letting you reorder posts on your profile grid. This feature comes several months after the app introduced a tool that lets users rearrange photos and videos within a carousel post after it has already been published. To do that, people tap the three-dot menu in the top right corner of the post, select the edit option, and reorganize their slides. Now that Instagram has expanded the feature to your profile grid, you can organize your main page without deleting old uploads. To use the new system, you simply tap any picture on your grid and select the option to reorder. This action opens up a separate screen where you can freely drag your grid items around until you get your preferred aesthetic, and then you just hit the back button to save your changes. Instagram's Threads account posted that the system would reach accounts starting this week, so you might need to wait for the automatic update to hit your phone. https://www.threads.com/@instagram/post/DZVV_fyjjSW In other Instagram news, last week, people figured out that if you ask Meta's AI support assistant to hand over any Instagram account, the bot will actually hand it over (even if the victim's account had 2FA enabled). The security exploit involved the assistant accepting prompts from users and generating password reset links for unauthorized email addresses. Meta said that the issue has now been fixed, but this came after the issue affected several high-profile accounts, including @obamawhitehouse. Last month, the company finally rolled out paid subscription tiers for WhatsApp and other Meta social platforms after months of testing. WhatsApp Plus costs $2.99 a month and gives you custom themes, while Instagram Plus and Facebook Plus cost $3.99 a month for extra profile customization and story rewatch counters. Meta's also working on Meta One, a unified subscription service that contains options for heavy users of its servers who want more reach or advanced features. For instance, Meta One Essential ($14.99/mo) comes with a verified badge and impersonation protection. If you pay for Meta One Premium ($19.99/mo), you get deeper AI reasoning tools, whereas the Meta One Advanced ($49.99/mo) tier increases your search placement (on Facebook and Instagram) and visibility.
  • Recent Achievements

    • One Year In
      Primer1st earned a badge
      One Year In
    • Experienced
      JayZJay went up a rank
      Experienced
    • Reacting Well
      Sir_Timbit earned a badge
      Reacting Well
    • Week One Done
      rubentuben8 earned a badge
      Week One Done
    • Week One Done
      ARaclen earned a badge
      Week One Done
  • Popular Contributors

    1. 1
      +primortal
      512
    2. 2
      PsYcHoKiLLa
      229
    3. 3
      Edouard
      134
    4. 4
      ATLien_0
      87
    5. 5
      Steven P.
      80
  • Tell a friend

    Love Neowin? Tell a friend!