久久久久久精品无码人妻_青春草无码精品视频在线观_无码精品国产VA在线观看_国产色无码专区在线观看

代寫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

    久久久久久精品无码人妻_青春草无码精品视频在线观_无码精品国产VA在线观看_国产色无码专区在线观看

    国产成人三级视频| 嫩草av久久伊人妇女超级a| 91黄色在线看| 激情视频免费网站| 人妻有码中文字幕| 欧美亚洲黄色片| 中文字幕第三区| 在线观看的毛片| 黄色片一级视频| 国产一区二区网| 日韩网站在线免费观看| 国产91porn| 国产精品12p| 毛毛毛毛毛毛毛片123| 国产成人黄色网址| 亚洲黄色a v| 福利在线一区二区三区| 成人在线看视频| 欧美 日韩精品| 激情六月丁香婷婷| 自慰无码一区二区三区| 国内精品在线观看视频| 成人免费播放器| 国产69精品久久久久999小说| 欧美一区二区三区综合| 中国一级黄色录像| www.69av| 日韩精品在线视频免费观看| 国产女主播自拍| 免费无码毛片一区二三区| 国产男女免费视频| 久久久一本二本三本| 亚欧无线一线二线三线区别| 国产精品视频一区二区三区四区五区| 亚洲 欧美 日韩 国产综合 在线| av女优在线播放| 国产av麻豆mag剧集| aaaaaa亚洲| 午夜两性免费视频| 色18美女社区| 日本高清视频免费在线观看| 美女扒开大腿让男人桶| 国产精品一区二区免费在线观看| 欧美v在线观看| 国产91色在线观看| 国内av免费观看| 免费在线黄网站| aaa毛片在线观看| 色播五月综合网| 一本—道久久a久久精品蜜桃| 91精品国产毛片武则天| 无码专区aaaaaa免费视频| 国产a视频免费观看| 午夜国产一区二区三区| 日本一级淫片演员| 免费毛片网站在线观看| 久久久久久三级| 国产福利片一区二区| 男人天堂a在线| 动漫av免费观看| 色偷偷中文字幕| 337p粉嫩大胆噜噜噜鲁| 一级做a免费视频| 日韩小视频网站| 欧美午夜aaaaaa免费视频| 妞干网这里只有精品| 久久久免费视频网站| 成人不卡免费视频| 日韩网站在线免费观看| 免费看污污网站| 免费观看亚洲视频| 北条麻妃av高潮尖叫在线观看| 国产成年人在线观看| 女人和拘做爰正片视频| 亚洲成人手机在线观看| 欧美大片在线播放| 天天色天天综合网| 可以看毛片的网址| 天天看片天天操| 狠狠干 狠狠操| 日本黄色a视频| 日本xxxxxxx免费视频| 成人性做爰片免费视频| 国产熟人av一二三区| 中文字幕第一页亚洲| 欧美午夜aaaaaa免费视频| 成人在线观看你懂的| 欧美日韩理论片| 欧美亚洲日本在线观看| 喜爱夜蒲2在线| 日本免费色视频| www黄色日本| 欧美日韩dvd| 九九九九九国产| 久久久久久久久久久福利| 草草草视频在线观看| www,av在线| 超碰在线播放91| www.玖玖玖| 久久综合亚洲精品| theporn国产精品| 国产av人人夜夜澡人人爽| 少妇av一区二区三区无码| 91精品一区二区三区四区| 福利片一区二区三区| 亚洲乱码中文字幕久久孕妇黑人| 国产一区 在线播放| www.偷拍.com| 99日在线视频| 自拍偷拍21p| 国产精品人人妻人人爽人人牛| 黄色一级在线视频| 久草视频这里只有精品| 中文字幕第50页| 国产精品亚洲天堂| 国产精品亚洲天堂| 天天操夜夜操很很操| 中文字幕在线观看日| 国产日韩欧美久久| 无码人妻精品一区二区三区66| 欧美日韩在线中文| 久草资源站在线观看| 日本免费黄视频| 色欲色香天天天综合网www| 霍思燕三级露全乳照| 美女av免费观看| 国产精品视频网站在线观看| 欧洲美女亚洲激情| 亚洲一二三av| 三年中国中文在线观看免费播放| 手机精品视频在线| 天堂网成人在线| 97超碰免费观看| 久久免费一级片| 99国产精品白浆在线观看免费| 欧美一级中文字幕| 免费人成在线观看视频播放| 九九爱精品视频| 蜜臀av午夜一区二区三区| 国产免费999| 日本网站在线看| 99视频精品全部免费看| 久久综合亚洲精品| 国产免费观看高清视频| 精品久久久久久久免费人妻| 人人爽人人av| 色婷婷一区二区三区在线观看| 99久re热视频精品98| 欧美a级免费视频| 怡红院av亚洲一区二区三区h| heyzo国产| 天天综合网久久| 欧美精品一区二区性色a+v| 青青青青草视频| 一路向西2在线观看| 中文字幕55页| 九九久久九九久久| 久久久免费视频网站| av免费一区二区| 超碰超碰超碰超碰超碰| 又粗又黑又大的吊av| 奇米影视四色在线| 超碰免费在线公开| 男人添女荫道口女人有什么感觉| 日韩中文字幕在线视频观看| 久久撸在线视频| 2022中文字幕| 玩弄japan白嫩少妇hd| 懂色av一区二区三区四区五区| 亚洲美免无码中文字幕在线| 亚洲天堂2018av| 欧妇女乱妇女乱视频| 波多野结衣天堂| 日韩精品一区二区在线视频| 一本久道综合色婷婷五月| 久久久一二三四| 精品免费国产一区二区| 日本三级中文字幕在线观看| 大香煮伊手机一区| 一级黄色免费在线观看| 韩国一区二区av| 日本aa在线观看| 亚洲精品怡红院| 国产性生活免费视频| 午夜免费高清视频| av女优在线播放| 国产精品久久久久久久av福利| 欧美精品自拍视频| 26uuu成人| 色乱码一区二区三区在线| 免费一级特黄特色毛片久久看| 中文字幕线观看| av无码精品一区二区三区| 国产91视频一区| 久久久久xxxx| 精品少妇无遮挡毛片| 国产免费黄色小视频| 懂色av粉嫩av蜜臀av| 亚洲欧美视频二区| 日本一区二区黄色|