爱情鸟第一论坛com高清免费_91免费精品国自产拍在线可以看_亚洲一区精品中文字幕_男人操心女人的视频

代寫CISC221、Java/Python設計編程代做

時間:2024-03-13  來源:  作者: 我要糾錯



CISC221: The Bomb Lab
This lab serves as a newly added experiential learning module within CISC221, offering
hands-on exposure to binary files and assembly code debugging at the instruction set
level of the x86 processor. Understanding debugging at this level is crucial for grasping
computer architecture and gaining reverse engineering proficiency. Such skills are vital
to fields like code optimization, embedded systems, and cybersecurity. Furthermore, it
fosters essential debugging skills applicable across diverse programming domains. By
emphasizing the lab's hands-on approach, its challenging yet rewarding nature, and the
career prospects it offers, students are motivated to engage actively, deepening their
comprehension of low-level computing and laying a foundation for advanced learning in
related subjects.
Good luck, and welcome to the bomb squad!
I. Description
This lab is for a digital binary bomb, with the schematic shown below.
2
As illustrated in the diagram, the binary bomb is composed of four distinct phases, each
requiring a specific input string, set of numbers, or combination thereof for successful
defusal. Correctly entering the required input disarms the phase, allowing the bomb to
advance to the next stage. Failure to provide accurate input triggers an explosion,
signaled by the display of "BOOM!!!" before termination. The entire bomb is considered
defused only when all four phases have been disarmed. Each student will receive their
own bomb to defuse as part of this mini-project. Your objective is to successfully
disarm your assigned bomb before the designated due date.
The executable binary file is the bomb is called “bomb_lab” and is located at the
CASLAB machines in the following directory linux>cas/course/cisc221. To access the
bomb_lab file, you should first go up to root directory by typing (cd ..) twice, then
navigate to the following folder linux>cas/course/cisc221 as shown below
You can then run the bomb by (./bomb_lab) or debug the bomb by (gdb bomb_lab).
II. Overview
The Bomb consists of four phases (sub-problems):
1) Phase 1: Requires a textual input, for example, "Hello world."
2) Phase 2: Requires an array of six numbers, for example, 12 34 81 23 10 22.
3) Phase 3: Requires three inputs in the order of integer, character, and integer, with
the first integer falling within the range of 0 to 7, for example, 3 Z 1.
4) Phase 4: Requires a textual input, for example, "Goodbye!"
You should work on the gdb debugger to trace clues, disassemble functions, investigate
the contents of the registers/stack to find the defusal passcodes for each phase. The
most important registers that you should keep track of their content are
• %rax: return value
• %rsp: stack pointer
• %rdi: 1st argument
• %rsi: 2nd argument
• %rdx: 3rd argument
• %rbp: base pointer
3
Please note that registers are typed in the gdb debugger preceded by a dollar sign
($rax) not a percentage sign. For instance to check the data in %rax, you type (info
registers $rax)
To help you find some clues, Table 1 highlights the most important labels for each phase
and Table 2 lists all the debugging commands that you will need to defuse your bomb
Table 1. most important labels
Table 2. gdb common commands
command desc example
run runs the loaded executable program run
break
[func_name]
breaks once you call a specific function break phase_1
break *
mem_loc
breaks when you execute the instruction at
a certain address
break * 0x0000555555555ef9
info
breakpoints
displays information about all breakpoints
currently set
info breakpoints
deletel
breakpoints
delete a specific breakpoint delete breakpoints 10 //delete
breakpoint number 10
continue continue to the next breakpoint continue
stepi steps through a single x86 instruction.
Steps into calls.
stepi
nexti steps through a single x86 instruction.
Steps over calls.
nexti
Phase Important functions/labels
Phase_1 ● strings_not_equal
● string_length
Phase_2 ● generatedValues
Phase_3 -
Phase_4 ● generateRandomChars
● validateOccurrence
4
disassemble views assembly code while debugging disassemble or disassemble
“label”
info registers prints the names and values of all
registers
info registers
info register
$reg
prints the name and value for specific
register
info register $rax
set $reg = val assign value to a certain register set $rdi = 0x80
x command prints values stored in a certain address
with a specific format
1) x/s 140737488227040
#display values in string format
2) x/d 140737488341111
#display values in decimal
format
III. Goal & Guidelines
The ultimate goal for each phase is to determine the registers containing the correct
input by navigating through “stepi” or over “nexti” the assembly code, inspecting the
values of the registers using "info register $reg" and then updating the registers that
hold your input with the correct value through "set $reg = val" to defuse the phase.
There are several tips for deactivating the bomb:
● Once on the correct directory (cas/course/cisc221), you can begin debugging
by using the gdb command: gdb bomb_lab.
● Set breakpoints on all phases, i.e., break phase_1, break phase_2, break
phase_3, and break phase_4., you can also add more breakpoints on crucial
parts.
5
● Start the bomb program by prompting the run command and enter you student
ID.
Phase#1
Desc: The input text will be compared against a predefined string.
● The program anticipates a string input for the first phase. It is advisable to
employ a concise and memorable text, e.g., test, similar to the example below.
● It should hit the phase_1 breakpoint (added previously), disassemble
command can be utilized to show the assembly code for the current block. The
small arrow in the left of the screen (see below) indicates the command at which
the program is executing next.
6
● If you defuse phase_1 successfully, you will get “Phase 1 defused. How about
the next one?”
● Otherwise, the bomb will explode and return
Phase#2
Desc: The input is an array of six numbers with a space separator, for example, 12 34
81 23 10 22, that will be compared against a predefined array.
● The program anticipates an input of 6 numbers for the second phase. It is
advisable to employ concise and memorable integers, similar to the example
below.
● If you defuse phase_2 successfully, you will get “Halfway there!”
● Otherwise, the bomb will explode and return
Phase#3
Desc: The input is three values in the following order, separated by spaces: an integer
(should be within the range of 0 to 7), a character, and another integer, e.g., 3 z 44.
● The program anticipates an input of three values for the third phase. It is
advisable to employ concise and memorable values, similar to the example
below.
● If you defuse phase_3 successfully, you will get “That's number 3. Keep
going!”
● Otherwise, the bomb will explode and return
Phase#4
Desc: In the final phase, an input of text is anticipated, and the provided text should
satisfy the occurrence of some random characters.
7
For instance, If the last phase generates random characters such as {l:3, x: 0, d: 1},
your input string should resemble something like "Hello world!"
Considering that the phase 4 characters are limited to only three random characters.
● The program anticipates an input of textual form (e.g., Have a Nice Day!). It is
advisable to employ concise and memorable text, similar to the example below.
● If you defuse phase_4 successfully, you will get “Congratulations! You've
defused the bomb!”
● Otherwise, the bomb will explode and return
IV. Hints
1. The input for each phase is entirely deterministic for every student, based on
the ID
2. Ensure constant attention and focus on the segment of code preceding the
explode_bomb function. In case you miss the correct input for any phase, you
can bypass the explosion by manipulating the flags register
https://en.wikipedia.org/wiki/FLAGS_register and setting or resetting the zero flag
based on the phase condition. It implies that there is consistently a condition or
validation check before the execution of the explode_bomb function.
E.g.,
The cmp instruction subtracts the value in the %edx register from the value in
the %eax register, but it doesn't store the result. It only updates the flags
register based on the outcome of the subtraction.
If the values in %eax and %edx are equal, It will result in zero, setting the Zero
Flag (ZF) in the flags register. In this case, the je instruction will jump to the
specified label or location. But, If the values in %eax and %edx are not equal,
resulting in ZF being set to zero, then the explode_bomb will be called.
3. To inspect the content stored at a particular memory location, you can employ the
x command, such as x/s for strings or x/d for integers,
8
E.g., cmpl $0x5,-0x30(%rbp)
This command compares the immediate value 5 with the value stored in memory
at an address calculated as 0x30 bytes before the address stored in the base
pointer %rbp. So, to get the value stored in this location:
I. gets $rbp value through info register command
II. subtracts 0x30 from 0x7fffb96afc90 = 0x7fffb96afc60. (you can also type
the address directly as 0x7fffb96afc90-0x30 and let the computer do the
computation for you)
III. checks memory location “0x7fffb96afc60” value via x/d as it translates it to
integers
V. Deliverables
Upload only your answers “correct inputs” for all defused phases. It is recommended to
use computer-based tools like “MS Word” instead of handwritten notes to minimize
readability mistakes.
VI. Acknowledgement
Special thanks for Hesham Elabd for importing and customizing this lab to CISC221 and
for Doug Martin for assistance in implementing and hosting the lab on Caslab machines.
請加QQ:99515681  郵箱:99515681@qq.com   WX:codehelp 

