日本欧洲视频一区_国模极品一区二区三区_国产熟女一区二区三区五月婷_亚洲AV成人精品日韩一区18p

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

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

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

    日本欧洲视频一区_国模极品一区二区三区_国产熟女一区二区三区五月婷_亚洲AV成人精品日韩一区18p

              9000px;">

                        六月婷婷七月丁香| 男人女人拔萝卜视频| 欧美日韩国产黄色| 中文字幕在线观看91| 黄色片视频在线| 中文字幕avav| 久久人妻少妇嫩草av蜜桃| 亚洲国产精品免费在线观看| 精品成人av一区二区在线播放| 中文字幕乱伦视频| 久久偷拍免费视频| 亚洲天堂中文字幕在线| 欧美专区第二页| 丰满少妇高潮在线观看| 五月婷婷狠狠干| 久久久www成人免费毛片| 亚洲国产第一区| 欧美性xxxx图片| 国产成人免费在线观看视频| 在线观看国产一级片| 刘亦菲久久免费一区二区| 波多野结衣久久久久| 校园春色 亚洲| 免费a视频在线观看| www.欧美色| 伊人成年综合网| 欧美激情一区二区三区免费观看| 国产91精品看黄网站在线观看| 在线免费观看成年人视频| 免费欧美一级片| 99热这里精品| 中文亚洲av片在线观看| 青春草免费视频| 激情五月婷婷小说| www.天堂av.com| 中文字幕一区二区三区人妻电影| 日韩美女黄色片| 玖玖爱在线精品视频| 国产免费黄色片| 99视频在线观看免费| 中文字幕人妻一区二区三区在线视频 | 不卡视频免费在线观看| 伊人国产在线观看| 水蜜桃av无码| 欧美日韩免费一区二区| 黄色片在线免费| 国产精品500部| www.se五月| 91久久精品国产91性色69| 中文资源在线播放| 性一交一乱一色一视频麻豆| 日韩av免费网址| 青青草视频成人| 女人18毛片一区二区三区| 久久国产精品二区| 好吊色一区二区三区| 国产乱国产乱老熟| 国产91丝袜美女在线播放| www.精品视频| 波多野结衣av无码| 99免费在线视频| www.激情五月| 97久久久久久久| 97人妻天天摸天天爽天天| 91久久国语露脸精品国产高跟| 亚洲乱码在线观看| 亚洲欧美高清在线| 91pony九色| 91精品人妻一区二区三区果冻| 亚洲一区二区影视| 136福利视频导航| 一级黄色录像毛片| 999福利视频| 高潮毛片7777777毛片| 国产精品女人久久久| 成人区人妻精品一区二| 国产999免费视频| 国精品无码人妻一区二区三区 | 日本少妇激三级做爰在线| 欧美熟妇精品黑人巨大一二三区| 欧美日韩精品在线观看视频| 日韩av.com| 性久久久久久久久久| 在线观看亚洲一区二区| 夜夜爽8888| 成年人网站在线观看视频| 国产无套在线观看| 久久久无码人妻精品一区| 欧美日韩一区二区三区四区五区六区 | 国产黄色网址在线观看| 国产又黄又猛又粗又爽的视频| 六月丁香激情综合| 日韩国产成人在线| 在线观看中文字幕av| 亚洲一区二区观看| 国产精品自拍第一页| 久久精品99久久久久久| 日韩av在线播放观看| 在线观看亚洲免费视频| a天堂在线视频| 精品人妻一区二区三区日产乱码卜| 蜜桃av免费在线观看| 污污污www精品国产网站| 亚洲一二三区av| 国产黄色大片网站| 免费一级a毛片| 亚洲成人黄色片| 99国产精品99| 久久国产劲爆∧v内射| 天天操天天射天天爽| 亚洲综合视频网站| 精品国产乱码久久久久久蜜臀网站| 日本亚洲欧美在线| 亚洲精品国产精品国自| 国产伦精品一区二区三区精品 | 久久婷婷国产麻豆91| 先锋资源在线视频| 高潮一区二区三区乱码| 免费看的av网站| 亚洲国产精品自拍视频| 国产又粗又黄又猛| 天天操天天射天天| 超碰在线97免费| 日本黄色小说视频| 一级片视频免费| 毛片毛片毛片毛| 亚洲精品在线网址| 精品人妻无码一区二区性色| 午夜毛片在线观看| 国产精品精品软件男同| 色91精品久久久久久久久| av2014天堂网| 日韩高清一二三区| 成人午夜淫片100集| 日韩中文字幕免费观看| www.自拍偷拍| 熟妇人妻久久中文字幕| 国产99免费视频| 天堂8在线视频| 国产亚洲欧美精品久久久久久| 日韩网红少妇无码视频香港| 丰满少妇一区二区| 五月婷婷之综合激情| 国产又黄又大又粗的视频| 中文字幕黄色网址| 六月丁香在线视频| av在线播放网址| 日本少妇毛茸茸高潮| 国产av一区二区三区传媒| 少妇大叫太粗太大爽一区二区| 国产99免费视频| 真实国产乱子伦对白在线| 精品一区二区三区蜜桃在线| 亚洲图片在线视频| 青春草免费视频| 国产精品女同一区二区| 在线观看av网页| 欧美激情一区二区三区免费观看| 成年人网站免费在线观看| 一区二区的视频| 欧美 中文字幕| 国产高潮在线观看| 亚洲精品成av人片天堂无码| 日本三级午夜理伦三级三| 黄色福利在线观看| 99视频在线视频| 伊人久久综合视频| 人人干在线观看| 国内av一区二区| www.色欧美| 亚洲欧美日韩网站| 天天视频天天爽| 欧美成人精品欧美一级私黄| 国产伦精品一区二区三区视频网站| 中文字幕视频观看| 色婷婷粉嫩av| 久久久精品视频网站| 国产美女精品久久| 97久久人国产精品婷婷| 中文字幕日韩一级| 天天躁日日躁狠狠躁伊人| 欧美bbbbbbbbbbbb精品| 国产综合视频在线| 丰满熟女人妻一区二区三| 亚洲天堂2021av| 亚洲国产精彩视频| 性色av免费观看| 水蜜桃av无码| 日韩一区二区不卡视频| 欧美 日韩 中文字幕| 精品无码人妻一区二区三区品| 国产精品情侣呻吟对白视频| 成年人网站免费在线观看| av五月天在线| www.av在线.com| av男人的天堂av| 999在线免费视频| aaaaaa毛片| av中文字幕第一页| www.亚洲自拍|