| View previous topic :: View next topic |
| Author |
Message |
AlbanainRetard Master Cheater
Reputation: 0
Joined: 02 Nov 2008 Posts: 494 Location: Canada eh?
|
Posted: Sun Nov 01, 2009 1:40 pm Post subject: Inlinse ASM, db 90 (NOP) |
|
|
I am trying to convert a script to inline ASM from AA, but I hit a road block.
(Ignore the fact that I renamed everything)
Addy:
jmp MyAsmFunc
This line -> db 90
error C2400: inline assembler syntax error in 'opcode'; found 'constant'
I have figured out that db is something Dark Byte made up, whats an alternative?
_________________
|
|
| Back to top |
|
 |
NoMercy Master Cheater
Reputation: 1
Joined: 09 Feb 2009 Posts: 289
|
Posted: Sun Nov 01, 2009 2:15 pm Post subject: |
|
|
| Code: | unsigned char bBytes[5] = {0x00}; // bytes u want there
WriteProcessMemory((HANDLE)-1, (LPVOID)adress, bBytes, x, NULL);// x for how many bytes to change 0x10 = 1 byte |
thats a way
i believe
| Code: | *(DWORD*)address = 0x41200000;
its the same as
db 00 00 20 41 |
|
|
| Back to top |
|
 |
tombana Master Cheater
Reputation: 2
Joined: 14 Jun 2007 Posts: 456 Location: The Netherlands
|
Posted: Sun Nov 01, 2009 3:03 pm Post subject: Re: Inlinse ASM, db 90 (NOP) |
|
|
| AlbanainRetard wrote: | | I have figured out that db is something Dark Byte made up, whats an alternative? |
It's not something Dark Byte made up. db also works in other asm compilers like masm.
In c/c++ you can use __emit instead of db (don't know if it's microsoft specific or if it goes for all c/c++)
Last edited by tombana on Sun Nov 01, 2009 3:44 pm; edited 1 time in total |
|
| Back to top |
|
 |
&Vage Grandmaster Cheater Supreme
Reputation: 0
Joined: 25 Jul 2008 Posts: 1053
|
Posted: Sun Nov 01, 2009 3:31 pm Post subject: |
|
|
Hahahahahahahahahaha epic fail.
and dw = dark byte wins
and dd = dark byte is dangerous
|
|
| Back to top |
|
 |
oib111 I post too much
Reputation: 0
Joined: 02 Apr 2007 Posts: 2947 Location: you wanna know why?
|
Posted: Sun Nov 01, 2009 5:22 pm Post subject: |
|
|
&Vage please stop posting in General Programming. Your posts are never useful and rarely relate to the actual question being asked.
@OP
If you're using C/C++ and are within the address space of the process (i.e you injected a DLL into the process) you could do something like:
| Code: |
dword *addr = 0xdeadbeef; // replace 0xdeadbeef with real address
*addr = 0x90;
|
If you aren't you can use WriteProcessMemory().
_________________
| 8D wrote: |
cigs dont make people high, which weed does, which causes them to do bad stuff. like killing |
|
|
| Back to top |
|
 |
&Vage Grandmaster Cheater Supreme
Reputation: 0
Joined: 25 Jul 2008 Posts: 1053
|
Posted: Sun Nov 01, 2009 6:53 pm Post subject: |
|
|
| oib111 wrote: | &Vage please stop posting in General Programming. Your posts are never useful and rarely relate to the actual question being asked.
@OP
If you're using C/C++ and are within the address space of the process (i.e you injected a DLL into the process) you could do something like:
| Code: |
dword *addr = 0xdeadbeef; // replace 0xdeadbeef with real address
*addr = 0x90;
|
If you aren't you can use WriteProcessMemory(). | You posted something that doesn't even help the thread.
OP:
| Code: | __asm {
jmp example;
__emit 0x90
example:
} |
|
|
| Back to top |
|
 |
oib111 I post too much
Reputation: 0
Joined: 02 Apr 2007 Posts: 2947 Location: you wanna know why?
|
Posted: Sun Nov 01, 2009 8:01 pm Post subject: |
|
|
You're right, Because when I tell the OP how he can achieve what he wants that's obviously not helping him.
_________________
| 8D wrote: |
cigs dont make people high, which weed does, which causes them to do bad stuff. like killing |
|
|
| Back to top |
|
 |
|