狠狠综合久久久久综合网址-a毛片网站-欧美啊v在线观看-中文字幕久久熟女人妻av免费-无码av一区二区三区不卡-亚洲综合av色婷婷五月蜜臀-夜夜操天天摸-a级在线免费观看-三上悠亚91-国产丰满乱子伦无码专区-视频一区中文字幕-黑人大战欲求不满人妻-精品亚洲国产成人蜜臀av-男人你懂得-97超碰人人爽-五月丁香六月综合缴情在线

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

    狠狠综合久久久久综合网址-a毛片网站-欧美啊v在线观看-中文字幕久久熟女人妻av免费-无码av一区二区三区不卡-亚洲综合av色婷婷五月蜜臀-夜夜操天天摸-a级在线免费观看-三上悠亚91-国产丰满乱子伦无码专区-视频一区中文字幕-黑人大战欲求不满人妻-精品亚洲国产成人蜜臀av-男人你懂得-97超碰人人爽-五月丁香六月综合缴情在线
  • <dl id="akume"></dl>
  • <noscript id="akume"><object id="akume"></object></noscript>
  • <nav id="akume"><dl id="akume"></dl></nav>
  • <rt id="akume"></rt>
    <dl id="akume"><acronym id="akume"></acronym></dl><dl id="akume"><xmp id="akume"></xmp></dl>
    免费无码毛片一区二三区| 蜜桃传媒一区二区三区| 人人妻人人澡人人爽欧美一区| 18禁裸男晨勃露j毛免费观看| 91最新在线观看| www.xxx麻豆| 香蕉视频在线网址| 国产高潮免费视频| 亚洲中文字幕无码不卡电影| 亚洲自拍偷拍一区二区三区| 久久久精品麻豆| 国产视频一区二区三区在线播放| 国产一区二区三区乱码| 欧洲美女和动交zoz0z| 日韩欧美在线免费观看视频| 无码熟妇人妻av在线电影| 国产欧美自拍视频| 欧美国产在线一区| 亚洲天堂2018av| 欧美日韩亚洲自拍| 欧美成人免费高清视频| 999在线观看视频| 人妻少妇精品无码专区二区| 青青草综合在线| 成人一级生活片| 国产精品日韩三级| 免费超爽大片黄| www.av毛片| 日本a视频在线观看| 午夜免费福利小电影| 好吊妞无缓冲视频观看| 日韩中字在线观看| 日韩av综合在线观看| 国产视频九色蝌蚪| 国产激情在线观看视频| 久久撸在线视频| 日日夜夜精品视频免费观看 | www.av91| 久久视频这里有精品| 91九色在线观看视频| 欧美 日本 亚洲| 夫妻免费无码v看片| www.超碰com| 手机成人av在线| 99久久激情视频| 国产又黄又猛视频| 自拍偷拍21p| 肉大捧一出免费观看网站在线播放| 国产a级黄色大片| 中文字幕无码精品亚洲35| 999精品网站| 四虎免费在线观看视频| 欧美成人高潮一二区在线看| 成人观看免费完整观看| 久久精品国产99久久99久久久| 1314成人网| 男女激情免费视频| www.亚洲高清| 免费av观看网址| 红桃视频 国产| 黄色大片在线免费看| www.99r| 啊啊啊一区二区| 波多野结衣免费观看| 免费看一级大黄情大片| 人人爽人人爽av| 国产成人在线免费看| 久久精品一卡二卡| avove在线观看| 久久久久久久久久久视频| 亚洲一二三不卡| 男人日女人逼逼| 99精品视频免费版的特色功能| 精品这里只有精品| 国产日韩欧美大片| 中日韩av在线播放| 黄色片久久久久| 精品丰满人妻无套内射| 一区中文字幕在线观看| 高清一区在线观看| 黄在线观看网站| 国产视频九色蝌蚪| 真人抽搐一进一出视频| 午夜啪啪福利视频| 国产成人美女视频| 一区二区三区免费播放| 日韩a在线播放| 少妇av一区二区三区无码| 三年中国中文在线观看免费播放| 国产av人人夜夜澡人人爽| 久久久999视频| 逼特逼视频在线| 日韩精品xxxx| 男人天堂网视频| 免费在线观看亚洲视频| 欧美 日韩 激情| 无码中文字幕色专区| 国产特级淫片高清视频| 国产素人在线观看| 日韩中文字幕三区| 欧美色图色综合| 免费日韩视频在线观看| 日本免费黄视频| 日韩有码免费视频| 久草综合在线观看| 伊人成人222| 男女h黄动漫啪啪无遮挡软件| 超碰中文字幕在线观看| 激情成人在线观看| 大荫蒂性生交片| www一区二区www免费| 黄色免费观看视频网站| 欧美精品性生活| 91九色国产ts另类人妖| 一卡二卡三卡视频| 国产三区在线视频| 一区二区免费av| wwwwww欧美| 国产黄色特级片| 艳母动漫在线免费观看| 阿v天堂2018| 麻豆三级在线观看| 7777在线视频| 亚洲人成无码www久久久| 91女神在线观看| 免费在线看黄色片| 中文字幕第21页| 免费视频爱爱太爽了| 99视频在线免费| 国内自拍中文字幕| 欧美伦理视频在线观看| 大片在线观看网站免费收看| www.99热这里只有精品| 中文字幕亚洲影院| 女人色极品影院| 最新国产黄色网址| 日本久久久网站| 污污网站在线观看视频| 久久综合色视频| 国产欧美综合一区| 九九热在线免费| 看av免费毛片手机播放| 国产高清999| 在线免费观看视频黄| 国产原创中文在线观看 | 男生操女生视频在线观看| 91精品国产毛片武则天| 亚洲熟妇国产熟妇肥婆| 日韩av一卡二卡三卡| 妺妺窝人体色www在线小说| 手机成人av在线| 欧美日韩怡红院| 免费毛片网站在线观看| 日韩高清在线一区二区| 波多野结衣xxxx| 色哟哟精品视频| 日韩一级在线免费观看| 免费无码不卡视频在线观看| www污在线观看| 在线观看18视频网站| www.久久久久久久久久久| xxx国产在线观看| 网站一区二区三区| 欧美一级黄色片视频| 日韩精品视频一区二区在线观看| 国产freexxxx性播放麻豆 | 青青在线免费视频| 日韩av片免费观看| 污免费在线观看| 久久久一二三四| 亚洲高清av一区二区三区| 男人的天堂最新网址| 午夜激情视频网| 天天干天天色天天爽| 福利网在线观看| 久久免费一级片| 97在线免费视频观看| www.好吊操| 男人揉女人奶房视频60分| 波多野结衣家庭教师在线| 鲁一鲁一鲁一鲁一澡| 搡女人真爽免费午夜网站| 精品999在线| 国产免费一区二区三区四在线播放 | mm131国产精品| 中国一级黄色录像| 欧美久久久久久久久久久久久| 草草久久久无码国产专区| 激情综合网俺也去| 爱豆国产剧免费观看大全剧苏畅| 亚洲日本黄色片| 国产玉足脚交久久欧美| 国产成人a亚洲精v品无码| 激情黄色小视频| 欧美极品少妇无套实战| 不要播放器的av网站| 国产日韩视频在线播放| 久久av综合网| 污视频网站观看| 激情五月宗合网|