Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: How can I change the md5 hash of a .exe?  (Read 8016 times)

0 Members and 1 Guest are viewing this topic.

hey101

    Topic Starter


    Beginner

    How can I change the md5 hash of a .exe?
    « on: July 30, 2009, 08:12:38 PM »
    The title sort of says it all. I need to change the md5 hash of a .exe and I dont have the source so i cant recompile. I thought about opening it in hex and adding a empty byte at the end and resaving but i think that may corrupt the exe. So anyone have any ideas?

    BC_Programmer


      Mastermind
    • Typing is no substitute for thinking.
    • Thanked: 1140
      • Yes
      • Yes
      • BC-Programming.com
    • Certifications: List
    • Computer: Specs
    • Experience: Beginner
    • OS: Windows 11
    Re: How can I change the md5 hash of a .exe?
    « Reply #1 on: July 30, 2009, 10:30:38 PM »
    change the file you change the hash.

    Why do you need to do this to begin with?
    I was trying to dereference Null Pointers before it was cool.

    patio

    • Moderator


    • Genius
    • Maud' Dib
    • Thanked: 1769
      • Yes
    • Experience: Beginner
    • OS: Windows 7
    Re: How can I change the md5 hash of a .exe?
    « Reply #2 on: July 31, 2009, 06:32:50 AM »
    This should be good.....
    " Anyone who goes to a psychiatrist should have his head examined. "

    hey101

      Topic Starter


      Beginner

      Re: How can I change the md5 hash of a .exe?
      « Reply #3 on: July 31, 2009, 06:38:37 AM »
      well i know i have to change the file but its not as easy as opening it in notepad and adding a space and resaving it. Since its an exe I thought it would be different.

      edit: I tried editing it in hex, and added a byte and surprisingly it worked. I tried it on another exe and it didnt work, so I guess it just depends.

      Rob Pomeroy



        Prodigy

      • Systems Architect
      • Thanked: 124
        • Me
      • Experience: Expert
      • OS: Other
      Re: How can I change the md5 hash of a .exe?
      « Reply #4 on: July 31, 2009, 08:24:21 AM »
      Use an executable compressor?
      Only able to visit the forums sporadically, sorry.

      Geek & Dummy - honest news, reviews and howtos