Home Database Mysql Tutorial 在U盘上安装BackTrack5 R2(带加密)

在U盘上安装BackTrack5 R2(带加密)

Jun 07, 2016 pm 03:27 PM
encryption study Install

最近在学习安全方面的技术,为了减少到处寻找工具和软件的麻烦,决定使用BackTrack这个综合的安全平台。它包含了不少象Metaploit、Nessus、aircrack这些优秀的安全软件。 为了保留原有的Windows操作系统,而且不想去碰双系统的麻烦,在虚拟机环境上安装了Bac

最近在学习安全方面的技术,为了减少到处寻找工具和软件的麻烦,决定使用BackTrack这个综合的安全平台。它包含了不少象Metaploit、Nessus、aircrack这些优秀的安全软件。

 

为了保留原有的Windows操作系统,而且不想去碰双系统的麻烦,在虚拟机环境上安装了BackTrack。可是,虚拟机认不到我的无线网卡,无法将其连进BackTrack,只好再想办法。BackTrack的官网上www.backtrack-linux.org有不少文档,其中有几个是介绍在U盘上安装BackTrack的。把BackTrack装在U盘上也不错,可以直接访问计算机的硬件,随便一台支持USB启动的计算机都能运行BackTrack。于是依照网上的文档实验了一把。

 

我的计算机系统比较简单:Win7家庭版64位,64位的绿色版VMWare,i5CPU,4G内存,互联网,一个16G的U盘(建议U盘容量选再大一点的,因为安装完以后如果想升级或更新软件,16G的空间就不够了;另外U盘的读写性能要好,不然会经常处于等待状态)

 

先弄个BackTrack的Live版ISO文件,官网上有。我选的是BackTrack5 R2 KDE 64位(文档上介绍的GNOME版)。

 

运行虚拟机,从ISO文件启动,BackTrack就跑起来了。用startx命令切换到图形界面。

 

安装过程需要从互联网下载安装软件,所以先检查互联网连接,我一般用nslookup www.qq.com,如果域名解析成功,互联网连接就没问题了。不行的话用ifconfig检查接口状态,用/etc/init.d/networking stop关闭网络接口,用/etc/init.d/networking start启动网络接口

 

在U盘上安装先要在系统中找到U盘,即找到它的路径,可以用dmesg | egrep hd.\|sd.命令,一般U盘的路径是/dev/sdb,不过不同环境不一样,例如,接了不止一个U盘的话,就不一定是这个路径了。

 

找到U盘。用fisk /dev/sdb对它做分区,分区步骤如下

1)建一个主分区(primary),大小500M左右,把它toggle为83,设为active(这个区后面是用作/boot分区的,路经是/dev/sdb1)

2)建一个扩展分区(extend),大小是剩下的空间(就是直接敲回车就行了)

3)建一个逻辑分区(logical),大小跟2)的一样(也是直接敲回车就行了,这个后面是用作/分区,路经是/dev/sdb5)

4)别忘了敲w命令哦,保存分区表

 

后面的安装需要一些软件和工具,所以要升级一下BackTrack

apt-get update

apt-get install hashalot

 

升级成功后,要对U盘上的分区启用加密

cryptsetup -y --cipher aes-xts-plain --key-size 512 luksFormat /dev/sdb5

这里会要求建立加密口令的

 

接着打开加密了的分区,在它上面建VG,LV(LVM方面的东西)

1)打开加密分区cryptsetup luksOpen /dev/sdb5 mybt5,这里会要求输入刚才见的加密口令

2)建PV,pvcreate /dev/mapper/mybt5

3)建VG,vgcreate vg /dev/mapper/mybt5

4)建LV,lvcreate -n swap -L 1024M vg(这个LV是以后作为U盘上的swap交换空间,如果内存不够,会使用这部分空间,而影响性能;如果觉得内存足够,可以不建)

                 lvcreate -n root -l 100%FREE vg

 

LV建好后,开始建文件系统

1)如果前面建了swap LV,mkswap /dev/mapper/vg-swap

2)mkfs.ext4 /dev/mapper/vg-root

 

