Cheat Engine
The Official Site of Cheat Engine
FAQ
Search
Memberlist
Usergroups
Register
Profile
Log in to check your private messages
Log in
Cheat Engine Forum Index
->
General Discussions
->
Guests
Post a reply
Username
Subject
Message body
Emoticons
View more Emoticons
Font colour:
Default
Dark Red
Red
Orange
Brown
Yellow
Green
Olive
Cyan
Blue
Dark Blue
Indigo
Violet
White
Black
Font size:
Font size
Tiny
Small
Normal
Large
Huge
Close Tags
Options
HTML is
OFF
BBCode
is
ON
Smilies are
ON
Disable BBCode in this post
Disable Smilies in this post
All times are GMT - 6 Hours
Jump to:
Select a forum
Cheat Engine
----------------
Cheat Engine
Cheat Engine MacOS
Cheat Engine Lua Scripting
Cheat Engine Extensions
Cheat Engine Tutorials
General Gamehacking
Auto Assembler tutorials
Pointer tutorials
Game specific tutorials
Webbrowser stuff related tutorials
Console Modding
LUA Tutorials
General Discussions
----------------
General Discussions
Art
Computer Talk
Random spam
Art Requests
Art Tutorials
Willekeurige Rotzooi
Guests
Cheat Requests
----------------
Single player cheat request
Cheat Engine Downloads
----------------
Tables
Trainers
Auto Assemble scripts
Coding
----------------
Cheat Engine Source
CETC Server and Clients
DBVM
Plugin development
General programming
Binaries
Crackmes
General programming+
Game Development
2D Graphics
3D Modeling
Gameplay design
Web Development
Games
----------------
Flash Games
Gaia Online
Stick Arena
Hello Kitty Forums
----------------
Temp
Topic review
Author
Message
LoserNOob
Posted: Tue Mar 07, 2017 7:54 pm
Post subject:
Nvm im so dumb.
LoserNOob
Posted: Tue Mar 07, 2017 7:38 pm
Post subject:
All right , so I revised my code and now it looks like this ->
#include <iostream>
#include <Windows.h>
#include <WinDef.h>
using namespace std;
int main()
{
HWND hwnd = FindWindowA(NULL, "window");
if (hwnd == NULL)
{
cout << "Could not find window." << endl;
Sleep(5000);
exit(-1);
}
else
{
DWORD procID;
GetWindowThreadProcessId(hwnd, &procID);
HANDLE handle = OpenProcess(PROCESS_ALL_ACCESS, FALSE, procID);
if (procID == NULL)
{
cout << "Cannot find window" << endl;
Sleep(5000);
exit(-1);
}
else
{
if (GetAsyncKeyState(VK_SPACE))
{
BYTE nop[] = { 0x90 };
WriteProcessMemory(handle, (LPVOID*)(void *)0x0909A41F, &nop, 1, NULL);
}
if (GetAsyncKeyState(VK_INSERT))
{
cout << "aa" << endl;
}
}
}
return 0;
}
Problem is , the program exits like this right after I debug it-> .exe has exited with code 0 (0x0)
LoserNOob
Posted: Mon Mar 06, 2017 3:14 pm
Post subject:
Nvm, ima try something out.
LoserNOob
Posted: Mon Mar 06, 2017 3:07 pm
Post subject: Converting aob injection template to c++ code, NOP
Ok so I'm trying to convert an aob template to c++ code.
This is the script. ->
[ENABLE]
aobscan(INJECT,8B 84 18 0C 02 00 00) // should be unique
alloc(newmem,$1000)
label(code)
label(return)
newmem:
code:
// mov eax,[eax+ebx+0000020C]
jmp return
INJECT:
jmp newmem
nop
nop
return:
registersymbol(INJECT)
[DISABLE]
INJECT:
db 8B 84 18 0C 02 00 00
unregistersymbol(INJECT)
dealloc(newmem)
Now , this is my attempt at c++ to convert it.
#include <iostream>
#include <Windows.h>
using namespace std;
int main()
{
HWND hwnd = FindWindowA(NULL, "GraalOnline Classic - Mozilla Firefox");
if (hwnd == NULL)
{
cout << "Could not find window." << endl;
Sleep(5000);
exit(-1);
}
else
{
DWORD procID;
GetWindowThreadProcessId(hwnd, &procID);
HANDLE handle = OpenProcess(PROCESS_ALL_ACCESS, FALSE, procID);
if (procID == NULL)
{
cout << "Process was not found." << endl;
Sleep(5000);
exit(-1);
}
else {
WriteProcessMemory(handle, address, 0x90, 1, NULL);
}
}
Now the problem is the address. The address changes every single time and I have tried to find the base address using pointer scans but for some reason that has not worked out for me. Is it mandatory to give the address in order to NOP the bytes? In my case , it is 8B 84 18 0C 02 00 00.
Powered by
phpBB
© 2001, 2005 phpBB Group
CE Wiki
IRC (#CEF)
Twitter
Third party websites