標簽:

掃一掃在手機打開當前頁
  • 上一篇:代做CSCI 2525、c/c++,Java程序語言代寫
  • 下一篇:代寫COMP3411/9814 Bridge Puzzle編程代做
  • 無相關信息
    昆明生活資訊

    昆明圖文信息
    蝴蝶泉(4A)-大理旅游
    蝴蝶泉(4A)-大理旅游
    油炸竹蟲
    油炸竹蟲
    酸筍煮魚(雞)
    酸筍煮魚(雞)
    竹筒飯
    竹筒飯
    香茅草烤魚
    香茅草烤魚
    檸檬烤魚
    檸檬烤魚
    昆明西山國家級風景名勝區
    昆明西山國家級風景名勝區
    昆明旅游索道攻略
    昆明旅游索道攻略
  • 短信驗證碼平臺 理財 WPS下載

    關于我們 | 打賞支持 | 廣告服務 | 聯系我們 | 網站地圖 | 免責聲明 | 幫助中心 | 友情鏈接 |

    Copyright © 2025 kmw.cc Inc. All Rights Reserved. 昆明網 版權所有
    ICP備06013414號-3 公安備 42010502001045

    爱情鸟第一论坛com高清免费_91免费精品国自产拍在线可以看_亚洲一区精品中文字幕_男人操心女人的视频
    <strike id="bfrlb"></strike><form id="bfrlb"><form id="bfrlb"><nobr id="bfrlb"></nobr></form></form>

        <sub id="bfrlb"><listing id="bfrlb"><menuitem id="bfrlb"></menuitem></listing></sub>

          <form id="bfrlb"></form>

            <form id="bfrlb"></form>

              <address id="bfrlb"></address>

              <address id="bfrlb"></address>
              亚洲国产精品一区二区第四页av| 久久精品一级爱片| 99在线|亚洲一区二区| 男女精品网站| 亚洲深爱激情| 欧美日韩国产123| 日韩亚洲欧美一区| 影音先锋亚洲电影| 国产精品一区久久久| 91久久综合亚洲鲁鲁五月天| 亚洲一级片在线观看| 亚洲一级网站| 国产精品久久久久久久久免费| 亚洲国产另类精品专区| 亚洲激情综合| 久久久久国产一区二区三区四区| 国产伦精品一区二区三区视频黑人| 久久超碰97中文字幕| 欧美日韩国产页| 久久久久久亚洲综合影院红桃| 99精品视频免费全部在线| 亚洲国产精品www| 国产婷婷一区二区| 久久国产乱子精品免费女| 国产精品视频精品| 老司机精品视频网站| 另类国产ts人妖高潮视频| 欧美日韩精品免费在线观看视频| 久久综合中文| 日韩午夜三级在线| 国产精品av免费在线观看| 国产精品v一区二区三区| 国产精品你懂得| 欧美国产精品久久| 免费在线亚洲欧美| 国产精品久久国产精麻豆99网站| 国产精品毛片一区二区三区| 亚洲高清久久| 欧美三日本三级三级在线播放| 欧美中文字幕在线观看| 亚洲黄色免费网站| 欧美精品在线观看| 欧美日韩美女在线| 久久精品人人做人人爽电影蜜月| 亚洲精品日韩综合观看成人91| 国产精品极品美女粉嫩高清在线| 国产精品毛片高清在线完整版| 亚洲韩国青草视频| 精品88久久久久88久久久| 欧美三级乱人伦电影| 欧美韩日一区二区三区| 久久亚洲春色中文字幕| 亚洲午夜久久久久久久久电影网| 一区二区三区久久网| 亚洲高清一二三区| 在线免费观看视频一区| 国内自拍视频一区二区三区| 在线欧美影院| 黄色精品网站| 欧美韩国在线| 亚洲电影免费在线| av成人免费在线观看| 激情伊人五月天久久综合| 国产精品二区在线观看| 国产精品国产三级国产专区53| 欧美日韩成人综合天天影院| 亚洲一区图片| 亚洲精品国精品久久99热一| 欧美成人乱码一区二区三区| 免费一级欧美片在线观看| 欧美在线视频日韩| 欧美一二三区精品| 一本在线高清不卡dvd| 亚洲美女诱惑| 狠狠色香婷婷久久亚洲精品| 日韩一区二区免费高清| 亚洲专区在线视频| 在线视频欧美精品| 在线不卡a资源高清| 欧美日一区二区三区在线观看国产免| 99精品热视频只有精品10| 欧美噜噜久久久xxx| 麻豆国产va免费精品高清在线| 激情综合激情| 国产精品亚洲不卡a| 久久精品观看| 亚洲大胆人体视频| 亚洲欧美中日韩| 1024成人| 日韩视频三区| 狠狠色狠狠色综合日日五| 欧美一区午夜视频在线观看| 亚洲精品日本| 欧美成人精品一区二区| 国产精品免费aⅴ片在线观看| 久久久亚洲欧洲日产国码αv| 亚洲国产精品专区久久| 亚洲欧美一区二区三区久久| 久久香蕉国产线看观看av| 欧美日韩喷水| 欧美在线不卡| 亚洲精品在线二区| 亚洲精品免费在线| 香蕉av777xxx色综合一区| 在线午夜精品自拍| 亚洲电影免费在线| 亚洲精品乱码久久久久久蜜桃麻豆| 在线视频中文亚洲| 欧美1区2区3区| 99国产精品视频免费观看| 日韩视频免费观看高清在线视频| 国产一区二区三区久久悠悠色av| 亚洲电影有码| 亚洲视频日本| 国产精品美女诱惑| 在线精品视频一区二区三四| 欧美高清在线一区| 鲁大师影院一区二区三区| 亚洲综合色视频| 1024成人网色www| 欧美日韩国产综合一区二区| 欧美一区二区三区在线看| 曰本成人黄色| 亚洲大胆人体视频| 麻豆av一区二区三区| 老司机亚洲精品| 欧美裸体一区二区三区| 亚洲精品久久久久中文字幕欢迎你| 亚洲精品资源| 国产情人节一区| 宅男噜噜噜66一区二区66| 亚洲欧美日韩国产精品| 国产精品乱子久久久久| 黄色工厂这里只有精品| 亚洲视频免费看| 麻豆91精品91久久久的内涵| 国产亚洲人成网站在线观看| 99视频精品| 欧美美女bb生活片| 一区二区在线观看视频在线观看| 亚洲欧美日韩精品久久久久| 亚洲第一区中文99精品| 久久gogo国模啪啪人体图| 国产精品美女一区二区在线观看| 国产欧美在线观看一区| 久久色在线观看| 亚洲精品网站在线播放gif| 欧美午夜激情在线| 久久免费少妇高潮久久精品99| 亚洲人体一区| 香蕉av777xxx色综合一区| 在线播放中文一区| 一本久久a久久精品亚洲| 国产欧美日韩免费看aⅴ视频| 欧美黄色一区二区| 欧美日韩亚洲系列| 亚洲欧美在线观看| 亚洲国产精品久久久久秋霞蜜臀| 午夜国产精品视频| 国产女同一区二区| 亚洲精品偷拍| 久久久精彩视频| 国模吧视频一区| 欧美日韩一区在线观看| 亚洲欧美怡红院| 免费在线看一区| 亚洲欧美日产图| 国产一区二区高清| 亚洲高清一区二区三区| 狠狠88综合久久久久综合网| 国产亚洲精品久久久| 亚洲午夜高清视频| 欧美日韩成人精品| 亚洲精品永久免费精品| 在线电影国产精品| 久久福利精品| 国产亚洲欧美另类一区二区三区| 国产欧美一区二区精品性| 亚洲尤物在线| 欧美国产日韩一区| 韩国三级电影一区二区| 亚洲欧美综合精品久久成人| 欧美久久电影| 99国产一区二区三精品乱码| 亚洲激情视频在线| 亚洲久色影视| 久久综合精品一区| 欧美久久婷婷综合色| 老司机成人网| 欧美黑人在线播放| 国产伦精品一区| 一区二区三区视频在线播放| 91久久久久久久久| 欧美系列精品| 欧美日韩一区二区三区在线观看免| 亚洲综合另类| 国产日韩欧美一区| 最新亚洲电影| 欧美国产欧美亚洲国产日韩mv天天看完整| 亚洲国产欧美一区二区三区久久|