By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,897 Members | 1,969 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,897 IT Pros & Developers. It's quick & easy.

How To edit .dll files using c++

P: 19
ive been trying to open dll files using c++, but could not, all that opens is a folder. Can someone help me please? Thanks - Fir3bat
Feb 19 '07 #1
Share this Question
Share on Google+
28 Replies


AdrianH
Expert 100+
P: 1,251
ive been trying to open dll files using c++, but could not, all that opens is a folder. Can someone help me please? Thanks - Fir3bat
Uh, why would you want to?


Adrian
Feb 19 '07 #2

P: 19
i am asking, can you gimme a code that can do that, so i can edit some stuff on it. or Can only ASM do that
Feb 20 '07 #3

AdrianH
Expert 100+
P: 1,251
i am asking, can you gimme a code that can do that, so i can edit some stuff on it. or Can only ASM do that
Hey buddy, please be a bit more respectful. We are here to help, not do your bidding.

If you don't tell me what you need it for, I can't really help. And even if I could, without an apology, there is no reason for me to do so either.


Adrian
Feb 20 '07 #4

P: 19
Ok well there is some Game That Requires an Engine
and you need to inject a dll file to get the CHEAT working

so what i need is to edit some values, or add more to do more stuff

If you know what i mean
Feb 20 '07 #5

RedSon
Expert 5K+
P: 5,000
Actually I don't know what you mean. It sounds like you are trying to cheat at WoW or something. If you are looking for a dll injection then why dont you try to google it. Microsoft provides this facility in their libraries. You might be able to find an opensource tool that will allow you to do this but I dont know. Usually I err on the side of good programming practices so I have never needed to inject code into another process.
Feb 20 '07 #6

AdrianH
Expert 100+
P: 1,251
Ok well there is some Game That Requires an Engine
and you need to inject a dll file to get the CHEAT working

so what i need is to edit some values, or add more to do more stuff

If you know what i mean
Sorry, if you want to modify a dll, you will need specialised tools as mods of this sort are not usually trivial. So you will have to get at least partially if not fully into an assembler/disassembler. RedSon is correct in that you could probably find this by searching for it. Try finding some hacker sites. But be careful, sometimes they not only hack the programmes on their boards, they just might hack your browser. ;)


Adrian
Feb 21 '07 #7

P: 19
k thanks alot

but cant c++ also edit dll files? and no its not on WOW.
some online game :D
Feb 21 '07 #8

Motoma
Expert 2.5K+
P: 3,235
I guess it would help to know what the DLL is you are trying to edit. Is it one that came with the game, or is it a cheat engine that you are trying to modify? Is it a .NET or COM DLL?
Does the game use any cheat detection software, such as NProtect or PunkBuster?
What tool are you using to "edit" the DLL? You mentioned C++, but what environment? Visual Studio would be the best help in my oppinion, as it gives you a suite of tools for exploring DLL's.
I would advise you to play around with OllDbg and see if you can figure things out with that.
Feb 21 '07 #9

RedSon
Expert 5K+
P: 5,000
Hey guys,

I don't think we should be very helpful for people who have admitted that they are trying to do something malicious. Motoma, I think you last post crossed the line. I'm not trying to start a flame war about it, because we are friendly, but I think we should all take a second to consider how much help we can offer to a question like this.

Just something to think about for the future.
Feb 21 '07 #10

NeoPa
Expert Mod 15k+
P: 31,660
This is a messy area as CHEAT in gaming parlance often refers to power-ups or other similar boosts which are often considered a normal part of the game (and are often built in by the designer).
However, this is unlikely (though not impossible) to be the case with online gaming in a situation like this.
I think the OP should make a clearer point as to his intentions before expecting any further help.
Feb 21 '07 #11

RedSon
Expert 5K+
P: 5,000
Right but in my expierence cheating in a game is a feature facilitated by the developer of the game through cheat codes or some combination of special key presses. Not by altering the compiled libraries of the game.
Feb 21 '07 #12

NeoPa
Expert Mod 15k+
P: 31,660
Not everyone has your experience though, RedSon.
I think you were right to be suspicious of the OP, just maybe expect too much understanding of the issues from other members who may not be so well up on things
Feb 22 '07 #13

AdrianH
Expert 100+
P: 1,251
Not everyone has your experience though, RedSon.
I think you were right to be suspicious of the OP, just maybe expect too much understanding of the issues from other members who may not be so well up on things
Yeah, well, it was pretty obvious. He is just some punk kid trying to learn to impress people. :) jk. But seriously, the way the question was worded and how he got uppity when I asked what it was for...

