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

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

時(shí)間:2024-03-13  來源:  作者: 我要糾錯(cuò)



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)簽:

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

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

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

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

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

    男女日批视频在线观看| 一女二男3p波多野结衣| 午夜视频在线观| 欧美极品欧美精品欧美| 欧美性受xxxx黒人xyx性爽| 日韩精品一区二区三区久久| 中国老女人av| 婷婷激情四射五月天| 日本国产在线播放| 一级黄色免费在线观看| 午夜免费精品视频| 日韩网站在线免费观看| 香蕉精品视频在线| 九九热在线免费| 99视频在线免费播放| 天堂а√在线中文在线| 亚洲第一色av| 色戒在线免费观看| 免费看a级黄色片| 欧美 日韩 国产 高清| 草草草视频在线观看| 国产精欧美一区二区三区白种人| 欧美精品第三页| 亚洲 欧美 日韩 国产综合 在线| 日韩中文字幕亚洲精品欧美| xxxx在线免费观看| www亚洲成人| 久久久精品三级| 女性隐私黄www网站视频| 国产精品专区在线| 波多野结衣 作品| 亚洲av综合色区| 国产大尺度在线观看| 1314成人网| 永久免费黄色片| 午夜免费福利网站| 国产一级片自拍| jizz18女人| jizz18女人| 天堂在线一区二区三区| 亚洲涩涩在线观看| 天天看片天天操| 91小视频在线播放| 欧美在线a视频| 美国av在线播放| 777久久精品一区二区三区无码 | 欧美中日韩在线| www.色.com| 影音先锋成人资源网站| 久久av秘一区二区三区| 久久观看最新视频| 日本aa在线观看| 男女啪啪免费视频网站| 国产亚洲天堂网| www.天天射.com| 久久久精品高清| 欧美h视频在线观看| 日韩视频一二三| 精品国产av无码一区二区三区| 精品视频在线观看一区| 国产精品一区二区免费在线观看| 日韩中文字幕三区| 日本www.色| 国产一级片自拍| 日本a级片在线观看| 丰满的少妇愉情hd高清果冻传媒| 久久综合色视频| 韩国视频一区二区三区| 91香蕉视频免费看| 欧美无砖专区免费| 免费男同深夜夜行网站| 国产亚洲视频一区| 欧美日韩不卡在线视频| caopor在线视频| 手机在线免费毛片| 黄色片网址在线观看| 成人性做爰aaa片免费看不忠| 成年网站免费在线观看| japanese在线播放| 国产成人精品视频免费看| 亚洲娇小娇小娇小| 日本精品福利视频| 青青在线免费观看视频| 日本一区二区免费高清视频| 5月婷婷6月丁香| 欧美日韩一区二区三区69堂| 成人av在线播放观看| 亚洲免费av一区二区三区| 黄色一级片av| 在线视频日韩一区| 久久www视频| 免费黄色一级网站| 99在线观看视频免费| 69久久久久久| xxxx18hd亚洲hd捆绑| 五月花丁香婷婷| 欧美一区二区中文字幕| 久久久久久久久久久久久久久国产 | 911福利视频| www.av毛片| 91精品999| 春日野结衣av| 久久最新免费视频| 97公开免费视频| 国产 欧美 日韩 一区| 一级在线免费视频| 91九色丨porny丨国产jk| 天堂中文av在线| 激情网站五月天| 国产情侣第一页| 亚洲理论中文字幕| 国产成人手机视频| 亚洲人成无码网站久久99热国产 | 超碰在线人人爱| 成人免费视频91| eeuss中文| 亚洲综合色在线观看| 日日鲁鲁鲁夜夜爽爽狠狠视频97| 欧美性受黑人性爽| 日本xxxx黄色| 美女福利视频在线| 可以看毛片的网址| 超薄肉色丝袜足j调教99| 亚洲精品手机在线观看| 欧美成人黑人猛交| 日韩欧美视频网站| 免费人成在线观看视频播放| 艳母动漫在线观看| 91精品视频国产| 三上悠亚在线一区| 青青草精品视频在线观看| 亚洲 欧美 日韩 国产综合 在线| 男人天堂网站在线| 无码人妻精品一区二区三区99v| 亚洲免费av一区| 中国黄色片免费看| 日韩一级片播放| 男人舔女人下面高潮视频| 日韩欧美一区三区| 日韩国产欧美亚洲| 免费一级特黄特色毛片久久看| 日韩欧美一级在线| 超级碰在线观看| 一二三在线视频| 欧美 日韩 国产精品| 最近免费观看高清韩国日本大全| 在线免费黄色小视频| 国产999免费视频| 日本成人性视频| 先锋影音男人资源| 国产一级片91| 成人av在线不卡| 麻豆映画在线观看| 精品一区二区三区毛片| 黄色特一级视频| 亚洲 欧美 综合 另类 中字| 国产精品久久久久9999爆乳| 福利视频免费在线观看| 国产精彩视频一区二区| 日韩av高清在线看片| 欧美一区二区激情| 日韩视频免费播放| 日韩精品视频一区二区在线观看| 国产在线青青草| 日本在线视频www| 黄色a级片免费| 日本在线一二三区| 一级片黄色免费| 真人做人试看60分钟免费| 男人添女荫道口女人有什么感觉| 日本xxxxxxxxxx75| 免费午夜视频在线观看| 三级a三级三级三级a十八发禁止| 爱豆国产剧免费观看大全剧苏畅| 亚洲AV无码成人精品一区| 97碰在线视频| 波多野结衣家庭教师视频| 91最新在线观看| 咪咪色在线视频| 日本中文字幕亚洲| 免费观看成人在线视频| 一区二区三区四区毛片| 美女av免费观看| 久草资源站在线观看| 欧美成人福利在线观看| 浴室偷拍美女洗澡456在线| 欧美 日韩 国产 高清| 亚洲国产精品三区| 福利在线小视频| 妺妺窝人体色www在线小说| 日本中文字幕观看| 国产色一区二区三区| 日本999视频| 妞干网这里只有精品| 国产中文字幕在线免费观看| 欧美三级午夜理伦三级富婆| 欧美做受777cos| 精品www久久久久奶水| 亚洲少妇第一页| 99久久99久久精品|