Register for your free account! | Forgot your password?

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

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

Advertisement



[C++] Write an asm code to a specified address

Discussion on [C++] Write an asm code to a specified address within the C/C++ forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Dec 2013
Posts: 23
Received Thanks: 19
[C++] Write an asm code to a specified address

Hi !

I want to create a dll and when I inject it, it change the code at the specified address.
Example:
Code:
Original at 0x12345678:
push 01
Change to:
call 0X87654321
I want to change directly the code at the address

Does _asm{ }; can help me ?
Or how can I do ?

Thanks in advance
Kyshubi is offline  
Old 03/05/2014, 19:14   #2


 
MrSm!th's Avatar
 
elite*gold: 7110
Join Date: Jun 2009
Posts: 28,902
Received Thanks: 25,407
A call instruction is longer than a push, therefore you cannot simply replace it. You have use a code cave for that, i.e. place a jump to another code block where your call and the instructions replaced by the jump are executed. Don't forget to jump back.

You have to place the patched code in binary form (like an array of bytes).
MrSm!th is offline  
Old 03/05/2014, 19:42   #3
 
elite*gold: 0
Join Date: Dec 2013
Posts: 23
Received Thanks: 19
Ok thanks for your help, I'll try to do like this
Kyshubi is offline  
Reply


Similar Threads Similar Threads
guide: debug pwi, find function addresses and offsets, write a bot(c++ code included)
09/04/2022 - PW Hacks, Bots, Cheats, Exploits - 123 Replies
hi, let's start right away. what you can learn: - trace and call ingame-functions like attack, cast spell, pick up, moveto, ... - traverse object lists like items, mobs, players - read ingame structures (class objects) and how they play together - write your own fully client-side bot that doesnt need to simulate mouse/keyboard input and doesnt need to read pixels
C# Write/ReadprocessMemory Fehler Code 5 ( Zugriff Verweigert)
09/01/2013 - .NET Languages - 6 Replies
Hey Leute, ich habe folgendes Problem, undzwra erstelle ich grade ienn hack für Metin, welcher auf Metin2 Singapore auch geht, jedoch bekomme ich bei Metin2 Deutschland, die Fehlermeldung "Zugriff Verweigert". Ich weiß jedoch auchnicht wo diesen Problem liegt. Das gleiche ist in C++ auch. Hier ist einmal die Komplette source: frmMain.cs using System; using System.Collections.Generic; using System.ComponentModel; - Pastebin.com cMemory.cs:
the new speed hack address code for 9d g1
05/21/2011 - 9Dragons - 37 Replies
Speed Hack : Address: 010EC9DB Type : Float Value: 412 ~ 416 ================= Refine Hack: Address: 010EAE3C Type : 4 Bytes Value: 0 ~ 12



All times are GMT +1. The time now is 01:28.


Powered by vBulletin®
Copyright ©2000 - 2025, 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 ©2025 elitepvpers All Rights Reserved.