¹ØÓÚlinuxÍü¼ÇÃÜÂëµÄÒ»¸ö×î¼òµ¥µÄ·½·¨
ÍøÉÏÓкܶàµÄ·½·¨£¬¹ØÓÚÍü¼ÇlinuxµÇ¼ÃÜÂëÖ®ºóÓ¦¸ÃÔõô°ì¡£ÓÐÎåÖÖ·½·¨£¬¶¼ºÜºÃ¡£
±¾ÈËÒÔΪÓÃgrubÒýµ¼µÄÄÇÖÖ×îʵÓ㬺Ǻǣ¡ÊÔÁËһϣ¬¹ûÈ»¿ÉÒÔ£¡£¡
grubÒýµ¼
1. ÔÚ³öÏÖgrub»Ãæʱ£¬Ñ¡ÔñlinuxÒýµ¼ÏȻºó°´e¼ü
2. Ñ¡ÔñÒÔkernel¿ªÍ·µÄÒ»ÐУ¬ÔÙ°´e ¼ü£¬ÔÚ´ËÐеÄĩ⣬°´¿Õ¸ñ¼üºóÊäÈësingle£¬ÒԻسµ¼üÀ´Í˳ö±à¼Ä£Ê½£»
3. »Ø³µ·µ»Ø£¬È»ºó°´b¼üÆô¶¯£¬¼´¿ÉÖ±½Ó½øÈëlinuxµ¥Óû§Ä£Ê½
4. vi /etc/passwd
ɾ³ýrootÏîÖеÄÃÜÂë
(ÕâÀïÒ²¿ÉÒÔÖ±½ÓʹÓÃpasswdÃüÁîÖØÐÂÉèÖÃrootµÄÃÜÂë)
5¡¢rebootÖØÆô£¬rootÃÜÂëΪ¿Õ
Ïà¹ØÎĵµ£º
linuxÖжÔ×Ö·û´®µÄ´¦Àí£º
1.×Ö·û´®·Ö¸îÀýÈç AAAAA-BBBBBB °´-·Ö¸îȥǰºóÁ½²¿·Ö
cut £º
[rich@localhost ~]$ str=AAAAA-BBBBBB
[rich@localhost ~]$ echo $str | cut -d "-" -f 1
AAAAA
[rich@localhost ~]$ echo $str | cut -d "-" -f 2
BBBBBB
½âÊÍ£ºA £ü B ½«AÃüÁîµ ......
ÔÚlinuxÖÐËùÓеÄsyscall¶¼Êǵ÷ÓÃint 0x80, int 0x80µÄÖжϷþÎñ³ÌÐòΪsystem_call(arch/x86/kernel/traps_32.c:set_system_gate(SYSCALL_VECTOR,&system_call). system_call (arch/x86/entry_32.S)×îÖÕcall *sys_call_table(,%eax,4)À´Íê³ÉÒ»¸ösyscallµ÷ÓÃ.
¼´ int 0x80 -> system_call -> s ......
×¼±¸ºÃÁ½Ì¨ÒѾÉÏÍøµÄµçÄÔ¡£
1¡¢ÉèÖõȻáÒªÁ¬½Óµ½µÄLinuxϵͳ
(1)±ØÐëÊÇ°²×°ÁËtelnetÈí¼þµÄϵͳ£¬ÆäÖиÃÈí¼þ·ÖΪÁ½²¿·Ö£¬·Ö±ðÊÇtelnet-clientºÍtelnet-server£¬ÆäÖÐÇ°ÕßĬÈÏÒѾװºÃ£¬¶øºóÕßÔòÐè×Ô¼º½øÐа²×°¡£ÔÚÕâÀ±ÊÕß×Ô¼ºµÄÊÇRedHatµÄFC6ϵͳ£¬ËùÒÔ¿ÉÒÔÊäÈëÃüÁîyum install telnet-serve ......