Basic programming questions
Sticky Threads
i was recently searching for some info on what kind of info was standard to include at the top of header files in c++ and came across this: c++ Programming Style Guidelines IMO, this is an EXCELLENT resource explaining the do's and dont's, as well as what is common practice, of programming...
Beginning C Tutorial + Table of Contents + - Introduction - - Getting Ready - - Start Coding - - If Statements - - Loops - - Functions -
This is to anyone who wishes to learn the C++ programming language. Some reasons why you should learn the C++ language because it is very popular, it is easy to get the hang of, it can work as a high level and a low level language. *C++ is considered a high level language) First some...
Since it seems to be a common happening these days, let's see if we can reduce/eliminate the number of compiler problem posts shall we? basic format for an MSVC error is: first thing you should do is double click the error in the output window, this will jump to the problem line. read the...
Ok, I'm asking a big favor and lets see who will help. Lets start off by saying i'm a noob when it comes to doing things in cpp. I know nothing at all but I understand what i'm looking at and can edit things to figure stuff out. Well I've decided that I want to learn some bit and try and create an...
Do not post compile errors.. meh that about sums it up
Normal Threads
jw im sure there are many many awnsers to this question but say i just want to make a MOD for a game. How does the anticheat know it's legit and not considered a hack? how does it distinguish hacks from legit mod's users make(example: in game timer, in game Desktop time)????
Hey all, I am interested in increasing my knowledge in the area of mathematics, as I think I am a bit deficient in that area. I studied maths at a-level, but did not take it any further. I have a BSc in Computer games Programming, but that course did not cover much maths. Ideally, I would...
Hello. I already read the fixed posts of this section, and now i would like to hook something. I already know c++ and a little bit of asm. I already searched about hook, i have seen a lot of code but i dont understand where to put that code. I understand it but in what context does that go in? I...
im looking for a solution to read out pixelcolor in css while in fullscreen mode. this stopped working since windows 7. i wrote this littele code to test # #include <windows.h> #include <stdio.h> #include <iostream> int main(){
Hey this is a simple question I just need to make sure on something, alright well I want to get a list of all the running processes on my computer... I already know how to do this, but what happens is is that it shows processes that are not even in the task manager some of them are services. ...
Hi, I'm trying to hook the function that gets called when a game gets saved. I think I need to find the function and it's offsets in olly, but I'm not sure how I am supposed to do that. How can I log the function that a game calls in olly? Thanks in advance!
I'm trying to learn how to read and write to memory of a process. So far I made a program using VC++ that can read and write score information in solitaire. However, each time I restart the program by memory values are no good. I've been reading on DMA and I found two usable pointers to the score...
Alright, so I have some basic knowledge of C++. I want to learn how to make windows and API stuff. What should I read or watch? Also I would prefer something that is not too excessive.
This used to work: int __stdcall hk_SomeFunction() { add_log("ReturnAddress: 0x%.8X\n", (DWORD)_ReturnAddress()); return Something; } _ReturnAddress() always return 0xFFFFFFFF, not sure what I changed, but it could be some compiler setting, that I am not familar with, anyone knows? (Visual...
Hello, I am looking at creating a window overlay/hook that will give Line prediction to an online 'Pool Game' Yes not very exciting but it's a start and has always been an interesting concept of mine (i want to adapt this to 3D games of the same type) So basically i am wandering.. Should i...
I'm working on a little program that just has a variable that if it goes over a certain value it sprays a lovely message every where. I got it so It skips that. But when ever I start the program up the memory addresses change each time except for the last 4 bytes. 012C14D0 74 2B ...
Hey everyone, Basically, I'm trying to get the interface pointers e.g. g_pLTClient from my injected dll. I noticed FearHack posted here contained the lines... if(g_pLTClient == NULL) { PATCH_ReadMemory( (void*)(pClient+0x1A5418),&g_pLTClient,4); add_log("g_pLTClient =...
Hello, I would like to know if is possible to change the behavior of the rand() C++ function, being executed on a remote game server... The situation is this: I'm currently reversing a game that contains a NPC that allows the player to create items. In case of success, the item is created,...
Hi guys, is it possible to redirect a non-member function to a class member function? I want to do something like that: class Net { public: static int SendToClient(SOCKET s, const char *buf, int len, int flags); };
Finally I understand the basics of C++ by reading C++ Essentials, (which is a free e-book that can be found here http://www.pragsoft.com/books/CppEssentials.pdf). So I (think I) master the subjects covered in that book, now I want to move on to some real reverse engineering. My final goal is to...
Hey there I got a little problem. I am trying to read my Address from a pointer. Here is the Code: void paint_class::SetZoom(int zoom) { //Pointer //00034D08 + 48 //Address: dwStatic+3ED04 DWORD address = NULL;
I've found a good book somewhat to help me understand C++, it uses players in a game, etc. I'm a beginner in C++ and trying to understand the basics really well before I go onto anything else. In the code there's this: Player blueHat; Player redHat; Player greenHat; Player yellowHat; ...
Hi, I read that thread (http://forum.gamedeception.net/threads/16634-Hacking-a-flash-game-in-browser) and I really like the idea about loading a modified .swf. So i got to the point where I also modified a flash game, but i don't really know how I can get firefox to load my version of the game...
typedef void( *tCL_AddReliableCommand)(char *cmd, BOOL isDisconnectCmd); tCL_AddReliableCommand mCL_AddReliableCommand; void CL_AddReliableCommand( char *cmd, BOOL isDisconnectCmd) { Com_Printf("\n", cmd); mCL_AddReliableCommand(cmd,isDisconnectCmd); } void sethooks(void) {
Hi GD, I'm attempting to write a hack for game Lineage II. In my jump's ive always delt with static address so i could use #define and it worked fine. Now i've got defeating code-shifting so i've calculated the opcode i want to jump to; const DWORD MinHealthOpcode = ...
Hello ! I want to hook the display functions of a flash game which use ActionScript 3. I found NPSWF32.dll as actionscript interpreter but it's just for FireFox. My game is loading by a Dll that not load the NPSWF32 dll. I mean that the dll load an OCX but I'm not sure... So Is anyone know...
sometimes it is usefull to spawn a console from a windows application with AllocConsole, to output / input some information. normally you would communicate with WriteConsole/ReadConsole, but this is a major inconvenience when you are used to cout / cin. usage: int WINAPI WinMain( HINSTANCE,...
Following code: AddHook(reinterpret_cast<uintptr_t>(GetProcAddress(GetModuleHandle("kernel32.dll"), "IsDebuggerPresent")), foo, GetModuleHandle("kernel32.dll") + 0x1000, 0x000C0000); Is compiled as: 010012C0 >/$ 56 PUSH ESI 010012C1 |. 8B35 10200001 MOV ESI,DWORD PTR DS: ...
I am sorry if this has already been asked plenty of times but I couldn't find any good answer to this question, so I'm posting it here. I hope it's not a problem. I am currently using some out-of-process injection code to call functions in a game client from my application. It works by...
Hello everybody, I'm writing a macro bot for a free MMO game. I use text files for storing these macros, each line contains a key, and for how long it should be pressed in milliseconds. The game runs in a window. I already tried two methods for emulating keypresses. Method 1: void...
Hello, I've searched around for an answer to this question but there was none to be had :( I'm looking for a method to determine which thread context you need to set the hardware breakpoint in in order to hook a function. Lets say I want to hook function A, which is executed by Thread 15. How do...
Now that school is just about over, and ive taken an intro class to C++, written two programs using OOP, learned about functions, pointers, ect. Should I start learning some assembly now? Ive taken an interest in wanting to learn how to code some hacks for fun and from what I understand I should...
Hi, im just wondering if there is a list that would cover what is described in the title.
hey just a quick question, how do I check where the function call comes from? What i wanna do is check if a call to ReadProcMem comes from a specific module. I though of getting the base address and the size of the module but there is still the question how to get the address of the "call...
so i have this dll file i inject for memory editing, but atm the memcpy doesnt seem to edit the memory at all, i've checked with hookshark and by debugging the target and checking the offset, used to work before but now it doesnt seem to work at all here's my hack code #include <windows.h> ...
There are currently 2 users browsing this forum. (1 members & 1 guests)
Use this control to limit the display of threads to those newer than the specified time frame.
Allows you to choose the data by which the thread list will be sorted.
Order threads in...
Note: when sorting by date, 'descending order' will show the newest results first.
Forum Rules