美女扒开腿免费视频_蜜桃传媒一区二区亚洲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加勒比一_熟女少妇一区二区三区_老司机免费视频_潘金莲一级黄色片_精品国产精品国产精品_黑人巨大猛交丰满少妇
    波多野结衣亚洲一区二区| 蜜桃av免费观看| 中文字幕无码毛片免费看| 成人免费视频入口| 九一在线免费观看| 99成人在线观看| 日本黄色片免费观看| 久久人妻无码aⅴ毛片a片app | 日韩一级片av| 在线播放av网址| 国产伦精品一区二区三区妓女 | 亚洲欧美日韩偷拍| 岛国av免费观看| 又黄又爽的网站| 日本xxxxxxxxx18| 四虎影院中文字幕| 国产伦精品一区二区三区88av| 91激情视频在线观看| 妖精视频在线观看免费| 无码人妻aⅴ一区二区三区69岛| 人妻互换一二三区激情视频| 天天躁日日躁狠狠躁av| 第一次破处视频| 国产精品19p| asian性开放少妇pics| 欧美深性狂猛ⅹxxx深喉| 男女做爰猛烈刺激| 成人无码精品1区2区3区免费看| 日韩免费高清一区二区| 变态另类丨国产精品| 亚洲AV无码国产精品| 校园春色 亚洲| 国产美女喷水视频| 永久久久久久久| 色欲av无码一区二区三区| 国产黄在线免费观看| 三上悠亚影音先锋| 99riav国产精品视频| 又色又爽的视频| 青青草精品在线| 亚洲а∨天堂久久精品2021| 99热这里只有精品4| 黄色国产在线观看| 一卡二卡三卡四卡五卡| 美国黑人一级大黄| 天堂www中文在线资源| 中文字幕在线有码| 国产精品麻豆免费版现看视频| 性高潮久久久久久| 在线观看天堂av| 国产精品麻豆免费版现看视频| 精品一区二区视频在线观看| 两女双腿交缠激烈磨豆腐| 欧美日韩生活片| 51妺嘿嘿午夜福利| www.黄色在线| 少妇太紧太爽又黄又硬又爽小说| 日本少妇色视频| 日本少妇xxxx软件| 久久精品aⅴ无码中文字字幕重口| 亚洲天堂最新地址| 精品国产成人亚洲午夜福利| 精品无人区无码乱码毛片国产| 一级特黄a大片免费| 三大队在线观看| 亚洲中文字幕一区| 日韩Av无码精品| 亚洲中文字幕无码一区| xxxx黄色片| 亚洲综合网在线观看| 一区二区免费在线观看视频| 成熟妇人a片免费看网站| 黑丝av在线播放| 欧美波霸videosex极品| 中文字幕无码日韩专区免费| 潘金莲一级淫片aaaaa| 国产精品成人99一区无码| v8888av| 真实国产乱子伦对白在线| 国产suv一区二区三区| 蜜臀视频在线观看| 成年人免费观看视频网站| 99精品中文字幕| 国产高潮视频在线观看| 97人妻人人揉人人躁人人| 性生交大片免费全黄| 黄色网址在线视频| 韩国三级hd中文字幕| 在线观看免费看片| 一级黄色片网址| 大尺度在线观看| 一二三四国产精品| 女尊高h男高潮呻吟| www欧美com| 国产成人免费观看网站| 蜜臀av粉嫩av懂色av| 日本在线一级片| 中文字幕成人动漫| 国产高清成人久久| 国产精品国产高清国产| 久久久久久久久福利| 欧美xxxx×黑人性爽| 久久福利免费视频| 亚洲国产av一区| 日韩女优在线视频| 无码黑人精品一区二区| 91精品人妻一区二区| wwwav国产| 免费看一级大片| 国产精品毛片一区二区| 性折磨bdsm欧美激情另类| 日韩精品久久久久久久的张开腿让| 国产 中文 字幕 日韩 在线| 91精品国自产在线偷拍蜜桃| 奇米网一区二区| 谁有免费的黄色网址| 久久精品aⅴ无码中文字字幕重口| 美女100%露胸无遮挡| 亚洲国产综合视频| 男人天堂av电影| 日韩精品卡通动漫网站| 午夜剧场免费看| 日本一卡二卡在线| 佐佐木明希电影| 美女伦理水蜜桃4| 一级黄色片毛片| 男人天堂av电影| 国产午夜精品福利视频| 五月婷婷婷婷婷| 国产精品丝袜一区二区| 亚洲AV无码久久精品国产一区| 亚洲成年人av| 黄色国产在线观看| 日本美女xxx| 精品一区在线观看视频| 国产婷婷在线观看| 草草影院第一页| 亚洲黄色免费视频| 小向美奈子av| jjzzjjzz欧美69巨大| 四虎永久免费影院| 一区二区国产精品精华液| 扒开伸进免费视频| 亚洲女优在线观看| 在线观看一区二区三区四区| 熟女俱乐部一区二区| 人妻人人澡人人添人人爽| 国产精品第七页| 99国产精品无码| 国产精品久久不卡| 国产性xxxx| 性欧美精品中出| 久久国产免费视频| 欧美日韩中文字幕视频| 911亚洲精选| 波多野结衣喷潮| 亚洲成人日韩在线| 美女网站视频在线观看| 精品伦精品一区二区三区视频密桃| 特级特黄刘亦菲aaa级| av片在线免费看| 亚洲AV无码国产精品| 性高潮久久久久久| 极品久久久久久| 乱老熟女一区二区三区| 手机在线成人av| zjzjzjzjzj亚洲女人| 成人免费视频入口| 制服 丝袜 综合 日韩 欧美| 亚洲少妇一区二区| 色在线观看视频| 欧美激情精品久久久久久免费| 夜夜春很很躁夜夜躁| 黄色正能量网站| 粉嫩av蜜桃av蜜臀av| 在线观看国产网站| 性欧美18—19sex性高清| 欧美性猛交xx| 真实乱偷全部视频| 中文字幕av一区二区三区人妻少妇| 三级黄色免费观看| 亚洲综合图片一区| 蜜桃av免费在线观看| 亚洲天堂精品一区| 国产色无码精品视频国产| 91成人精品一区二区| 69精品无码成人久久久久久| 日本xxxxxxxxx18| 黄色在线观看av| 日韩一级片在线免费观看| 国产7777777| 婷婷激情四射网| 26uuu国产| 呦呦视频在线观看| 中文字幕av久久爽一区| 在线视频这里只有精品| 四虎国产成人精品免费一女五男| 又大又长粗又爽又黄少妇视频| 成人免费视频网站入口::| 日韩三级在线观看视频|