CC: Radare2
Command Line Options
What flag to you set to analyze the binary upon entering the r2 console (equivalent to running aaa once your inside the console)
How do you enable the debugger?
How do you open the file in write mode?
How do you enter the console without opening a file?
Analyzation
What command "Analyzes Everything" (all functions and their arguments: Same as running with radare with -A)
What command does basic analysis on functions?
How do you list all functions?
How many functions are in the example1 binary?
What is the name of the secret function in the example1 binary?
Information
What command shows all the information about the file that you're in?
How do you get every string that is present in the binary?
What if you want the address of the main function?
What character do you add to the end of every command to get the output in JSON format?
How do you get the entrypoint of the file?
What is the secret string hidden in the example2 binary?
Navigating Through Memory
How do you print out the the current memory address your located at in the binary?
What command do you use to go to a specific point in memory with the syntax?
What command would you run to go 5 bytes forward?
What about 12 bytes backward?
How do you undo the previous seek?
How would go to the memory address of the main function?
What if you wanted to go to the address of the rax register?
Printing
How would you print the hex output of where you currently are in memory?
How would you print the disassembly of where you're currently at in memory?
What if you wanted the disassembly of the main function?
What command prints out the emoji hexdump? (this is not useful at all I just find it funny)
What if you decided you were too good for rows and you wanted the disassembly in column format?
What is the value of the first variable in the main function for the example 3 binary?
What about the second variable?
The Mid-term
How many functions are in the binary?
What is the value of the hidden string?
What is the return value of secret_func()?
What is the value of the first variable set in the main function(in decimal format)?
What about the second one(also in decimal format)?
What is the next function in memory after the main function?
How do you get a hexdump of four bytes of the memory address your currently at?
Debugging
How do you set a breakpoint?
What command is used to print out the values of all the registers?
How do you run through the program until the program either ends or you hit the next breakpoint?
What if you want to step through the binary one line at a time?
How do you go forth 2 lines in the binary?
How do you list out the indexes and memory addresses of all breakpoints?
Visual mode
How do you enter "graph mode" which allows everything to be organized in nice readable boxes
What character do you press to run normal radare commands inside visual mode?
How do you go back to the regular radare shell(leaving visual mode)?
What if you want to step through the binary inside Visual mode?
How do you add a comment?
Write Mode
How do you write a string to the current memory address.
What command lists all write changes?
What command modifies an instruction at the current memory address?
The Final Exam
What is the password that outputs the you win! message?
Last updated