为了减轻U盘的读写负荷,延长它的寿命,提供性能,建议把ext文件系统的日志功能关闭

tune2fs -o journal_data_writeback /dev/mapper/vg-root

tune2fs -O ^has_journal /dev/mapper/vg-root

e2fsck -f /dev/mapper/vg-root

 

现在,可以把BackTrack系统装到U盘上了,双击桌面的install Backtrack图标,按着指示操作

在U盘上安装BackTrack5 R2(带加密)

选择语言,直接点Forward就可以了

 

在U盘上安装BackTrack5 R2(带加密)

选择时区,Region选Asia(亚洲),Time Zone选China开头的

 

在U盘上安装BackTrack5 R2(带加密)

选键盘布局,直接点Forward就可以了

 

在U盘上安装BackTrack5 R2(带加密)

分区管理,这里要选Specify partitions manually(advanced)手工指定

我们要把/boot分区挂在/dev/sdb1上,把/分区挂在/dev/mapper/vg-root上,文件系统类型都是ext4

在U盘上安装BackTrack5 R2(带加密)

点Forward

 

接下来要点Advanced,在U盘上安装系统引导程序

在U盘上安装BackTrack5 R2(带加密)

在U盘上安装BackTrack5 R2(带加密)

点OK,再点Install

 

接下来就是漫长的等待了,所以要选读写性能好的U盘

在U盘上安装BackTrack5 R2(带加密)

在U盘上安装BackTrack5 R2(带加密)

在U盘上安装BackTrack5 R2(带加密)

在U盘上安装BackTrack5 R2(带加密)

到这一步,要点Continue Testing,因为我们还要继续,以让U盘里的BackTrack可以顺利启动

 

 执行blkid /dev/sdb5,记住UUID串

然后

mkdir /mnt/bt5

mount /dev/mapper/vg-root /mnt/bt5

mount /dev/sdb1 /mnt/bt5/boot

chroot /mnt/bt5

mount -t proc proc /proc

mount -t sysfs sys /sys

 

升级一下U盘里的BackTrack

apt-get update

apt-get install hashalot lvm2

 

 

接下来配置initramfs-tool创建initrd文件(这个文件在/boot目录下,是引导操作系统启动的程序)

用vi修改/etc/crypttab文件,增加这一行

mybt5      /dev/disk/by-uuid/         none         luks

(mybt5是前面创建的加密分区,是前面blkid命令显示的UUID)

 

由于是加密盘,启动时是需要输入加密口令的,但这里有个BUG,我们需要修复一下

用vi编辑/usr/share/initramfs-tools/scripts/local-top/cryptroot文件

在275行处插入一个行echo "Unlocking the disk $cryptsource ($crypttarget)"

把291行换成cryptkey="Enter passphrase: "

运行update-initramfs -u重建initrd文件

 

一般情况下,BackTrack启动时是图形界面的,通常要按F8切到命令行界面才能输入加密口令。可以编辑/boot/grub/grub.cfg文件,让BackTrack启动时直接进入命令行界面。在/boot/grub/grub.cfg文件里搜索splash(貌似只有一行有),找到后把这个“splash”删掉就可以了

 

好!U盘上的BackTrack装好了,用它来启动个电脑试试......成功了!就是U盘性能不理想(我的是16G,标称读10MB/s,写5MB/s),影响了操作速度。

 

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

How to install Podman on Ubuntu 24.04 How to install Podman on Ubuntu 24.04 Mar 22, 2024 am 11:26 AM

If you have used Docker, you must understand daemons, containers, and their functions. A daemon is a service that runs in the background when a container is already in use in any system. Podman is a free management tool for managing and creating containers without relying on any daemon such as Docker. Therefore, it has advantages in managing containers without the need for long-term backend services. Additionally, Podman does not require root-level permissions to be used. This guide discusses in detail how to install Podman on Ubuntu24. To update the system, we first need to update the system and open the Terminal shell of Ubuntu24. During both installation and upgrade processes, we need to use the command line. a simple

How to Install and Run the Ubuntu Notes App on Ubuntu 24.04 How to Install and Run the Ubuntu Notes App on Ubuntu 24.04 Mar 22, 2024 pm 04:40 PM

