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

CS 211編程代做、代寫c/c++,Java程序

時間:2024-04-04  來源:  作者: 我要糾錯



CS 211 - Computer Architecture
Instructor: Prof. Santosh Nagarakatte
Assignment 4
Disassembling and Defusing a Binary Bomb
March 25, 2024
Due by April 10, 2024 - 5:00PM
dis·as·sem·ble (vt)
take apart: to take something such as a piece of machinery apart.
– Bing Dictionary
0 Overview
The purpose of Assignment 4 (PA4) is for you to become familiar with x86 64 Instruction Set Architecture (ISA).
The nefarious Dr. Evil has planted a slew of ”binary bombs” on our machines. A binary bomb is a program
that consists of a sequence of phases. Each phase expects you to type a particular string on stdin. If you type the
correct string, then the phase is defused and the bomb proceeds to the next phase. Otherwise, the bomb explodes
by printing ”BOOM!!!” and then terminating. The bomb is defused when every phase has been defused.
There are too many bombs for us to deal with, so we are giving everyone a bomb to defuse. Your mission,
which you have no choice but to accept, is to defuse your bomb before the due date. Good luck, and welcome to
the bomb squad!
1 Instructions
The bombs were constructed specifically for the Linux operating system. You must do this assignment on the iLab
machines. You will not defuse the bomb otherwise and will not get credit.
In fact, there is a rumor that Dr. Evil has ensured the bomb will always blow up if run elsewhere. There are
several other tamper-proofing devices built into the bomb as well, or so they say.
Open an Internet Browser and go to the URL: http://skylake.cs.rutgers.edu:17300. This address is only “visible” when you access it on iLab machines through weblogin. Fill the form up with your NetID
and your email address to get your bomb package. The file that you will get is in the format bombN.tar, where N is
your bomb ID, i.e. ID.
If you haven’t downloaded it in the iLab machines, copy the file to there and untar your bomb into your home
directory.
We recommend that you download no more than two bombs. Copy the bomb that you downloaded into your
iLab account and work with it.
$ tar -xvf bomb<ID>.tar
It will create a directory bomb< ID > that should contain the following files:
1
• bomb: The executable binary bomb
• bomb.c: Source file with the bomb’s main routine
• README: File with the bomb ID and extra information
Your job is to defuse the bomb. You can use many tools to help you with this; please look at the tools section
for some tips and ideas. The best way is to use a debugger to step through the disassembled binary.
The bomb has 9 phases. The phases get progressively harder to defuse, but the expertise you gain as you move
from phase to phase should offset this difficulty. Nonetheless, the latter phases are not easy, so please don’t wait
until the last minute to start. (If you’re stumped, check the hints section at the end of this document.)
The bomb ignores blank input lines. If you run your bomb with a command line argument, for example,
./bomb mysolution.txt
then it will read the input lines from mysolution.txt until it reaches EOF (end of file), and then switch over to
stdin (standard input from the terminal). In a moment of weakness, Dr. Evil added this feature so you don’t have
to keep retyping the solutions to phases you have already defused.
To avoid accidentally detonating the bomb, you will need to learn how to single-step through the assembly code
and how to set breakpoints. You will also need to learn how to inspect both the registers and the memory states.
One of the nice side-effects of doing the lab is that you will get very good at using a debugger. This is a crucial
skill that will pay big dividends the rest of your career.
IMPORTANT: Every time that the bomb explodes, you will lose 0.5 points. It is important that you use
breakpoints and avoid those unnecessary explosions.
2 Resources
There are a number of online resources that will help you understand any assembly instructions you may encounter
while examining the bomb. In particular, the programming manuals for x86 processors distributed by Intel and
AMD can be valuable. They both describe the same ISA, but sometimes one may be easier to understand than the
other.
It is important to realize that the assembly syntax of the instructions on the Intel manual follows the Intel
assembly language, while in the book, in gcc, and in gdb they all use the AT&T assembly language. They are
perfectly interchangable, you can identify the differences in this webpage:
http://asm.sourceforge.net/articles/linasm.html
2.1 Checking your Work
We provided a webpage where you can check your work. Access:
http://skylake.cs.rutgers.edu:17300/scoreboard to verify how many points you have, up to
which phase you have defused the bomb, and so on. You have to be on the iLab machines to access the above link.
3 Tools
There are many ways of defusing your bomb. You can examine it in great detail without ever running the program,
and figure out exactly what it does. This is a useful technique, but it not always easy to do. You can also run it
under a debugger, watch what it does step by step, and use this information to defuse it. This is probably the fastest
way of defusing it.
2
We do make one request, please do not use brute force! You could write a program that will try every possible
key to find the right one, but the number of possibilities is so large that you won’t be able to try them all in time.
There are many tools which are designed to help you figure out both how programs work, and what is wrong
when they don’t work. Here is a list of some of the tools you may find useful in analyzing your bomb, and hints on
how to use them.
• gdb: The GNU debugger is a command line debugger tool available on virtually every platform. You can
trace through a program line by line, examine memory and registers, look at both the source code and
assembly code (we are not giving you the source code for most of your bomb), set breakpoints, set memory
watch points, and write scripts. Here are some tips for using gdb.
– To keep the bomb from blowing up every time you type in a wrong input, you’ll want to learn how to
set breakpoints.
– The CS:APP Student Site has a very handy gdb summary (there is also a more extensive tutorial).
– For other documentation, type help at the gdb command prompt, or type ”man gdb”, or ”info gdb” at a
Unix prompt. Some people also like to run gdb under gdb-mode in emacs.
• objdump -t bomb: This will print out the bomb’s symbol table. The symbol table includes the names of all
functions and global variables in the bomb, the names of all the functions the bomb calls, and their addresses.
You may learn something by looking at the function names!
• objdump -d bomb: Use this to disassemble all of the code in the bomb. You can also just look at individual
functions. Reading the assembler code can tell you how the bomb works. Although objdump -d gives you a
lot of information, it doesn’t tell you the whole story. Calls to system-level functions may look cryptic. For
example, a call to sscanf might appear as:
8048c36: e8 99 f c ff ff call 80488d4 < init + 0x1a0 >
To determine that the call was to sscanf, you would need to disassemble within gdb.
• strings -t x bomb: This utility will display the printable strings in your bomb and their offset within the
bomb.
Looking for a particular tool? How about documentation? Don’t forget, the commands apropos and man
are your friends. In particular, man ascii is more useful than you’d think. If you get stumped, use the course’s
discussion board on Canvas.
4 Submission
You have to e-submit the assignment using Canvas. Your submission should be a tar file named bomb < ID > .tar
that can be extracted using the command:
tar -xf bomb<ID>.tar
Extracting your tar file must give a directory called bomb < ID >. This directory should contain the same
files that you downloaded, along with the file mysolution.txt to defuse the bomb.
To create the tar file that you will submit after finishing your programming assignment, you will use the following command line, in the parent directory of bomb < ID >:
tar -cvf bomb<ID>.tar bomb<ID>/
3
5 Grading
Your grade will be based on how many stages of the bomb you have defused. Be careful to follow all instructions.
If something doesn’t seem right, ask.
6 Collaboration
You are not supposed to assist your friends or other students in solving the bombs. You are required not to use any
online resource other than ones explicitly described above. If in doubt, ask. Keep in mind that your final will test
you based on the skills learned in this assignment.

