Jump to content











Photo

December 2011 TechLife Challenge (Possible Reward)


  • Please log in to reply
28 replies to this topic

#26 joakim

joakim

    Silver Member

  • Team Reboot
  • 912 posts
  • Location:Bergen
  •  
    Norway

Posted 17 December 2011 - 10:15 AM

I quotted you to help out the other member solving this challenge if that's okay with you joakim :)

Of course you can quote me. I tried explaining as best I could in a minimum of words, with the purpoese of sharing a not so wellknown zip fact.

#27 KoBE

KoBE

    Newbie

  • Developer
  • 25 posts
  •  
    United States

Posted 27 December 2011 - 04:58 PM

joakim, I found the way you did it really fascinating (raw decompress). I would have attempted to do the same if fixing the header wasn't so easy :P

I've made a solution file for this in C# if anyone is interested.

What I did:
  • Read all the bytes into a byte array
  • Copied the file into a new byte array with a correct header (took out the bad header)
  • Deflated the file and wrote the ans.exe file to disk


#28 joakim

joakim

    Silver Member

  • Team Reboot
  • 912 posts
  • Location:Bergen
  •  
    Norway

Posted 27 December 2011 - 11:48 PM

@KoBe
Of course I'm interested in seing your solution. I believe I also made something similar a while back with the carver tool stuff (look in my sig). But I would like to see your solution anyways since I've just started a little C# myself.

#29 KoBE

KoBE

    Newbie

  • Developer
  • 25 posts
  •  
    United States

Posted 28 December 2011 - 02:03 AM

Here you are. This is the solution project. I've commented it a little. Let me know if you have any questions.

And sorry if it seems unorganized, I didn't plan on others reading it. :D

http://tech.reboot.p...be/acePatch.rar




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users