Dark Bit Factory & Gravity

GENERAL => Projects => Topic started by: Raccoon on March 16, 2018

Title: Had a bit of fun making this patcher
Post by: Raccoon on March 16, 2018
The developer of the software that this patcher was created for passed away some time ago and there was no longer any way to buy or register the software, so a few friends and I went ahead and reversed the software and then released a patcher so that people can still use it.

The first patcher was just a plain CUI patcher, but then I decided to throw this one together for fun. It is written in PureBasic.  :)

I've disabled the patching functionality for sharing here.

Virus Scan (2/66) (https://www.virustotal.com/#/file/32327576c65d9c4886a5290cb7b33e20d07e3182dd9ac49d6541a2277a3784dc/detection)

(https://i.imgur.com/vuaZLUE.png)
Title: Re: Had a bit of fun making this patcher
Post by: inc. on March 17, 2018
Congrats.
Do you write new registry keys while patching or is there more?
I did something similar in this one:
http://www.dbfinteractive.com/forum/index.php?topic=6732.msg84103#msg84103

Will have a look to yours later.
Title: Re: Had a bit of fun making this patcher
Post by: Raccoon on March 17, 2018
Congrats.
Do you write new registry keys while patching or is there more?
I did something similiar in this one:
http://www.dbfinteractive.com/forum/index.php?topic=6732.msg84103#msg84103

Will have a look to yours later.
Nope, no registry keys. Just applies patches to the binary using the patch data that I created using a little binary diff tool I wrote to save time (nothing special, just the offsets, the size of the patches, and the bytes to be written).

It first checks the default installation directory, then the current directory, and finally will prompt the user to locate the file if it still can't find it. It will also restore from a backup of the original file if the patches aren't applied correctly. That shouldn't happen since I perform some SHA-1 comparisons both before and after patching, but I like to try to account for anything I can imagine potentially going wrong lol.  :)

I will open source it sometime soon, but there's some code I want to clean up and optimize first haha.

I actually saw your post about your patcher here in the Projects sub-forum earlier. I like it. ^^
I wasn't aware that you had released the source though.
Title: Re: Had a bit of fun making this patcher
Post by: Rbz on March 19, 2018
Nice music you got there, nice work.