Author Topic: [Help] Code  (Read 9934 times)

jj2007

  • Member
  • *****
  • Posts: 9633
  • Assembler is fun ;-)
    • MasmBasic
Re: [Help] Code
« Reply #15 on: November 29, 2012, 05:11:03 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

  • Guest
Re: [Help] Code
« Reply #16 on: November 29, 2012, 05:16:11 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

  • Member
  • *****
  • Posts: 1473
  • The base type of a type is the type itself
    • SmplMath macros
Re: [Help] Code
« Reply #17 on: November 29, 2012, 05:18:22 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

  • Member
  • ***
  • Posts: 458
    • LetTheLightIn
Re: [Help] Code
« Reply #18 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.
fearless

CM690II Case, HX1000 PSU, Asus Z97, Intel i7-4790K, Seidon 120v Cooler, 16GB DDR3, MSI GTX 980TI

My Github  Twitter

jeivarmarr

  • Guest
Re: [Help] Code
« Reply #19 on: November 29, 2012, 05:54:09 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

  • Member
  • *****
  • Posts: 8823
  • Still using Abacus 2.0
    • DednDave
Re: [Help] Code
« Reply #20 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

jeivarmarr

  • Guest
Re: [Help] Code
« Reply #21 on: November 29, 2012, 06:33:05 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

  • Member
  • *****
  • Posts: 8823
  • Still using Abacus 2.0
    • DednDave
Re: [Help] Code
« Reply #22 on: November 29, 2012, 06:36:42 AM »

jeivarmarr

  • Guest
Re: [Help] Code
« Reply #23 on: November 29, 2012, 06:43:33 AM »