But the thing is, if the programme is any good, mucking around with a .dll isn't going to do much. Security is built into these games. At best he would have just probably been booted off, at worst his IP would be band for a while. This is because stuff like he was talking about would (in a good implementation) have the info stored on a server. Once a sync error is found, he would have been kicked. Even on a P2P or 1on1 gaming system, it would have the same effect.

He would get nowhere with .dll mods.


Adrian
Feb 22 '07 #14

Motoma
Expert 2.5K+
P: 3,235
Yeah, well, it was pretty obvious. He is just some punk kid trying to learn to impress people. :) jk. But seriously, the way the question was worded and how he got uppity when I asked what it was for...

But the thing is, if the programme is any good, mucking around with a .dll isn't going to do much. Security is built into these games. At best he would have just probably been booted off, at worst his IP would be band for a while. This is because stuff like he was talking about would (in a good implementation) have the info stored on a server. Once a sync error is found, he would have been kicked. Even on a P2P or 1on1 gaming system, it would have the same effect.

He would get nowhere with .dll mods.


Adrian
You are right, and I alluded to this in my initial response to the question.
Feb 22 '07 #15

Expert 5K+
P: 8,434
...But seriously, the way the question was worded and how he got uppity when I asked what it was for...
Actually, I felt that you misinterpreted that response. It sounded to me as though the OP simply tried to clarify what they were asking for.

On the other hand, perhaps I'm the one who misinterpreted. :)
Feb 28 '07 #16

Motoma
Expert 2.5K+
P: 3,235
Actually, I felt that you misinterpreted that response. It sounded to me as though the OP simply tried to clarify what they were asking for.

On the other hand, perhaps I'm the one who misinterpreted. :)
This was the way I interpreted his response as well.
Feb 28 '07 #17

RedSon
Expert 5K+
P: 5,000
Not everyone has your experience though, RedSon.
My experience... ?! How is my experience any different then the rest of the people playing video games? Everyone knows how to enter in cheat codes or press the buttons is a special order to get power-ups. All you have to do is find the cheats online and put them in. Look at something as old as the 8-bit Nintendo, several games I owned had cheats. Like Contra, I still remember the key pattern. Madden games, have madden cards some are even labeled as "Cheat".
Cheating in video games is part of the video game, its designed to be that way. Its either some debug tool that they left in as a cheat (like god mode in Doom) or it was purposefully designed to be a cheat (like Madden cards).

Editing and corrupting binary .dll's is malicious, it can't be argued otherwise. If this forum wants to help people with tasks like this, I am happy to share my knowledge on cracking, but I don't know if TSDN wants to go down that road.
Feb 28 '07 #18

P: 78
Recourse Viewer is one tool i know that can edit .exe or .dll files. I haven't really used it much, but it's fun when you want to edit the GUI of programs, like replacing the donkey's face in eMule with your brother's, hehe...the expression on his face when he saw that..hehe!
Feb 28 '07 #19

Motoma
Expert 2.5K+
P: 3,235
Recourse Viewer is one tool i know that can edit .exe or .dll files. I haven't really used it much, but it's fun when you want to edit the GUI of programs, like replacing the donkey's face in eMule with your brother's, hehe...the expression on his face when he saw that..hehe!
Resource Viewer is a good tool, however, it falls short of editing DLLs in the way our poster here desires. It is useful for editing resources, as the name suggest, images, icons, and strings are all fair game when using this tool.
Feb 28 '07 #20

RedSon
Expert 5K+
P: 5,000
That type of editing is common for localization. Which is also designed to work that way with a program.
Feb 28 '07 #21

P: 78
My bad, i mean to say XN Resource Editor.
Feb 28 '07 #22

