• 0

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


Question

16 answers to this question

Recommended Posts

  • 0
  On 01/09/2012 at 23:34, sathenzar said:

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
  On 02/09/2012 at 15:56, sathenzar said:

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
  On 15/09/2012 at 18:14, sathenzar said:

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
  On 15/09/2012 at 18:45, sbauer said:

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
  On 26/11/2012 at 10:12, ffMathy said:

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

    • Higher "Social Charges". I think that is a feel good phrase for 'Employee Deferred Compensation Charges". Then again, they use different wording in the "Old World." More precisely in American Accounting Lingo: "Mark to the Market Employee Differed Compensation Charges."
    • TikTok's "Add to Music App" feature gets support for another music streaming service by David Uzondu Image via Depositphotos.com TikTok's "Add to Music App" feature is getting support for another streaming service: YouTube Music. This comes a few months after the short-form video giant brought the feature to SoundCloud. "Add to Music App", if you have not heard of it, is a feature launched back in November 2023, initially for US and UK users, that makes saving music a lot easier. With this feature, users get an "Add Song" button next to the track name at the bottom of a TikTok video. When a customer first uses the feature, they can select their preferred streaming service from the available options, and this choice then becomes the default for all future one-tap saves (this can be changed anytime in the app's settings). The new YouTube Music integration means you can directly save the track to the streaming service with a single press. Users can also add a track from an artist's Sound Detail Page. When "Add to Music App" first appeared, the options were limited to Spotify and Amazon Music. Since then, TikTok has added Apple Music and Deezer. Each service gets a designated spot for the saved tracks, like Spotify's "Liked Songs" playlist. In YouTube Music's case, the song will land in a dedicated "TikTok Songs" playlist, so you do not have to go hunting for it later. TikTok claims that its "Add to Music App" function has resulted in over 1 billion saves globally since its wider rollout in 2024. On a related note, you probably are already aware of the current divest-or-ban issue TikTok's facing in the US. Howard Lutnick, the US Commerce secretary, recently stated in an interview with Fox News Sunday that President Trump loves the platform and sees it as "a good way to communicate with young people," but the platform's US operations must be handled by an American company, not Chinese.
    • 10 years of using end users as free-guineapigs to test half-baked garbage software...what an achievement 🎉
    • For sure! The first family computer when I was a kid didn't even have a hard drive, just dual 5.25" floppy driver. You would boot from the DOS disk in drive A, run your programs from drive B, and maybe sneak a data disk into drive A and just hope it wouldn't try to access something from the DOS folder while you did that. My dad added a 20 MB (yes, megabyte) hard drive to the computer, it was SUCH a quality-of-life improvement, lol!
    • The Settings app was first introduced in Windows 8 and Microsoft continued to add to the settings app in Windows 10.
  • Recent Achievements

    • Week One Done
      andeyhawk65 earned a badge
      Week One Done
    • First Post
      Jake2530 earned a badge
      First Post
    • Explorer
      Deranox went up a rank
      Explorer
    • Week One Done
      John Volks earned a badge
      Week One Done
    • One Month Later
      enric earned a badge
      One Month Later
  • Popular Contributors

    1. 1
      +primortal
      667
    2. 2
      ATLien_0
      252
    3. 3
      Xenon
      175
    4. 4
      neufuse
      137
    5. 5
      +FloatingFatMan
      102
  • Tell a friend

    Love Neowin? Tell a friend!