亚洲十八**毛片_亚洲综合影院_五月天精品一区二区三区_久久久噜噜噜久久中文字幕色伊伊 _欧美岛国在线观看_久久国产精品毛片_欧美va在线观看_成人黄网大全在线观看_日韩精品一区二区三区中文_亚洲一二三四区不卡

代寫CISC221、Java/Python設(shè)計編程代做

時間: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 

標(biāo)簽:

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

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

    關(guān)于我們 | 打賞支持 | 廣告服務(wù) | 聯(lián)系我們 | 網(wǎng)站地圖 | 免責(zé)聲明 | 幫助中心 | 友情鏈接 |

    Copyright © 2025 kmw.cc Inc. All Rights Reserved. 昆明網(wǎng) 版權(quán)所有
    ICP備06013414號-3 公安備 42010502001045

    首页亚洲欧美制服丝腿| www.欧美日韩| 亚洲一级二级三级| 精品国产百合女同互慰| 中文字幕乱码中文乱码51精品| 欧美一区二区三区婷婷| 久久视频精品| 久久久精品人体av艺术| 欧美性xxxxx极品少妇| 国产对白国语对白| 天天躁日日躁狠狠躁欧美| 99久久精品国产毛片| 色婷婷久久综合| 91久久夜色精品国产按摩| 天天操天天色综合| 亚州黄色一级| 国产91一区| 岛国精品在线播放| 欧美性猛交xxxxxx富婆| 91精品产国品一二三产区| 偷拍一区二区| 欧美激情一区二区三区| 俄罗斯xxxx性全过程| 亚洲成人偷拍| 亚洲国产高清不卡| 美国成人av| 午夜久久免费观看| 午夜电影久久久| 精品视频在线一区二区| 中文在线播放一区二区| 成a人片国产精品| 福利视频在线看| 99国产精品久久久久久久| 欧美视频精品在线| 电影一区二区三| 粉嫩av亚洲一区二区图片| 精品区一区二区| 日韩在线观看电影完整版高清免费悬疑悬疑 | 91蜜桃免费观看视频| 天堂影视av| 亚洲一级毛片| 日韩精品资源二区在线| 蜜桃视频欧美| 欧美人妇做爰xxxⅹ性高电影 | 日本午夜精品久久久| 亚洲黄色免费电影| 69久成人做爰电影| 亚洲欧美怡红院| 国产精品亚洲d| 国产黑丝在线一区二区三区| 毛片在线播放网址| 国产麻豆视频一区| 97超碰人人在线| 成人免费高清视频| 成人一级福利| 亚洲欧洲另类国产综合| 国产三级伦理在线| 一区二区三区中文字幕电影| 国产成人亚洲一区二区三区| 亚洲三级免费电影| 视频免费一区二区| 欧美精品乱码久久久久久按摩| 成人vr资源| 天天操夜夜操天天射| 老司机午夜精品视频| 日本美女高清在线观看免费| 久久精品国产精品青草| 激情国产在线| 一区二区三区美女视频| 色喇叭免费久久综合网| 精品国产精品一区二区夜夜嗨| 综合激情在线| 香蕉97视频观看在线观看| 91在线精品秘密一区二区| 性欧美video另类hd尤物| 欧美日韩国产美| 午夜精品av| 在线黄色网页| 欧美色videos| 国产精品久久久亚洲一区| 人成在线免费视频| 日本一区二区动态图| 黄色欧美在线| 羞羞网站在线观看入口免费| 国产aⅴ综合色| 日韩免费电影在线观看| 2022国产精品视频| 高清欧美性猛交xxxx黑人猛| 最新97超碰在线| 日韩三级高清在线| 亚洲乱码久久| 888av在线视频| 欧美日韩大陆一区二区| 亚洲精品少妇| 成人日韩精品| 舔着乳尖日韩一区| 奇米色一区二区| 国产精品丝袜在线播放| 国产igao激情在线入口| 国产精品理伦片| 欧美资源在线| 在线欧美激情| 香蕉视频在线看| 日韩一区二区精品葵司在线| 99在线精品观看| 自拍自偷一区二区三区| 性爱视频在线播放| 欧美一卡2卡3卡4卡| 国产精品18久久久久久久久| 成人香蕉社区| 麻豆网站在线免费观看| 色素色在线综合| 91丨porny丨中文| 午夜欧美精品| 澳门精品久久国产| 综合久久2019| 男人天堂午夜在线| 在线观看av一区二区| 91麻豆福利精品推荐| 欧美专区18| 91欧美日韩| 欧美三级午夜理伦三级小说| 精品国产丝袜高跟鞋 | 亚洲欧美激情诱惑| 久久不见久久见免费视频7| 黄网在线免费看| 超碰免费97在线观看| 麻豆美女网站| 欧美中文字幕一二三区视频| 久久一二三国产| 国产一区久久久| 久久免费高清| 激情综合亚洲| 欧美成免费一区二区视频| 亚洲国产最新| 免费一级欧美在线大片| 欧美亚洲二区| 国产亚洲人成a在线v网站| 少妇在线看www| www日韩tube| 亚洲精品男人| 久艹在线视频| 在线观看入口黄最新永久免费国产 | 久久亚洲资源中文字| 色黄视频在线观看| 丰满的护士2在线观看高清| 欧洲一级在线观看| 久久天堂电影| av电影在线观看一区二区三区| 蜜芽tv福利在线视频| 日本免费一区二区三区最新| 可以在线观看的黄色| 亚洲成人男人天堂| 在线视频三区| 免费黄色在线网站| 国产三区在线观看| 中文在线观看免费| h片在线观看网站| 欧美精选视频一区二区| 精品一区二区三区亚洲| 免费成人结看片| 亚洲精品一区二区在线看| 久久综合社区| 精品99视频| 蜜桃91丨九色丨蝌蚪91桃色| 久久亚洲电影| 99亚洲伊人久久精品影院红桃| 亚洲在线电影| 国产成人精品免费网站| 欧美激情中文不卡| 一本高清dvd不卡在线观看| 一区二区成人在线观看| 在线观看网站黄不卡| 波多野结衣中文字幕在线| 黄色片网站在线观看| 国产精品蜜月aⅴ在线| 九热爱视频精品视频| 视频一区欧美日韩| jlzzjlzz国产精品久久| 亚洲另类在线一区| 欧美在线一区二区三区| wwwav91| av网站在线免费| 国产+成+人+亚洲欧洲在线 | 91福利免费| 免费成人直播| 综合五月婷婷| 久久97超碰国产精品超碰| 日韩欧美成人免费视频| 成人狠狠色综合| www在线观看播放免费视频日本| 精品一区二区三区在线观看视频 | 成人黄色免费短视频| 国产99精品| 国内精品久久久久影院色| 亚洲激情欧美激情| 免费观看羞羞视频网站| 四虎成人精品一区二区免费网站| 视频一区视频二区中文字幕| 好吊成人免视频|