美女扒开腿免费视频_蜜桃传媒一区二区亚洲av_先锋影音av在线_少妇一级淫片免费放播放_日本泡妞xxxx免费视频软件_一色道久久88加勒比一_熟女少妇一区二区三区_老司机免费视频_潘金莲一级黄色片_精品国产精品国产精品_黑人巨大猛交丰满少妇

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

    美女扒开腿免费视频_蜜桃传媒一区二区亚洲av_先锋影音av在线_少妇一级淫片免费放播放_日本泡妞xxxx免费视频软件_一色道久久88加勒比一_熟女少妇一区二区三区_老司机免费视频_潘金莲一级黄色片_精品国产精品国产精品_黑人巨大猛交丰满少妇
    免费观看黄网站| 韩国三级在线看| 调教驯服丰满美艳麻麻在线视频| 久久久久久久毛片| 美女流白浆视频| 2019男人天堂| 99re这里只有| 老妇女50岁三级| www久久久久久久| 国产一级二级在线观看| 伦伦影院午夜理论片| 成人一级片免费看| 亚洲午夜久久久久久久国产| 你懂的在线观看网站| √天堂中文官网8在线| 欧美丰满美乳xxⅹ高潮www| 丝袜熟女一区二区三区| 在线看黄色的网站| 色哟哟无码精品一区二区三区| 九九九视频在线观看| 无码一区二区三区在线| 免费成人深夜夜行p站| 特级特黄刘亦菲aaa级| 亚洲女人毛茸茸高潮| 国产又粗又长又黄的视频| 综合 欧美 亚洲日本| 国产不卡在线观看视频| 熟女av一区二区| wwwxxx色| 精品人妻一区二区三区香蕉| 午夜男人的天堂| 在线免费观看污视频| 黑人巨大精品欧美| 欧美人与性囗牲恔配| 日本一二三不卡视频| 色欲一区二区三区精品a片| 97免费公开视频| 国产毛片毛片毛片毛片毛片毛片| 久久精品一区二区免费播放| av在线播放中文字幕| 精品一区在线观看视频| 久久精品aⅴ无码中文字字幕重口| 老司机免费视频| 欧美激情视频二区| 日本黄色大片在线观看| 成人免费毛片糖心| 日本中文在线视频| 在线免费观看污视频| 国产乱子轮xxx农村| 日本黄色免费观看| 国产jizz18女人高潮| 久久久国产精品无码| 国产精品国产三级国产传播| 欧美 日本 国产| 91狠狠综合久久久| 亚洲av无码国产精品久久| 51精品免费网站| 成人午夜福利一区二区| 国产a级片视频| 粉嫩精品久久99综合一区| 稀缺小u女呦精品呦| 久久精品国产亚洲AV成人婷婷| 日本黄色录像片| 原创真实夫妻啪啪av| 国产一二三av| 精品无码国产污污污免费网站 | 性折磨bdsm欧美激情另类| 亚洲区自拍偷拍| 欧美xxxxx精品| 台湾佬美性中文| 五月婷婷综合激情网| 久久成人激情视频| 9.1在线观看免费| 日本xxxx免费| 国产乱国产乱老熟300| 美国美女黄色片| 精品少妇一区二区三区免费观| 成年人小视频在线观看| 精品国产aⅴ一区二区三区东京热| 欧美一级片在线视频| 久久午夜精品视频| 国产人妻大战黑人20p| 插吧插吧综合网| av av在线| aaaaaav| 亚洲国产综合视频| 久久免费精品国产| 欧美熟妇精品黑人巨大一二三区| 亚洲精品乱码久久| 欧美做受喷浆在线观看| 中文字幕丰满孑伦无码专区| 亚洲a v网站| 日韩av片在线| 免费成人深夜天涯网站| 亚洲精品成人av久久| av免费播放网站| 国产精品久久久久久久精| 999精品视频在线观看播放| 国产精品国产三级国产传播| 欧美体内she精高潮| 国产人妖在线观看| 久久久久亚洲av无码专区桃色| 美国黑人一级大黄| 国产精品丝袜一区二区| 日本性生活一级片| 成人无码av片在线观看| 在线免费日韩av| 91人妻一区二区| 91网站免费入口| 国产尤物在线播放| 欧类av怡春院| 亚洲ⅴ国产v天堂a无码二区| caoporn91| 性高潮久久久久久久| 无套白嫩进入乌克兰美女| 亚洲狠狠婷婷综合久久久久图片| 大吊一区二区三区| 中文字幕乱视频| 很污很黄的网站| 中文成人无字幕乱码精品区| 日韩一卡二卡在线观看| 给我免费观看片在线电影的| 午夜剧场免费在线观看| 久久久无码人妻精品一区| 超碰人人人人人人人| 中文成人无字幕乱码精品区| 久久r这里只有精品| 国产高清一区二区三区四区| 亚洲高清无码久久| 午夜爽爽爽男女免费观看| 成人国产精品久久久网站| 怡红院一区二区| 久久久久99精品成人片试看| 国内精品卡一卡二卡三| 国产ts丝袜人妖系列视频 | 熟女俱乐部一区二区视频在线| 手机免费观看av| 亚洲制服丝袜在线播放| 麻豆精品一区二区三区视频| 免费看裸体网站| 久久婷婷五月综合| 日韩 中文字幕| 亚洲精品国产成人av在线| 熟妇无码乱子成人精品| 特级片在线观看| 国产精品九九九九九九| 成年人av电影| 精品人妻一区二区乱码| 国产极品国产极品| 午夜三级在线观看| 91av手机在线| 国产这里有精品| 国产视频精品视频| 亚洲久久久久久| 熟女丰满老熟女熟妇| 黄色正能量网站| 国产中年熟女高潮大集合| 在线免费看视频| 少妇视频一区二区| 中文字幕亚洲欧美日韩| 美女日批在线观看| 亚洲色图欧美日韩| 女~淫辱の触手3d动漫| av男人的天堂av| av在线免费播放网址| 唐朝av高清盛宴| 国产精品一区二区人妻喷水| 亚洲精品在线视频免费观看| 中日韩精品一区二区三区| 欧美老女人性生活视频| 国产稀缺精品盗摄盗拍| 亚洲色图欧美另类| 手机毛片在线观看| 久久国产高清视频| 国产xxxxxxxxx| 女人裸体性做爰全过| 潘金莲一级淫片aaaaa| 亚洲av无码一区二区三区观看 | 丁香激情五月少妇| 免费观看黄网站| 男人操女人的视频网站| 26uuu国产| www在线观看免费视频| tube国产麻豆| 亚洲精品中文字幕在线播放| 中文字幕乱码av| 黄色短视频在线观看| 亚洲色图综合区| 美国美女黄色片| 国产人成视频在线观看| jizz日本在线播放| 亚洲av片不卡无码久久| av黄色免费在线观看| 97伦伦午夜电影理伦片| 欧美黑人性猛交xxx| 国产精品天天干| 好吊日免费视频| 99久久综合网| 玖玖爱这里只有精品| 国产毛片欧美毛片久久久|