1 / 11

System Level Programming Software College of SCU

System Level Programming Software College of SCU. Lab :Binary Bomb. 1. Binary Bomb Lab. 1. Lab Discription 2. Tools to "Defuse" Bombs 3. Defuse Bomb 1. Lab discription The "binary bomb" is an executable c program provided as a binary object file.

Download Presentation

System Level Programming Software College of SCU

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. System Level ProgrammingSoftware College of SCU Lab:Binary Bomb 1

  2. Binary Bomb Lab • 1. Lab Discription • 2. Tools to "Defuse" Bombs • 3. Defuse Bomb 1

  3. Lab discription The "binary bomb" is an executable c program provided as a binary object file. Run the program, it prompts the user to type in 6 different strings. If any of these is incorrect, the bomb "explodes" by printing an error message “BOOM!!!”. 1. Lab Discription(1/2)

  4. 1. Lab Discription(2/2) The source code for phase_1() and others are not provided. Students will use reverse engineer to find out 6 input string.

  5. Binary Bomb Lab • 1. Lab Discription • 2. Tools to "Defuse" Bombs • 3. Defuse Bomb 1

  6. How to "DEFUSE'' the bomb disassembling the binary object file to assembly instructions disassembler: objdump.exe objdump -d bomb.exe >> bomb.ass disassembling object file bomb.exe and redirect the instructions to plaintext file bomb.ass Refers to objdump_Tutorial.pdf to get more info 2. Tools to "Defuse" Bombs(1/3)

  7. How to "DEFUSE'' the bomb single-step through the instruction in each phase to figure out the "strings" debugger: gdb.exe GDB is the standard debugger that runs on many unix-like systems and works for many programming language including c. Refers to gdb_Tutorial.pdf to get more info 2. Tools to "Defuse" Bombs(2/3)

  8. 2. Tools to "Defuse" Bombs(3/3) • GDB 跟踪调试常用命令 • 反汇编:objdump -d bomb • 查看所有寄存器内容:info registers • 打印某一寄存器:p $eip • 打印内存内容: x 0x8049034 • 打印内存内容(以字符串形式):x/s 0x8049034 • 设置断点:b • 设置断点(地址): b*0x8049034 • 运行:run • 执行单步: si

  9. Binary Bomb Lab • 1. Lab Discription • 2. Tools to "Defuse" Bombs • 3. Defuse Phase 1

  10. 3. Defuse Phase 1(1/2)

  11. 3. Defuse Bomb 1(2/2)

More Related