实战U盘装PE+kali_linux_persistence+OTG

来源:互联网 发布:python 乘方 编辑:程序博客网 时间:2024/06/05 04:04

转载于http://m.aichengxu.com/diannao/24639706.htm

看到好文章要及时分享!


基本上可以照着上面的教程一步一步做。但是我在实操时会碰到很多的问题。

教程中要用到的软件,网上都有。建议去官网下载。都是free的。文章最后附上链接。

在使用win32diskmagerghost32上基本上没有问题。

使用bootice时对我们这种小白来说难免会有疑惑,命名加了主引导记录可为什么在文件系统中看不见呢!如果了解操作系统的同学,应该知道。

这里我不做解释,教程上说将menu.lst和GRLDR两个文件移入U盘的第一分区ntfs。(其实U盘的第一分区也可以是FAT32,由于我的U盘支持otg功能,如果是NTFS,通常手机识别不了,就算可以识别,也非常容易造成U盘的损坏。我可不想OTG功能被浪费了),但是我们并没有看到这两个文件。

我们可以下载一个grub4dos,将GRLDR拷贝出来即可,另外的menu.lst就需要自己手动敲,或者复制粘贴。


配置好这两个文件之后。(System V~~~,这个文件不用管它,我的系统自动生成,不知道什么东西),另外说一下,我刚开始按着教程来写menu.lst文件,最后能正确引导进kali persistence 但是却怎么也引导不进PE,随后百度,多次尝试后解决问题。如果同学也遇到相同的问题,可以参考我的代码。(看我人多好,省的你们撸代码了)

color blue/green yellow/red white/magentawhite/magentatimeout 30## menu border colorcolor border=0xEEFFEE## set vbe mode##graphicsmode -1 640 480:800## loading splashimage##splashimage /boot/grub/splashimage.xpm ||splashimage /boot/grub/splashimage.bmpdefault 0## Menu AutoNumber##write 0x8274 0x2001 title open PE systemfallback 0find --set-root /iso/xiaoniuPE.iso##map /iso/xiaoniuPE.iso (0xff) ||map --mem /iso/xiaoniuPE.iso (0xff)##map --men /iso/xiaoniuPE.iso (0xff) ! map##/iso/xiaoniuPE.iso (0xff)##map --e820cycles=0map --hookchainloader (0xff)  title parrot(persistence)find --set-root /g2ldr.mbrkernel /live/vmlinuz boot=livenoconfig=sudousername=root hostname=kali persistenceinitrd /live/initrd.img##boot  title Boot the HDrootnoverify (hd1,0)makeactivechainloader +1  title parrot livefind --set-root /g2ldr.mbrkernel /live/vmlinuz boot=livenoconfig=sudousername=root hostname=kaliinitrd /live/initrd.img  title parrot(failsafe)find --set-root /g2ldr.mbrkernel /live/vmlinuz boot=live configmemtest noapic noapm nodma nomce nolapicnomodeset nosmp nosplash vga=normalinitrd /live/initrd.img  title parrot(forensic mode)find --set-root /g2ldr.mbrkernel /live/vmlinuz boot=livenoconfig=sudousername=root hostname=kali noswapnoautomountinitrd /live/initrd.img  title parrot installfind --set-root /g2ldr.mbrkernel /install/gtk/vmlinuz vga=788 --quietinitrd /install/gtk/initrd.gz  title parrot install(graphical)find --set-root /g2ldr.mbrkernel /install/gtk/vmlinuzvideo=vesa;ywrap,mtrr vga=788 -- quietinitrd /install/gtk/initrd.gz  title parrot install(with speech synthesis)find --set-root /g2ldr.mbrkernel /install/gtk/vmlinuzvideo=vesa;ywrap,mtrr vga=788speakup.synth=soft -- quietinitrd /install/gtk/initrd.gz title GRUBLinesavedefault --wait=2commandline title reboot reboot title shutdown halt \00


我们就需要重启电脑,修改BIOS,从U盘启动,他会引导进一个十分丑的界面,选择kali persistence (kali默认用户名root ,密码toor)

照着教程做。注意了。有些地方是有空格的。这几条命令可以百度一下。创建,挂载,写入,卸载。

最后大功告成!

Ps:U盘被折腾了这么久,不知道会不会折寿,建议没事别瞎搞。

链接:http://pan.baidu.com/s/1slGvZzR 密码:9t5x

附上几张图:






原创粉丝点击