日本欧洲视频一区_国模极品一区二区三区_国产熟女一区二区三区五月婷_亚洲AV成人精品日韩一区18p

代寫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)-大理旅游
    油炸竹蟲
    油炸竹蟲
    酸筍煮魚(雞)
    酸筍煮魚(雞)
    竹筒飯
    竹筒飯
    香茅草烤魚
    香茅草烤魚
    檸檬烤魚
    檸檬烤魚
    昆明西山國家級風景名勝區
    昆明西山國家級風景名勝區
    昆明旅游索道攻略
    昆明旅游索道攻略
  • NBA直播 短信驗證碼平臺 幣安官網下載 歐冠直播 WPS下載

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

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

    日本欧洲视频一区_国模极品一区二区三区_国产熟女一区二区三区五月婷_亚洲AV成人精品日韩一区18p

              国产色婷婷国产综合在线理论片a| 亚洲先锋成人| 欧美影院成人| 欧美亚男人的天堂| 一区二区久久久久| 国产精品午夜春色av| 国产精品免费在线| 国产精品国产三级国产专播精品人 | 国内外成人免费激情在线视频网站| 欧美激情综合| 国产精品成人v| 国产欧美大片| 樱桃视频在线观看一区| 在线观看精品| 夜夜嗨一区二区| 午夜精品视频在线观看| 久久网站免费| 欧美日韩爆操| 国产欧美一区二区三区在线老狼| 国产日韩欧美不卡| 狠狠色丁香久久婷婷综合丁香| 亚洲欧洲日韩在线| 国产欧美日韩亚洲精品| 狠狠狠色丁香婷婷综合久久五月 | 欧美福利一区| 亚洲精品国产品国语在线app| 亚洲视频观看| 欧美 日韩 国产在线| 欧美日韩成人综合| 亚洲三级观看| 欧美午夜欧美| 国产亚洲欧美日韩一区二区| 性色av一区二区三区| 欧美护士18xxxxhd| 一区二区三区四区五区视频| 欧美国产精品va在线观看| 亚洲福利视频一区| 欧美午夜精品久久久久久超碰| 99综合在线| 国产亚洲一二三区| 欧美韩日精品| 久久久久国产一区二区三区| 亚洲成人原创 | 一区二区高清视频在线观看| 欧美日韩综合在线| 欧美在线视频日韩| 一本一本久久a久久精品牛牛影视| 国产精品永久免费视频| 嫩草伊人久久精品少妇av杨幂| av不卡在线看| 亚洲高清在线观看| 国产精品一区二区三区久久| 欧美日本中文字幕| 中文亚洲欧美| 欧美日韩精品三区| 欧美一级片一区| 国内精品美女在线观看| 欧美日韩精品在线播放| 男人插女人欧美| 欧美日韩成人在线| 欧美午夜欧美| 国产一区三区三区| 欧美黑人多人双交| 欧美中文在线观看国产| 亚洲欧洲精品一区二区精品久久久| 国产精品普通话对白| 亚洲伊人一本大道中文字幕| 欧美电影免费观看网站| 久久视频一区| 一本色道久久综合亚洲91| 欧美巨乳在线观看| 欧美午夜久久| 国产精品分类| 国产视频一区二区三区在线观看| 伊人久久久大香线蕉综合直播| 国产精品成人一区二区| 在线观看视频一区二区欧美日韩 | 久久久久一区二区三区四区| 伊人久久综合97精品| 国产日本欧美一区二区三区| 国产精品国内视频| 国产在线欧美日韩| 激情成人中文字幕| 在线精品国精品国产尤物884a| 国产精品一区二区久久精品| 狠狠久久亚洲欧美| 一区二区日韩伦理片| 亚洲一区二区三区激情| 在线观看欧美日韩国产| 亚洲女性裸体视频| 欧美亚洲网站| 久久国产精品久久国产精品| 久久国产日韩欧美| 狠狠色综合日日| 亚洲乱码视频| 国产人成一区二区三区影院| 亚洲电影免费在线观看| 国产一区二区观看| 欧美另类人妖| 欧美精品成人91久久久久久久| 一本一本久久a久久精品综合麻豆 一本一本久久a久久精品牛牛影视 | 欧美日韩卡一卡二| 国产精品视频网站| 免费亚洲一区| 国产亚洲精久久久久久| 狠狠色狠色综合曰曰| 亚洲成人自拍视频| 亚洲午夜久久久| 国产综合久久久久影院| 欧美一级黄色网| 国产农村妇女毛片精品久久麻豆 | 亚洲九九精品| 欧美吻胸吃奶大尺度电影| 亚洲欧美国产77777| 亚洲精品乱码视频| 欧美日韩精品一二三区| 日韩视频在线观看| 毛片av中文字幕一区二区| 国产主播精品| 亚洲国产精品久久久久婷婷老年 | 国产性天天综合网| 国产一区二区三区在线免费观看 | 1024日韩| 在线中文字幕日韩| 国产精品一区在线观看| 欧美日韩精品免费观看视频| 性欧美video另类hd性玩具| 亚洲在线视频观看| 黄色精品一区二区| 一区在线观看视频| 亚洲精品久久久久久久久久久| 国产精品二区影院| 欧美少妇一区| 在线日韩电影| 欧美丝袜一区二区三区| 亚洲区一区二区三区| 久久综合国产精品| 国产精品老牛| 欧美wwwwww| 国产精品久久久久久久久动漫| 亚洲一二三级电影| 国产欧美一区二区三区在线看蜜臀| 亚洲香蕉网站| 伊人男人综合视频网| 国产精品v日韩精品| 亚洲一二三区精品| 亚洲福利视频网| 欧美伊人久久大香线蕉综合69| 永久免费视频成人| 欧美日韩一区二区三区四区在线观看| 亚洲欧洲三级| 奶水喷射视频一区| 亚洲影音一区| 一本色道久久99精品综合| 国产欧美一区二区精品婷婷| 欧美日韩日本视频| 男人插女人欧美| 久久日韩粉嫩一区二区三区| 伊人久久久大香线蕉综合直播 | 亚洲视频图片小说| 欧美日韩国产限制| 欧美一级大片在线免费观看| 男女av一区三区二区色多| 欧美超级免费视 在线| 亚洲日本aⅴ片在线观看香蕉| 欧美大片一区| 欧美与欧洲交xxxx免费观看| 亚洲欧美999| 欧美aaa级| 国产精品99久久久久久人 | 免费一级欧美在线大片| 国产精品久久久一区麻豆最新章节| 亚洲高清免费| 久久中文精品| 欧美另类变人与禽xxxxx| 亚洲一二三区精品| 久久综合九色综合久99| 亚洲欧美日本国产专区一区| 久久久久久久久久久久久久一区| 欧美1级日本1级| 国产欧美精品一区aⅴ影院| 亚洲伦理精品| 国产精品久久波多野结衣| 亚洲精品免费看| 欧美日韩国产一级片| 亚洲精选91| 欧美日韩另类在线| 99精品国产在热久久婷婷| 欧美精品在线视频观看| 亚洲精品视频啊美女在线直播| 久久久噜噜噜久久中文字幕色伊伊| 国产午夜精品美女视频明星a级| 亚洲视频综合在线| 国产一区二区欧美| 久久综合一区| 亚洲精品美女免费| 国产精品久久久久久久第一福利 | 亚洲人成7777| 国产精品红桃| 欧美日韩成人|