Re: Need a jump opcode generator.
- From: "Skybuck Flying" <spam@xxxxxxxxxxx>
- Date: Fri, 27 Jul 2007 10:44:31 +0200
Probably pretty easy:
// generate a jump opcode.
// opcode for jump is FF
// followed by 4 bytes me thinks.
// this is a near absolute jump which might work in protected mode as well
// the docs don't say if it works in protected mode so I assume it works
// otherwise they would have warned about it or had a special section for
protected mode
// and near jumps.
// so the jump instruction is 5 bytes as well.. which is realy nice.
// simple as pie:
// vSendTo points to sendto function in winsuck 2 ;)
byte( pointer(vSendTo)^ ) := $FF;
pointer( pointer( longword(vSendTo)+1 )^ ) := @injected_sendto;
Compiles, but untested.
Bye,
Skybuck.
.
- Follow-Ups:
- Re: Need a jump opcode generator.
- From: Skybuck Flying
- Re: Need a jump opcode generator.
- References:
- Need a jump opcode generator.
- From: Skybuck Flying
- Need a jump opcode generator.
- Prev by Date: Need a jump opcode generator.
- Next by Date: Re: Need a jump opcode generator.
- Previous by thread: Need a jump opcode generator.
- Next by thread: Re: Need a jump opcode generator.
- Index(es):
Relevant Pages
|