Assembly Crash Course
note
For this module, int3
displays the state of the registers, which is helpful in writing the code.
note
Use the code snippet provided below and replace the comment with your assembly code.
Code Snippet
import pwn
pwn.context.update(arch="amd64")
output = pwn.process("/challenge/run")
output.write(pwn.asm("""
# Write your assembly code here
"""))
print(output.readallS())
level 1
In this level you will work with registers_use! Please set the following:
rdi = 0x1337
We can use the mov
instruction in order to store a value in a register.
mov
instruction
mov destination, source
The first operand is the location where data is stored, while the second operand is the source of the data.
assembly1.asm
add rdi, 0x1337
level 2
In this level you will work with multiple registers. Please set the following:
rax = 0x1337