While studying in high school, some students take very clear and accurate notes, taking more notes than others in the same class. For some, note-taking is a hobby, while for others, it is a necessity when they easily forget small information about anything important. Microsoft's NTFS application is particularly useful for students who wish to save important notes beyond regular lectures. In this article, we will describe the installation of Ubuntu applications on Ubuntu24. Updating the Ubuntu System Before installing the Ubuntu installer, on Ubuntu24 we need to ensure that the newly configured system has been updated. We can use the most famous "a" in Ubuntu system

Detailed steps to install Go language on Win7 computer Detailed steps to install Go language on Win7 computer Mar 27, 2024 pm 02:00 PM

Detailed steps to install Go language on Win7 computer Go (also known as Golang) is an open source programming language developed by Google. It is simple, efficient and has excellent concurrency performance. It is suitable for the development of cloud services, network applications and back-end systems. . Installing the Go language on a Win7 computer allows you to quickly get started with the language and start writing Go programs. The following will introduce in detail the steps to install the Go language on a Win7 computer, and attach specific code examples. Step 1: Download the Go language installation package and visit the Go official website

How to install Go language under Win7 system? How to install Go language under Win7 system? Mar 27, 2024 pm 01:42 PM

Installing Go language under Win7 system is a relatively simple operation. Just follow the following steps to successfully install it. The following will introduce in detail how to install Go language under Win7 system. Step 1: Download the Go language installation package. First, open the Go language official website (https://golang.org/) and enter the download page. On the download page, select the installation package version compatible with Win7 system to download. Click the Download button and wait for the installation package to download. Step 2: Install Go language

Complete guide to install FTPS service on Linux system Complete guide to install FTPS service on Linux system Mar 19, 2024 am 11:39 AM

Title: A complete guide to installing FTPS service under Linux system In Linux system, setting up an FTP server is a common requirement. However, in order to enhance the security of data transmission, we can choose to install the FTPS service, which adds SSL/TLS encryption function based on the FTP protocol. Through the FTPS service, we can upload and download files while ensuring the security of data transmission. This article will provide a detailed guide for installing FTPS service under Linux system and provide specific instructions.

Essential PHP programs: Install these to run smoothly! Essential PHP programs: Install these to run smoothly! Mar 27, 2024 pm 05:54 PM

Essential PHP programs: Install these to run smoothly! PHP is a popular server-side scripting language that is widely used to develop web applications. To successfully run a PHP program, you first need to install some necessary software and tools on the server. In this article, we will introduce the software and tools that must be installed, along with specific code examples to help you run PHP programs smoothly. 1. PHP interpreter The core of the PHP program is the PHP interpreter, which is responsible for parsing and executing PHP code. To install the PHP interpreter, you can follow

Let's learn how to input the root number in Word together Let's learn how to input the root number in Word together Mar 19, 2024 pm 08:52 PM

When editing text content in Word, you sometimes need to enter formula symbols. Some guys don’t know how to input the root number in Word, so Xiaomian asked me to share with my friends a tutorial on how to input the root number in Word. Hope it helps my friends. First, open the Word software on your computer, then open the file you want to edit, and move the cursor to the location where you need to insert the root sign, refer to the picture example below. 2. Select [Insert], and then select [Formula] in the symbol. As shown in the red circle in the picture below: 3. Then select [Insert New Formula] below. As shown in the red circle in the picture below: 4. Select [Radical Formula], and then select the appropriate root sign. As shown in the red circle in the picture below:

Want to use Go language on Hongmeng system? Teach you how to install it! Want to use Go language on Hongmeng system? Teach you how to install it! Mar 23, 2024 am 09:51 AM

Hongmeng OS is an operating system independently developed by Huawei and is dedicated to providing support for various smart devices. The Go language is a concise, fast, and concurrent programming language that has become increasingly popular in the field of software development in recent years. This article will teach you how to use Go language on Hongmeng system, and provide specific installation steps and code examples. Step 1: Preparation Before starting, make sure your Hongmeng system has been correctly installed and the development environment has been configured. At the same time, you need to install the Go language development environment on your computer, which can be done through [official

See all articles