精品深夜AV无码一区二区_伊人久久无码中文字幕_午夜无码伦费影视在线观看_伊人久久无码精品中文字幕

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

時(shí)間:2024-03-13  來(lái)源:  作者: 我要糾錯(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.
請(qǐng)加QQ:99515681  郵箱:99515681@qq.com   WX:codehelp 

標(biāo)簽:

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

    昆明圖文信息
    蝴蝶泉(4A)-大理旅游
    蝴蝶泉(4A)-大理旅游
    油炸竹蟲
    油炸竹蟲
    酸筍煮魚(雞)
    酸筍煮魚(雞)
    竹筒飯
    竹筒飯
    香茅草烤魚
    香茅草烤魚
    檸檬烤魚
    檸檬烤魚
    昆明西山國(guó)家級(jí)風(fēng)景名勝區(qū)
    昆明西山國(guó)家級(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

    精品深夜AV无码一区二区_伊人久久无码中文字幕_午夜无码伦费影视在线观看_伊人久久无码精品中文字幕
    <samp id="e4iaa"><tbody id="e4iaa"></tbody></samp>
    <ul id="e4iaa"></ul>
    <blockquote id="e4iaa"><tfoot id="e4iaa"></tfoot></blockquote>
    • <samp id="e4iaa"><tbody id="e4iaa"></tbody></samp>
      <ul id="e4iaa"></ul>
      <samp id="e4iaa"><tbody id="e4iaa"></tbody></samp><ul id="e4iaa"></ul>
      <ul id="e4iaa"></ul>
      <th id="e4iaa"><menu id="e4iaa"></menu></th>
      亚洲天堂免费看| 欧美国产精品中文字幕| 成人自拍视频在线观看| 久久福利资源站| 蜜臀av一区二区在线观看| 午夜精品视频在线观看| 日韩在线一区二区三区| 日韩—二三区免费观看av| 日韩精品亚洲一区二区三区免费| 午夜精品久久一牛影视| 日本不卡中文字幕| 精品一区二区免费| 国产91综合一区在线观看| 成人免费三级在线| 91丨九色丨蝌蚪丨老版| 欧美日韩一级视频| 日韩欧美电影在线| 国产日韩精品一区| 亚洲日本一区二区三区| 亚洲五码中文字幕| 久久精品久久综合| 成人黄色免费短视频| 欧洲一区二区av| 日韩欧美一卡二卡| 亚洲国产岛国毛片在线| 亚洲综合男人的天堂| 毛片av中文字幕一区二区| 成人免费毛片片v| 欧美日韩久久一区| 国产三级精品三级在线专区| 亚洲欧洲成人精品av97| 日韩中文字幕91| www.66久久| 欧美一级免费大片| 国产精品久久久久久亚洲伦 | 欧美一区二区视频观看视频 | 综合中文字幕亚洲| 奇米四色…亚洲| 成人小视频免费在线观看| 欧美色视频在线观看| 久久精品一级爱片| 亚洲第一电影网| 成人午夜在线播放| 日韩一区二区精品葵司在线| 中文字幕一区在线观看视频| 日韩中文字幕一区二区三区| 成人免费电影视频| 欧美sm美女调教| 亚洲乱码国产乱码精品精可以看 | 亚洲精品日日夜夜| 老色鬼精品视频在线观看播放| 成人黄页毛片网站| 精品电影一区二区| 日韩精品一二区| 色噜噜狠狠一区二区三区果冻| 久久久久9999亚洲精品| 日本不卡一二三区黄网| 欧美天堂一区二区三区| 国产精品福利av| 国产一区 二区| 91精品久久久久久久91蜜桃| 樱桃视频在线观看一区| av午夜精品一区二区三区| 久久综合视频网| 麻豆视频观看网址久久| 欧美日韩免费视频| 一级日本不卡的影视| 99re视频精品| 综合久久一区二区三区| 国产成人在线视频播放| 久久久久久久av麻豆果冻| 久久超碰97中文字幕| 制服丝袜成人动漫| 日日摸夜夜添夜夜添精品视频 | 色88888久久久久久影院野外| 日本一区二区三区高清不卡| 韩国精品在线观看| www国产精品av| 精品一区二区在线播放| 欧美精品一区二| 国产成人在线看| 国产精品你懂的| 91免费看`日韩一区二区| 亚洲男同性恋视频| 欧美在线观看一区| 人人狠狠综合久久亚洲| 亚洲精品一区二区三区影院| 国产精品一色哟哟哟| 国产精品人人做人人爽人人添 | 久久99精品国产.久久久久久 | 粉嫩久久99精品久久久久久夜| 国产婷婷色一区二区三区四区| 国产jizzjizz一区二区| 亚洲免费色视频| 69堂成人精品免费视频| 黑人精品欧美一区二区蜜桃 | 免费观看30秒视频久久| 26uuu精品一区二区三区四区在线| 国产一区二区在线观看免费| 国产午夜精品在线观看| 色综合天天综合狠狠| 丝袜亚洲另类丝袜在线| 久久久久久久综合色一本| 99精品国产热久久91蜜凸| 午夜久久久久久电影| 久久亚洲春色中文字幕久久久| 99久久久精品| 免费成人在线视频观看| 国产精品久久久久久户外露出| 欧美午夜寂寞影院| 国产精品综合网| 亚洲不卡在线观看| 欧美激情一区二区三区四区| 欧美三级在线视频| 国产成人8x视频一区二区| 亚洲韩国精品一区| 国产精品污网站| 日韩午夜激情视频| 91国产成人在线| 国产a视频精品免费观看| 亚洲成人高清在线| 国产精品国产精品国产专区不片| 欧美一区二区三区视频| 97久久超碰精品国产| 精品系列免费在线观看| 一区二区三区精品在线观看| 久久美女高清视频| 91精品国产一区二区三区香蕉 | 亚洲成va人在线观看| 中文无字幕一区二区三区| 欧美一区二区三区精品| 色婷婷香蕉在线一区二区| 国产乱码精品一区二区三区忘忧草 | 欧美专区在线观看一区| 国产精品自拍毛片| 免费在线观看视频一区| 亚洲成人动漫在线观看| 亚洲精品乱码久久久久久久久| 欧美一卡二卡在线观看| 精品视频免费在线| 91视频在线观看免费| 不卡高清视频专区| 成人在线综合网| 国产不卡免费视频| 国产福利一区二区| 国产传媒久久文化传媒| 国产成人超碰人人澡人人澡| 国内精品国产成人| 国产一区二区在线视频| 韩国成人精品a∨在线观看| 久久超碰97中文字幕| 激情另类小说区图片区视频区| 美女视频黄频大全不卡视频在线播放| 丝袜美腿一区二区三区| 丝袜脚交一区二区| 青青草国产精品97视觉盛宴| 免费看欧美美女黄的网站| 美女视频一区二区三区| 久久国产尿小便嘘嘘| 国产在线视频精品一区| 国产成人av福利| 丁香六月综合激情| 色综合久久天天综合网| 在线影视一区二区三区| 欧美日韩一二区| 日韩一级二级三级精品视频| 日韩欧美视频一区| 国产无人区一区二区三区| 中文字幕制服丝袜一区二区三区| 国产精品福利影院| 亚洲成人av电影| 九九**精品视频免费播放| 国产99久久久精品| 日本黄色一区二区| 欧美一区二区三区免费在线看| 精品99久久久久久| 亚洲欧美日韩电影| 日韩一区欧美二区| 高清在线观看日韩| 欧美自拍偷拍午夜视频| 精品国产电影一区二区| 亚洲欧洲成人自拍| 免费观看一级特黄欧美大片| 国产传媒日韩欧美成人| 欧美视频完全免费看| 精品国产免费人成电影在线观看四季| 中国色在线观看另类| 丝袜诱惑亚洲看片| jvid福利写真一区二区三区| 在线成人av影院| 中文字幕制服丝袜成人av| 三级欧美在线一区| 91影院在线观看| 久久综合丝袜日本网| 夜夜爽夜夜爽精品视频| 国产精品一区二区三区乱码| 在线观看91av| 亚洲色图.com| 成人天堂资源www在线| 欧美精品vⅰdeose4hd|