Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > C/C++
You last visited: Today at 18:28

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



How to make DLL

Discussion on How to make DLL within the C/C++ forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Mar 2016
Posts: 12
Received Thanks: 0
Smile How to make DLL

Is there a guide on how to make a DLL that can block address/program or something like from process on task manager? thanks I just need it for my college
xServer is offline  
Old 09/17/2016, 18:36   #2
 
elite*gold: 0
Join Date: Sep 2016
Posts: 25
Received Thanks: 25
Quote:
Originally Posted by Yui Funami View Post
and here's how to actually create a .DLL instead of a .CPP:
Stop trying to help ppl if you don't know shit.

A DLL is a file which can be mapped in a process' address space where it is then called a module.
A DLL uses the same file format as an executable, the PE file format.
The headers only differ in some aspects like the characteristics field, which just tells the loader that the image is a DLL.
Also, the compiler looks for another token (DllMain) to be used as the entry point.

@OP:

I don't understand your question but I will answer something nevertheless:
You can easily compile a DLL by changing some compiler options, most IDEs also have compiler setting templates for this.
Now to inject a DLL you there are two popular options(ofc there are more):
  • CreateRemoteThread
  • Manual mapping

The first method will remotely allocate a buffer which will hold a string to the path of your DLL.
This is needed because later you will need to (remotely) call LoadLibrary to map your DLL into the (remote) process,
whereby LoadLibrary's only parameter needs to be initialized with a pointer to the path in the current address space.
Since LoadLibrary also needs to be called remotely, you can use CreateRemoteThread to execute LoadLibrary
with the argument being a local string to your path.

The cool thing about this method is that the windows loader will almost do everything for you
(i.e. calling the dll entry point, mapping headers/sections and especially map dependencies)

The manual mapping method was invented because several anti-cheats
intercepted calls to LoadLibrary and checked the legitimacy of the call.
(e.g. by utilizing a white-list of dependencies and comparing the path against this list)

So, manual mapping nothing else than emulating the behavior of LoadLibrary.
This involves allocating a buffer for the main file, copying the headers / sections, relocating the image,
filling the IAT and mapping all other needed dependencies recursively and calling the entry point.

Another advantage of manual mapping is that there will be no entry in the PEB module lists.
Optionally some injectors cut away the DOS-Header which can be searched for and also be checked against a white-list.
vaynz is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
[Request]Can you make a backyard monster hack that make the infreno cavern
10/30/2012 - Facebook - 1 Replies
I need a hack for BYM that makes the inferno thing every 5 seconds and plus a hack for champions instant evolve:rtfm:
[Request]Can any body make vsro file make server tutorial
09/13/2011 - SRO Private Server - 4 Replies
tutorial : http://www.youtube.com/watch?v=DKOXygNCCOo&fea ture=player_embedded sorry its torkish and my bad english



All times are GMT +2. The time now is 18:28.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.