The computer system Introduction --LAB (2) - bomblab

EDITORIAL:

This article does not bomb tutorial, only the bomb preparation tutorial!

Welcome to my fiendish little bomb. You have 6 phases with which to blow yourself up. Have a nice day!

 

First, download the file

Landing http://autolab.pku.edu.cn, download writeup and your exclusive bomb

Download bomb: you can choose a download from the Download handout and Download your bomb; if repeated downloads, can be found in each download file bombX.tar X suffix string of numbers are not the same, not the same because each bomb, just select a bomb and has enough work on it, remove all of the remaining bomb.

tips: 1. Please read the writeup

      2. Do not try to run bomb, with penalties for wrong ah Hey

 

 

 

Second, login to the server

(A) first landed

Input terminal: SSH [email protected] -p 19373 , Enter

s1800017827 is my user name (username), 19373 is my port number (port), please fill in the corresponding information in accordance with their assistants published grid;

162.105.31.232 each may be different (?)

 Then I received a warning, but I entered yes, then continued

 Enter the default password, the default password is the initial student number (see input directly into a series of knock and hit enter) 

The first landing server will be asked to change your password, enter an initial password, enter the new password twice, you can modify completed.

Server login automatically exit after completion.

 

(B) landed again

Input terminal: ssh [email protected] -p 19373, the transport; the change password input can.

After the successful landing, the host name (a string of green, such as mine is "mariana-tan @ ubuntu") will be changed to the user name on the server

但是这时我们的服务器上是空的,如果输入ls并回车(查看目录),什么输出都没有。于是我们需要退出服务器登陆,并从本地的终端上传文件到服务器。

 

(三)退出登陆

终端输入exit或logout可以直接退出服务器,回到本地的终端。

 

 

三、上传bomb到服务器

输入ls查看当前目录下的文件和文件夹,什么输出都没有,说明当前目录为空

退出服务器,回到本地的终端

进入存放bombX.tar(X为一个整数,每个人的数字都是不一样的)压缩文件的文件夹(如果不知道路径,可以去files里康康)

就是左侧边栏这个文件夹files一样的图标里

我的存放路径是Desktop/bomb621.tar,用命令cd进入Desktop;为了便于展示,我用ls命令输出了Desktop/路径下的所有文件/文件夹

tips:可以输入文件/文件夹的前几个字符,然后敲tab键自动补全文件/文件夹名

输入:scp -P 19373 bomb621.tar [email protected]:~/并回车

(还是一样,端口号19373、文件名bomb621.tar、用户名s1800017827这几个信息要替换成自己的对应信息)

瞬间,就会显示上传完毕。

再次登陆服务器,输入ls,就能看到上传上去的文件了

解压bombX.tar,输入tar xvf bomb621.tar并回车,解压完成,解压后文件存放于相同目录下创建的和压缩包同名的文件夹中,如下:

 

 

四、愉快拆弹

进入解压缩的bombX文件夹,输入./bomb就可以运行bomb了,输入ctrl C可以终止bomb程序

拆弹指导见公众号文章《如何优雅地拆弹》:https://mp.weixin.qq.com/s/glcorCvgv48w-2em3KbCyA

 

五、 常用Linux指令

copy自公众号文章《你需要了解的服务器一二事》:https://mp.weixin.qq.com/s/0T5Xay_O33n9iX647ba1Iw

pwd:查看当前目录。

ls:列出当前文件夹下的文件。

ll:列出当前文件夹下文件的详细信息。

cd 文件夹路径:进入指定文件夹下。

mkdir 文件夹名:建立文件夹。

cp 源文件名 新文件名:复制文件。

mv 文件名 文件夹名/:移动文件。

rm 文件名:删除文件。

(与文件夹有关操作加上 -r 指令)

./文件名:运行文件。

tar xvf XXXX.tar:解压tar文件。

gcc 源代码 (文件名):gcc编译。

 

 

Welcome to my fiendish little bomb. You have 6 phases with which to blow yourself up. Have a nice day!

Guess you like

Origin www.cnblogs.com/tanshiyin-20001111/p/11647151.html