Posts 制作持久加密Kali USB
Post
Cancel

制作持久加密Kali USB

1. 使用工具将镜像刻录到U盘

2.启动kali进入 Live USB Persistence模式

1
2
3
4
5
6
7
# 新建新分区
fdisk -l
fdisk /dev/sda
n
p
w
fdisk -l

3. 在新创建的分区上初始化LUKS加密

1
2
cryptsetup --verbose --verify-passphrase luksFormat /dev/sda3
cryptsetup luksOpen /dev/sda3 my_usb

4.创建 ext4 文件系统,并将其标记为“持久性“

1
2
mkfs.ext4 -L persistence /dev/mapper/my_usb 
e2label /dev/mapper/my_usb persistence

5. 挂载新加密分区,设置persistence.conf文件

1
2
3
4
mkdir -p /mnt/my_usb 
mount /dev/mapper /my_usb /mnt/my_usb 
echo "/ union" > /mnt/my_usb/persistence.conf 
umount /dev/mapper/my_usb

6. 关闭加密通道

cryptsetup luksClose /dev/mapper/my_usb

Ref.

This post is licensed under CC BY 4.0 by the author.

Netcat 综合指南

Kali 安装 Nessus

Comments powered by Disqus.