News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

[Help] Code

Started by jeivarmarr, November 25, 2012, 10:27:40 AM

Previous topic - Next topic

jj2007

Quote from: jeivarmarr on November 29, 2012, 04:58:38 AM
I want to pass the value of 00C4C988h to txt file

tecla:
invoke Sleep,100
invoke GetAsyncKeyState,VK_H
   test eax,eax
   jz tecla
mov ebx,00C4C988h
Open "O", #1, "C:/MyTextFile.txt"
mov eax, dword ptr [ebx]
   Print #1, eax  ; your example is Unicode, therefore "wide" Print
   Close #1
   Inkey "ok"
  jmp tecla
   ret

not working :(

No surprise:
a) GetAsyncKeystate: wrong test
b) "C:/" is not Windows-compatible
c) Open inside a loop without closing is a no-no
d) Print eax won't work, you need to convert (e.g. Print Str$(eax))

Can you explain in a few words what your application should do?

jeivarmarr

Quote from: jj2007 on November 29, 2012, 05:11:03 AM
No surprise:
a) GetAsyncKeystate: wrong test
b) "C:/" is not Windows-compatible
c) Open inside a loop without closing is a no-no
d) Print eax won't work, you need to convert (e.g. Print Str$(eax))

Can you explain in a few words what your application should do?

Thanks for your answer

in memory of a program with a dll and inject Get a string to write to a .txt file

qWord

Quote from: jeivarmarr on November 29, 2012, 05:16:11 AM
Quote from: jj2007 on November 29, 2012, 05:11:03 AM
No surprise:
a) GetAsyncKeystate: wrong test
b) "C:/" is not Windows-compatible
c) Open inside a loop without closing is a no-no
d) Print eax won't work, you need to convert (e.g. Print Str$(eax))

Can you explain in a few words what your application should do?

Thanks for your answer

in memory of a program with a dll and inject Get a string to write to a .txt file
The rules of the forum
MREAL macros - when you need floating point arithmetic while assembling!

fearless

jeivarmarr, you might have to expand on your explanation a bit more, otherwise it will be assumed as a request for information that this forum board and its members wont support. If you can tell us for example what program, what dll, why you need to inject and what is to be written to a text file, that will help us understand if your request is a legitmate one or not. Otherwise the topic will be locked.

jeivarmarr

Quote from: fearless on November 29, 2012, 05:37:29 AM
jeivarmarr, you might have to expand on your explanation a bit more, otherwise it will be assumed as a request for information that this forum board and its members wont support. If you can tell us for example what program, what dll, why you need to inject and what is to be written to a text file, that will help us understand if your request is a legitmate one or not. Otherwise the topic will be locked.

I want to get the value of a memory address. example
mov ebx, 00C4C988h
mov eax, dword ptr [ebx]

the value of (eax) want to write to a file. txt

i use RadASM

dedndave

i don't think you understand the rules

i googled your nic and the first site that came up...
MultiPlayerGameHacking
http://www.mpgh.net/forum/members/640098-jeivarmarr.html

jeivarmarr

Quote from: dedndave on November 29, 2012, 06:15:52 AM
i don't think you understand the rules

i googled your nic and the first site that came up...
MultiPlayerGameHacking
http://www.mpgh.net/forum/members/640098-jeivarmarr.html

oh I'm violating some rule?

I apologize, my English is very bad

dedndave