| View previous topic :: View next topic |
| Author |
Message |
vegito616 Expert Cheater
Reputation: 0
Joined: 08 Jan 2006 Posts: 109
|
Posted: Tue Jan 15, 2008 10:10 pm Post subject: Need some Inline Assembler Help |
|
|
| How can you nop an address with the C++ inline assembler?
|
|
| Back to top |
|
 |
sponge I'm a spammer
Reputation: 1
Joined: 07 Nov 2006 Posts: 6009
|
Posted: Wed Jan 16, 2008 12:50 am Post subject: |
|
|
| Code: | mov dword ptr [ADDRESS], 90909090
mov word ptr [ADDRESS], 9090
mov byte ptr [ADDRESS], 90 |
Assuming this is an injected dll.
_________________
|
|
| Back to top |
|
 |
vegito616 Expert Cheater
Reputation: 0
Joined: 08 Jan 2006 Posts: 109
|
Posted: Wed Jan 16, 2008 6:57 am Post subject: |
|
|
When I try that code, it gives me a "improper operand type" type error.
| Code: | _asm{
mov word ptr [0x005D9014], 9090
} | [/code]
|
|
| Back to top |
|
 |
Noz3001 I'm a spammer
Reputation: 26
Joined: 29 May 2006 Posts: 6220 Location: /dev/null
|
Posted: Wed Jan 16, 2008 7:23 am Post subject: |
|
|
| Code: | _asm
{
mov byte ptr ds:[0x00400028], 0x90
} |
|
|
| Back to top |
|
 |
vegito616 Expert Cheater
Reputation: 0
Joined: 08 Jan 2006 Posts: 109
|
Posted: Wed Jan 16, 2008 7:53 am Post subject: |
|
|
What if I needed to do:
| Code: | | db 90 90 90 90 90 90 |
How would I accomplish that since it requires more than 4 nops.
|
|
| Back to top |
|
 |
assaf84 Expert Cheater
Reputation: 0
Joined: 03 Oct 2006 Posts: 238
|
Posted: Wed Jan 16, 2008 8:48 am Post subject: |
|
|
| Move a DWORD and then a BYTE.. Or write 1 byte 5 times in a loop..
|
|
| Back to top |
|
 |
|