NeoPa
Expert Mod 15k+
P: 31,660
My experience... ?! How is my experience any different then the rest of the people playing video games?
I wasn't referring to people who play video games. I was referring to the moderators on this site.
Everyone knows how to enter in cheat codes or press the buttons is a special order to get power-ups. All you have to do is find the cheats online and put them in. Look at something as old as the 8-bit Nintendo, several games I owned had cheats. Like Contra, I still remember the key pattern. Madden games, have madden cards some are even labeled as "Cheat".
Cheating in video games is part of the video game, its designed to be that way. Its either some debug tool that they left in as a cheat (like god mode in Doom) or it was purposefully designed to be a cheat (like Madden cards).
Not all cheats in video games are as innocuous though.
Whatever people may think, EvenBalance are still struggling to keep haxors out of online gaming. My game (ET) is particularly badly hit by this problem as the ID keys are free and recreatable simply by deleting a file in your ET folder. This may not be the same for other FPSs.
Editing and corrupting binary .dll's is malicious, it can't be argued otherwise. If this forum wants to help people with tasks like this, I am happy to share my knowledge on cracking, but I don't know if TSDN wants to go down that road.
I certainly wouldn't support anyone (or even TSDN) deciding (in full knowledge) to help people with tasks like this. I can accept that our experts might give out such knowledge innocently but I, for one, would not want to be involved with any site that knowingly and deliberately helped anyone to cheat in online gaming.
Feb 28 '07 #23

Motoma
Expert 2.5K+
P: 3,235
Whatever people may think, EvenBalance are still struggling to keep haxors out of online gaming. My game (ET) is particularly badly hit by this problem as the ID keys are free and recreatable simply by deleting a file in your ET folder. This may not be the same for other FPSs.
Has PunkBuster been hacked? Or is this what you are referring to when you mention deleting the ET folder?
Feb 28 '07 #24

NeoPa
Expert Mod 15k+
P: 31,660
Has PunkBuster been hacked? Or is this what you are referring to when you mention deleting the ET folder?
PunkBuster can catch someone, but in ET the only way of identifying them is by the PB GUID. This is related to their ET Key file. When the file is deleted another one is created automatically by the game so it can be hard to track them :(
PunksBusted are doing a good job of trying to keep up (as not all hacks are detected by PB) but there are still very many hax that cannot be caught automatically by PB or even screenshot captures I'm afraid.
Techniques to foil them include randomly requested screenshots and logging these periodically to PunksBusted servers but it's certainly not a battle that's been won.
Feb 28 '07 #25

AdrianH
Expert 100+
P: 1,251
PunkBuster can catch someone, but in ET the only way of identifying them is by the PB GUID. This is related to their ET Key file. When the file is deleted another one is created automatically by the game so it can be hard to track them :(
PunksBusted are doing a good job of trying to keep up (as not all hacks are detected by PB) but there are still very many hax that cannot be caught automatically by PB or even screenshot captures I'm afraid.
Techniques to foil them include randomly requested screenshots and logging these periodically to PunksBusted servers but it's certainly not a battle that's been won.
What games are ET and PunkBuster?

Adrian
Feb 28 '07 #26

RedSon
Expert 5K+
P: 5,000
PunkBuster is an anti cheating technology you can run on your mutliplayer servers. ET I'm not so surea bout.
Feb 28 '07 #27

Motoma
Expert 2.5K+
P: 3,235
PunkBuster is an anti cheating technology you can run on your mutliplayer servers. ET I'm not so surea bout.
Enemy Territory. I am not sure, however, whether he is referring to Wolfenstein or Quake Wars. (I've been out of the FPS loop for a couple of years now).
Mar 1 '07 #28

NeoPa
Expert Mod 15k+
P: 31,660
Sorry, I should have been clearer.
ET --> 'Wolfenstein - Enemy Territory'.
This is a freely downloadable 'upgrade' to 'Return to Castle Wolfenstein' (RTCW).
PunkBuster (PB) is technology or software developed to restrict cheating in the online gaming arena.
PunksBusted is a group set up by server admins (of various different games) to help server admins ensure that caught haxxors (hackers) can be stopped from playing on their servers using the PBGUID (PunkBuster Game User ID).
ETQW --> 'Enemy Territory - Quake Wars'.
A much anticipated, non-free, sequel to ET. This is due to be released shortly over the pond, but I don't know about Blighty :(.

Many of the recent hacks will actually involve software running on the client PC which is not any part of the game itself (so not easily detectable) but can affect both the operator's ability to see important items on the screen, as well as the operators ability to aim at the desired target quickly and accurately. These (retrospectively, WallHacks & AimBots) hacks can only be detected by the randomly requested screenshots that can be uploaded to the PunksBusted server (WallHacks) and by Speccing (where you see through their eyes - approximately) the suspected player (AimBots).

ET has very prevalent cheating due to two main effects of it being freely downloadable :
  1. The Key code to identify a player, being free, can be recreated ad infinitum.
  2. Being free, it is a very popular game.
Mar 1 '07 #29

Post your reply

Sign in to post your reply or Sign up for a free account.