43 lines
2.2 KiB
Plaintext
43 lines
2.2 KiB
Plaintext
|
= PROGRAMS
|
||
|
|
||
|
+-------------------------------------------------------------------------------+
|
||
|
| program | flags | args | description |
|
||
|
+---------------|---------------|---------------|-------------------------------+
|
||
|
| rabin2 | -Ss | ./bof.elf | get symbol information |
|
||
|
| | | | like function addresses |
|
||
|
+---------------|---------------|---------------|-------------------------------+
|
||
|
| r2 | -wAAf | ./bof.elf | analyze a binary (static) |
|
||
|
+---------------|---------------|---------------|-------------------------------+
|
||
|
| cat | | ./bof.s | read the contents of the |
|
||
|
| | | | source file |
|
||
|
+---------------|---------------|---------------|-------------------------------+
|
||
|
| objdump | -d | ./bof.elf | disassemble a binary |
|
||
|
+---------------|---------------|---------------|-------------------------------+
|
||
|
| grep | -e | string | grab text where a string |
|
||
|
| | | | occurs, non case sensitive |
|
||
|
+---------------|---------------|---------------|-------------------------------|
|
||
|
| curl | | url | get an http response from |
|
||
|
| | | | from the provided url and |
|
||
|
| | | | output to stdout or a file |
|
||
|
| | | | via the --output=file flag |
|
||
|
+---------------|---------------|---------------|-------------------------------+
|
||
|
| printf | | string | print the provided string |
|
||
|
+---------------|---------------|---------------|-------------------------------+
|
||
|
| chmod | +x | ./bof.elf | add execute permission |
|
||
|
+---------------|---------------|---------------|-------------------------------|
|
||
|
| lldb | | ./bof.elf | execute the program to debug |
|
||
|
+-------------------------------------------------------------------------------+
|
||
|
|
||
|
= UTILITIES
|
||
|
|
||
|
+-------------------------------------------------------------------------------+
|
||
|
| characters (s) | format | use case |
|
||
|
+-----------------------|-----------------------|-------------------------------+
|
||
|
| | (pipe) | cmd1 | cmd2 | "pipe" the output from cmd1 |
|
||
|
| | | into input for cmd2 |
|
||
|
+-----------------------|-----------------------|-------------------------------+
|
||
|
| ./ | ./<file> | execute a LOCAL (accessable |
|
||
|
| | | from the current working |
|
||
|
| | | directory) file. |
|
||
|
+-------------------------------------------------------------------------------+
|