請加QQ:99515681  郵箱:99515681@qq.com   WX:codinghelp

 

 

 

標簽:

掃一掃在手機打開當前頁
  • 上一篇:CSC3150代寫、Java/C++程序語言代做
  • 下一篇:代做SEHH2239、Python程序語言代寫
  • CISC3025代寫、代做c++,Java程序設計
  • 代寫CSci 4061、c/c++,Java程序代做
  • 代做CSCI 2525、c/c++,Java程序語言代寫
  • COMP 315代寫、Java程序語言代做
  • 昆明生活資訊

    昆明圖文信息
    蝴蝶泉(4A)-大理旅游
    蝴蝶泉(4A)-大理旅游
    油炸竹蟲
    油炸竹蟲
    酸筍煮魚(雞)
    酸筍煮魚(雞)
    竹筒飯
    竹筒飯
    香茅草烤魚
    香茅草烤魚
    檸檬烤魚
    檸檬烤魚
    昆明西山國家級風景名勝區
    昆明西山國家級風景名勝區
    昆明旅游索道攻略
    昆明旅游索道攻略
  • NBA直播 短信驗證碼平臺 幣安官網下載 歐冠直播 WPS下載

    關于我們 | 打賞支持 | 廣告服務 | 聯系我們 | 網站地圖 | 免責聲明 | 幫助中心 | 友情鏈接 |

    Copyright © 2025 kmw.cc Inc. All Rights Reserved. 昆明網 版權所有
    ICP備06013414號-3 公安備 42010502001045

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

              欧美fxxxxxx另类| 欧美一区在线看| 国产精品推荐精品| 免费久久99精品国产| 亚洲午夜精品网| 影院欧美亚洲| 国产精品美女久久久久久免费| 久久午夜精品| 午夜视频久久久久久| 日韩亚洲欧美一区| 亚洲国产第一页| 国产一区自拍视频| 国产精品麻豆va在线播放| 欧美精品亚洲二区| 另类av一区二区| 久久www成人_看片免费不卡| 一区二区三区四区蜜桃| 亚洲精选视频在线| 亚洲日本中文字幕| 亚洲国产精品va在线看黑人动漫 | 国产精品日韩久久久| 欧美激情精品久久久久久久变态| 久久精品视频在线看| 久久精品国产亚洲高清剧情介绍| 亚洲欧美综合国产精品一区| 亚洲在线观看免费| 亚洲欧美第一页| 亚洲在线1234| 欧美亚洲一区| 欧美一区二区三区四区在线观看地址| 亚洲一区二区在线看| 一本大道久久精品懂色aⅴ| 亚洲老司机av| 亚洲图片欧美一区| 中文无字幕一区二区三区| 亚洲精品一区二区三区av| 亚洲人成小说网站色在线| 亚洲精品久久7777| 亚洲精品欧美专区| 日韩视频一区二区在线观看| 亚洲欧洲综合另类| 亚洲伦理久久| 亚洲一二三区精品| 欧美一区二区精品| 久久久在线视频| 欧美激情一区二区在线 | 久久人体大胆视频| 欧美成人激情在线| 欧美午夜精品一区二区三区| 国产精品毛片在线| 伊人久久男人天堂| 亚洲欧洲一区二区三区久久| 亚洲午夜久久久久久久久电影网| 亚洲欧美日韩在线观看a三区 | 国产亚洲精品资源在线26u| 国产一区二区看久久| 亚洲国产视频一区| 亚洲一区二区三区国产| 久久免费视频观看| 欧美精品在线看| 国产一区清纯| 99精品久久久| 久久中文字幕一区二区三区| 欧美另类在线观看| 国产亚洲综合性久久久影院| 亚洲日韩欧美一区二区在线| 午夜欧美不卡精品aaaaa| 免费观看成人www动漫视频| 国产精品成人aaaaa网站| 激情亚洲成人| 亚洲免费在线观看| 欧美成人午夜激情在线| 国产视频亚洲| 亚洲综合日本| 欧美日本亚洲| 亚洲国产精品视频一区| 欧美专区18| 国产精品久久777777毛茸茸| 亚洲精品美女在线| 久久精品免费| 国产免费亚洲高清| 一个人看的www久久| 欧美va天堂| 曰韩精品一区二区| 欧美在线免费观看视频| 欧美视频三区在线播放| 亚洲国产网站| 欧美r片在线| 国产精品一区二区三区久久| 一区二区三区高清视频在线观看| 免费h精品视频在线播放| 国产综合18久久久久久| 欧美在线高清| 国产精品影视天天线| 亚洲已满18点击进入久久| 欧美片在线播放| 99精品99| 国产精品毛片| 羞羞色国产精品| 国产午夜精品视频| 久久免费的精品国产v∧| 在线成人h网| 欧美91大片| 亚洲伦伦在线| 欧美手机在线视频| 亚洲欧美欧美一区二区三区| 国产精品视频福利| 欧美一区二区三区免费观看| 国产日韩欧美一区| 久久视频一区| 亚洲三级性片| 欧美午夜精品一区| 久久九九99视频| 亚洲精品乱码久久久久久久久| 欧美黑人在线播放| 亚洲一区在线直播| 国产在线精品自拍| 欧美激情 亚洲a∨综合| 亚洲天堂视频在线观看| 国产日本亚洲高清| 免费永久网站黄欧美| 日韩特黄影片| 国产真实乱偷精品视频免| 乱码第一页成人| 亚洲一区二区三区免费视频| 国产一区二区高清视频| 美女黄毛**国产精品啪啪| 亚洲作爱视频| 伊人精品视频| 国产精品v一区二区三区| 久久亚洲私人国产精品va媚药| 亚洲欧洲在线视频| 国产九区一区在线| 欧美国产亚洲视频| 欧美在线观看视频| 99精品国产在热久久婷婷| 国产精品永久在线| 欧美高清不卡在线| 久久久99国产精品免费| 在线视频你懂得一区二区三区| 国产一区二区三区黄视频| 欧美日韩在线第一页| 快射av在线播放一区| 欧美中文在线字幕| 亚洲无亚洲人成网站77777| 亚洲国产精品精华液网站| 国产日韩欧美一区| 国产精品porn| 欧美精品日本| 欧美电影免费观看高清完整版| 欧美在线观看一区二区三区| 亚洲国内精品| 黄色精品一二区| 国产欧美一区二区色老头| 欧美视频一二三区| 欧美日韩成人综合| 欧美精品1区2区3区| 久久久久国产精品厨房| 欧美亚洲一区二区在线| 亚洲免费在线精品一区| 一区二区高清| 在线视频你懂得一区二区三区| 91久久国产精品91久久性色| 在线观看三级视频欧美| 狠狠网亚洲精品| 国产一区二区激情| 国产九九精品| 国产偷久久久精品专区| 国产伦精品一区二区三区免费迷 | 日韩亚洲欧美一区| 亚洲美女一区| 夜夜嗨一区二区| 亚洲视频日本| 国产精品99久久不卡二区| 亚洲视屏在线播放| 一区二区三区欧美| 亚洲永久字幕| 久久国产色av| 欧美激情一区二区三区四区 | 激情成人在线视频| 国产三级欧美三级日产三级99| 国产视频精品网| 黄色成人小视频| 亚洲人在线视频| 一区二区三区精品视频| 亚洲视频专区在线| 久久精品人人做人人爽| 欧美成人亚洲成人| 欧美日韩一区二区在线观看视频| 国产精品第一页第二页第三页| 国产精品入口福利| 激情久久婷婷| 99re6这里只有精品| 午夜亚洲伦理| 欧美顶级大胆免费视频| 欧美日韩在线播放一区| 国产亚洲欧美另类中文| 亚洲国产黄色片| 欧美一区二区在线播放| 免费视频一区二区三区在线观看|