⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cryptoboot

📁 cryptoboot is set of tools for disk encryption on Unix. It is especially suited to encrypt root par
💻
字号:
#!/bin/sh# Script initializes encryption and launches target OS.# FIXME:# This script is suited to my particular computer,# (Debian 3.0/kernel 2.4.26) - make it more universal.PATH=/sbin:/bin# /usr in target fsPATH=$PATH:/usr/sbin:/usr/binexport PATH# Mount proc (when not mounted insmod shows warnings)mount -n -t proc proc /proc# Remount root rw, so insmod will be quiet# FIXME: get rid of this constantmount -n /dev/hda5 / -o rw,remount# Load required modulesmodprobe nls_iso8859-1modprobe nls_cp437modprobe vfatmodprobe fatmodprobe sd_mod#modprobe ds#modprobe yenta_socket#modprobe pcmcia_coremodprobe mousedevmodprobe usbmousemodprobe inputmodprobe usb-storagemodprobe scsi_modmodprobe usb-uhcimodprobe ehci-hcd#modprobe parport_pc#modprobe parport#modprobe via-ircc#modprobe irda#modprobe edd#modprobe thermal#modprobe processor#modprobe fan#modprobe button#modprobe battery#modprobe ac#modprobe agpgart#modprobe via82cxxx_audio#modprobe ac97_codec#modprobe uart401#modprobe sound#modprobe via-rhine#modprobe mii#modprobe af_packetmodprobe rtc#insmod.modutils usb-uhci 2> /dev/null#insmod.modutils nls_cp437 2> /dev/null#insmod.modutils nls_iso8859-1 2> /dev/null#insmod.modutils loop 2> /dev/null#insmod.modutils fat 2> /dev/null#insmod.modutils vfat 2> /dev/null#insmod.modutils sd_mod 2> /dev/nullsleep 3# Get masterKey and store it in shared memory segment# In case of failure - matrix has you ;-)readtoken || cmatrix -balu 3clear# Setup devices using key from shmcryptodevcfg -a# Remove authdata from shared memorymasterkeycfg clean# Mount target root filesystem (in our case it is on /dev/loop0)mount -n -t ext2 /dev/loop0 /target_root -o ro# Umount proc and remount root back roumount -n /proc# FIXME: get rid of this constantmount -n /dev/hda5 / -o ro,remountcd /target_rootpivot_root . cryptobootcd /exec chroot . /sbin/init < /dev/tty1 > /dev/tty1 2>&1

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -