免费一级欧美片在线观看网站_国产一区再线_欧美日本一区二区高清播放视频_国产99久久精品一区二区300

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

    免费一级欧美片在线观看网站_国产一区再线_欧美日本一区二区高清播放视频_国产99久久精品一区二区300
    国产乱色国产精品免费视频| 欧美高清激情brazzers| 亚洲你懂的在线视频| av网站免费线看精品| 丁香激情综合国产| 国产偷国产偷亚洲高清人白洁| 国产乱码精品一区二区三| 国产日韩成人精品| 成人app软件下载大全免费| 亚洲男人的天堂av| 在线观看免费视频综合| 同产精品九九九| 欧美电影免费提供在线观看| 国产精品综合二区| 亚洲视频一区在线| 欧美日韩一区二区三区免费看 | 成人欧美一区二区三区黑人麻豆| jlzzjlzz亚洲日本少妇| 一区二区三区四区高清精品免费观看| 欧美午夜电影一区| 美女一区二区在线观看| 久久精品日韩一区二区三区| 97久久久精品综合88久久| 亚洲午夜免费电影| 日韩精品一区二区三区中文精品| 国产盗摄视频一区二区三区| 亚洲激情五月婷婷| 91精品国产综合久久国产大片| 精品一区二区精品| 国产精品成人免费| 欧美日韩高清在线播放| 久久99精品久久久久久动态图 | 久久蜜桃av一区精品变态类天堂 | 国产精品高潮呻吟| 欧美日韩成人综合在线一区二区| 免播放器亚洲一区| 欧美国产精品一区二区| 欧美艳星brazzers| 狠狠久久亚洲欧美| 亚洲免费观看高清完整版在线观看熊| 在线不卡a资源高清| 国产调教视频一区| 在线亚洲一区观看| 韩国在线一区二区| 樱花草国产18久久久久| 欧美成va人片在线观看| 色综合激情五月| 久久99精品国产麻豆不卡| 中文字幕一区二区三区乱码在线| 91精品国产福利在线观看| 丰满白嫩尤物一区二区| 天天av天天翘天天综合网 | 国产一区二区免费看| 亚洲一区中文日韩| 国产亚洲综合性久久久影院| 欧美视频在线一区二区三区| 国产成人av资源| 日本午夜精品一区二区三区电影| 国产精品嫩草影院av蜜臀| 日韩一区二区在线观看| 91亚洲永久精品| 韩国理伦片一区二区三区在线播放| 一区二区三区欧美亚洲| 久久亚洲精精品中文字幕早川悠里| 色狠狠色噜噜噜综合网| 国产一区二区免费在线| 亚洲 欧美综合在线网络| 国产精品福利一区| 欧美成人女星排名| 欧美视频日韩视频| 99精品视频中文字幕| 国产资源在线一区| 亚洲mv在线观看| 18成人在线观看| 久久久久久久电影| 日韩午夜三级在线| 色就色 综合激情| 国产mv日韩mv欧美| 捆绑调教美女网站视频一区| 欧美日韩大陆在线| 亚洲成人精品在线观看| 日本精品一级二级| 亚洲综合区在线| 91在线观看成人| 午夜a成v人精品| 亚洲欧美一区二区久久| 欧美韩日一区二区三区| 精品国产人成亚洲区| 欧美日韩一区二区在线视频| 99久久婷婷国产| 国产高清久久久久| 国产自产v一区二区三区c| 免费欧美在线视频| 视频在线在亚洲| 亚洲成a人片在线观看中文| 亚洲欧美一区二区久久| 国产精品久久久久影院老司| 国产欧美日本一区视频| xfplay精品久久| 欧美成人高清电影在线| 日韩欧美激情一区| 日韩一区二区免费视频| 91精品蜜臀在线一区尤物| 欧美日韩国产中文| 欧美三级电影网| 欧美揉bbbbb揉bbbbb| 91国产精品成人| 色悠悠久久综合| 99久久精品国产麻豆演员表| 丁香婷婷综合五月| 成人综合婷婷国产精品久久 | 国产精品色哟哟网站| 久久精品日产第一区二区三区高清版 | 337p粉嫩大胆色噜噜噜噜亚洲| 日韩网站在线看片你懂的| 91麻豆精品国产91久久久久久 | 久久99精品国产91久久来源| 久久se精品一区二区| 激情综合网天天干| 国产乱码一区二区三区| 国产大陆a不卡| 成人国产在线观看| 91在线视频免费观看| 色菇凉天天综合网| 欧美日韩中文字幕一区| 欧美精品高清视频| 日韩欧美国产不卡| 久久人人97超碰com| 国产日本一区二区| 国产精品电影一区二区| 亚洲男人的天堂在线aⅴ视频| 亚洲综合999| 天堂久久久久va久久久久| 麻豆成人在线观看| 国产成人av福利| 99热在这里有精品免费| 色噜噜狠狠色综合中国 | 99视频一区二区| 日本伦理一区二区| 欧美日韩免费观看一区二区三区| 欧美精品高清视频| 日韩精品自拍偷拍| 国产欧美日韩在线观看| 中文字幕一区二区三区色视频| 一区二区欧美国产| 青青草国产成人av片免费| 蜜臀a∨国产成人精品| 国产九色精品成人porny| 99久久精品国产导航| 欧美日韩免费视频| 精品久久人人做人人爰| 国产女主播在线一区二区| 最近中文字幕一区二区三区| 亚洲美女视频在线| 日本欧美加勒比视频| 久久精品视频网| 亚洲三级小视频| 午夜精彩视频在线观看不卡| 捆绑变态av一区二区三区| 成人黄色777网| 欧美猛男gaygay网站| 久久嫩草精品久久久精品| 亚洲视频图片小说| 欧美aaaaaa午夜精品| 成人小视频在线| 欧美精品自拍偷拍| 国产日产欧美一区| 亚洲成人精品影院| 国产精品性做久久久久久| 91福利资源站| 久久众筹精品私拍模特| 亚洲黄色免费电影| 韩国av一区二区三区| 色婷婷综合久久| www激情久久| 亚洲高清一区二区三区| 国产精品综合二区| 欧美日韩亚洲丝袜制服| 日本一区二区电影| 日韩av二区在线播放| 99久久国产免费看| 欧美电视剧在线看免费| 亚洲欧美日韩综合aⅴ视频| 另类综合日韩欧美亚洲| 91色在线porny| 精品美女一区二区| 亚洲一区二区av在线| 国产jizzjizz一区二区| 6080国产精品一区二区| 亚洲天堂网中文字| 紧缚捆绑精品一区二区| 欧美色图片你懂的| 国产夜色精品一区二区av| 视频一区视频二区中文| 播五月开心婷婷综合| 精品久久久三级丝袜| 亚洲成人激情综合网| heyzo一本久久综合| 久久影院午夜论| 视频在线观看一区二区三区|