摘要: 通过改变内核启动参数获得根权限 启动电脑,等待GRUB菜单,如果GRUB菜单隐藏,可以按Esc调出(好像是Shift),如果设置了GRUB密码,按p来解锁,比如我们选择了 Ubuntu,kernel 2.6.12-8-386,按e在启动前编辑启动参数,选择kernel /boot/vmlinuz-2.6.12-8-386root=/dev/hda2 ro quiet splash,按e编辑选定的启动菜单项,在参数最后添加rwinit=/bin/bash,即改为如下命令行: grub edit> kernel /boot/vmlinuz-2.6.12-8-386 root=/dev/hda 阅读全文
posted @ 2011-03-01 14:58 Mose 阅读(224) 评论(0) 推荐(0) 编辑
摘要: 工具:nasmCygwin流程:1.boot.asmorg 07c00h ; 告诉编译器程序加载到7c00处mov ax, csmov ds, axmov es, axcall DispStr ; 调用显示字符串例程jmp $ ; 无限循环DispStr:mov ax, BootMessagemov bp, ax ; ES:BP = 串地址mov cx, 16 ; CX = 串长度mov ax, 01301h ; AH = 13, AL = 01hmov bx, 000ch ; 页号为0(BH = 0) 黑底红字(BL = 0Ch,高亮)mov dl, 0int 10h ; 10h 号中断re 阅读全文
posted @ 2011-03-01 10:39 Mose 阅读(287) 评论(0) 推荐(0) 编辑