Exetools  

Go Back   Exetools > General > Source Code

Notices

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 04-01-2014, 02:26
mr.exodia mr.exodia is offline
Retired Moderator
 
Join Date: Nov 2011
Posts: 783
Rept. Given: 490
Rept. Rcvd 1,123 Times in 305 Posts
Thanks Given: 89
Thanks Rcvd at 716 Times in 333 Posts
mr.exodia Reputation: 1100-1299 mr.exodia Reputation: 1100-1299 mr.exodia Reputation: 1100-1299 mr.exodia Reputation: 1100-1299 mr.exodia Reputation: 1100-1299 mr.exodia Reputation: 1100-1299 mr.exodia Reputation: 1100-1299 mr.exodia Reputation: 1100-1299 mr.exodia Reputation: 1100-1299
[C++] HostsPatch

Hey everyone,

Saw this new section and I have some old sources to share with you guys. This is the first: a 'hosts' patcher. It adds an entry to the hosts file.

It supports read-only hosts files, just let the user start the keygen/patch as Administrator. It works for both x32 and x64.

Usage is simple:
Code:
bool HostsPatch(
HWND hwndDlg, //window handle (can be 0)
const char* website //website to block (without 'http://')
);

int main(int argc, char* argv[])
{
    HostsPatch(0, "activation.acme.com");
    return 0;
}
Feel free to use it in your keygens/patches, credit not needed, but appreciated.

Greetings,

Mr. eXoDia
Attached Files
File Type: rar HostsPatch.rar (1.0 KB, 96 views)
Reply With Quote
The Following 12 Users Gave Reputation+1 to mr.exodia For This Useful Post:
alekine322 (04-03-2014), b30wulf (04-01-2014), besoeso (04-01-2014), chessgod101 (04-01-2014), conan981 (04-03-2014), giv (04-05-2014), Jhonjhon_123 (04-01-2014), papi (04-02-2014), serseri_1453 (04-01-2014), UniSoft (04-28-2014), Wannabe (04-06-2014), zeuscane (04-01-2014)
 

Tags
code, hosts, patcher, source

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On



All times are GMT +8. The time now is 18:19.


Always Your Best Friend: Aaron, JMI, ahmadmansoor, ZeNiX, chessgod101
( Since 1998 )