Skip to content

Convenient way to assemble indirect jmp with embedded target after? #315

Answered by wtfsck
alexrp asked this question in Q&A
Discussion options

You must be logged in to vote

You should be able to set a label just before asm.dq(...) and then you could do asm.jmp(__qword ptr[lbl]). After you've assembled it, you can get the address of the label and patch the assembled bytes and write aa bb cc dd ee ff aa bb to it.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@alexrp
Comment options

@wtfsck
Comment options

@alexrp
Comment options

@wtfsck
Comment options

Answer selected by alexrp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants