Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > C/C++
You last visited: Today at 21:13

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

Advertisement



Write an asm part in another process

Discussion on Write an asm part in another process 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
Write an asm part in another process

Hello everyone.

Today I was wondering if its possible to write an asm part stored in aother process.
Example

Program 1:
PHP Code:
Do My stuff
alloc some memory in Program 2
Write MyAsm in Program 2 in allocated memory

_asm
{
push 1
push 2
push 3
...

Program 2:
PHP Code:
Do his stuff 
I'm not sure to be really clear but to be brief I want to do something like WriteProcessMemory and write my asm function



thx in advance, have a nice day
Kyshubi is offline  
Old 09/30/2014, 18:37   #2

 
snow's Avatar
 
elite*gold: 724
Join Date: Mar 2011
Posts: 10,479
Received Thanks: 3,318
snow is offline  
Old 10/01/2014, 12:34   #3
 
elite*gold: 0
Join Date: Dec 2008
Posts: 6
Received Thanks: 0
AsmJit looks good.

If you want to do it the hard way, write your asm block in-line, compile it, disassemble your code in your disassembler and have a look at what the opcodes are that it generates ( or use a debugger ). You can then assign those values to bytes in an array and then use your WriteProcessMemory on the target process.

Or if you really want some pain, try learning to code IN opcodes haha. I'll start you out : 0x90 is a NOP lol.
mithra is offline  
Reply


Similar Threads Similar Threads
write process mermory [help] !!
10/28/2013 - C/C++ - 1 Replies
How do I use the address in C + + (Visual C++ or Dev C++) ? address: 1HIT_address=0x0051F149 1HIT_hacked_value=1593591259 200HP_address=0x0051E554 200HP_hacked_value=2348565979 INFSP_address=0x00484C32 INFSP_hacked_value=2348565979
Auto it Read/Write Process Memory - hlp
06/10/2013 - AutoIt - 2 Replies
I can Read Process Memory But i Cant WriteProcessMemory!? #RequireAdmin #Include <WinAPI.au3> setprivilege("sedebugprivilege", 1) ReadMemory(0x008C4734,"MineSweeper.exe" ) WriteMemory(0x008C4734,"MineSweeper.exe" ;,"43") Func ReadMemory($adresR,$handle) Local $PROCESS_ALL_ACCESS = 0xfff Dim $procHwnd = _WinAPI_OpenProcess($PROCESS_ALL_ACCESS, False, ProcessExists($handle));
SharpMagic.dll Read/Write/Process Memory [C#]
09/26/2012 - Coding Releases - 7 Replies
SharpMagic.dll 1. Was ist die SharpMagic.dll ? Die SharpMagic.dll ist eine Bibliothek verschiedenster Funktionen innerhalb einer Klasse. Geschrieben wird sie für C#, kann natürlich aber beliebig in anderen Sprachen benutzt werden. 1. Wer kann diese Bibliothek benutzen ?
write memory process problem
10/28/2009 - General Coding - 3 Replies
Hey Leute Habe mir ebem mal das tut von Blackfog angeschaut. Verstehe es auch, bloss will mein compi nich so wie ich will XD habe es au scho mit copy and paste versucht, das ding macht einfach nix
C# Write process memory
08/16/2008 - CO2 Programming - 6 Replies
ok so i have a question about how do i use the api function writeprocessmemory in C#, i already have readprocessmemory but i can't seem to get writeprocessmemory... so if anyone could show me the call and an example (preferably a pinball example) it would be very helpful :) heres what i have so far: //================================================ ==============================================// // Function: MemoryOpen(int ProcessID])) // ...



All times are GMT +1. The time now is 21:14.


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