´ó¼Ò°ïæÏëÏë
1..ϵͳÖÐËùÓÐÓû§µÄÓû§ÃûºÍUIDÏÔʾ³öÀ´
2.½á¹û°´Óû§ÃûÊ××Öĸ˳ÐòÅÅÐò
3.½á¹û°´UID´óСÅÅÐò
4.°ÑÎļþÖгöÏÖ×î¶àµÄÐÐÈ¡³öÀ´£¬²¢ÇÒÏÔʾ³öÏÖ¶àÉÙ´Î
5.¹ýÂ˳ö/etc/inittabÎļþµ±ÖеĿÕÐÐ
6.¹ýÂ˳öº¬ÓÐÁ½¸öbinÐÐ /etc/passwd
7ÔÚ/home ²éÕÒËùÓÐÕßÊÇuser1µÄÎļþºÍĿ¼Ȼºóɾ³ý£¬µ«Êǻᱨ´í
:0w223dc
h_h ÓÚ 2009-09-02 17:18:29·¢±í:
Ì«¾µäÁË£¬linux¾ÍÊÇÇ¿
ty8080 ÓÚ 2009-08-28 10:33:01·¢±í:
5.¹ýÂ˳ö/etc/inittabÎļþµ±ÖеĿÕÐÐ
grep '^$' /etc/inittab
ty8080 ÓÚ 2009-08-28 10:25:34·¢±í:
Ì«¸ÐлÁË¡£ÓÖѧÁËÒ»ÕС£(e:e2s
lon83129 ÓÚ 2009-08-27 18:46:29·¢±í:
Åú´¦ÀíºÍshell½Å±¾µÄ×÷Óñ¾À´¾ÍÒ»ÑùµÄ
yiyepianzhou ÓÚ 2009-08-27 18:23:44·¢±í:
ȯLS
ºÜ¾ÃûÅö¹ýdosÅú´¦ÀíÁË£¬ÉúÊèÁË):o:s
ÕâÀïÌù¸ö±ðÈËдµÄºÍÌâÄ¿ÓйصÄdosÅú´¦Àí[code]@echo off
:: ͳ¼Æÿ¸ö×Ö·û³öÏֵĴÎÊý£¬²¢Çó³ö³öÏÖ´ÎÊý×î¶àµÄ×Ö·û
setlocal ENABLEDELAYEDEXPANSION
set str=adadfdfseffserfefsefseetsdmg
set /a m=0,n=0,l=0
call :loop
:: ÒÔÏÂÊÇÇó³öÏÖ´ÎÊý×î¶àµÄ×Ö·û
for /f "tokens=1,2 delims==" %%i in ('set ×Ö·û£º') do (
echo %%i=%%j
if %%j GTR !l! set l=%%j& set m=%%i
)
echo.³öÏÖ´ÎÊý×î¶àµÄ%m%=%l%
pause
goto :EOF
:loop
call set m=%%str:~%n%,1%%
if not defined m goto :EOF
set /a "×Ö·û£º%m%+=1"
set /a n+=1
goto loop[/code]£¨ÔËÐл·¾³winxp£©
Æäʵdos Åú´¦ÀíÊǺÜÓÐÒâ˼µÄ(so):)
ty8080 ÓÚ 2009-08-27 11:25:52·¢±í:
ȺÖڵĺôÉùÕâôǿÁÒÁË£¬¿ì¸ø´ð°¸°É
lon83129 ÓÚ 2009-08-27 11:19:41·¢±í:
ÎÒÒ²ºÜÏëÖªµÀ
ÂúÁ³ºú×Ó ÓÚ 2009-08-27 10:00:27·¢±í:
Ç°Á½Ã»¿Õ·¢ÁËÌù¾Í³·£¬Ã»Ïëµ½´ó¼Ò¶¼ÕâôÈÈÐÄ
Ì«¸ÐлÁË {:3_125:}
ty8080 ÓÚ 2009-08-27 09:28:06·¢±í:
ºÜÏëÖªµÀdocÅú´¦ÀíÔõôд¡£ÄÜ·ñÖ¸µãÒ»ÏÂ{:3_114:}
yiyepianzhou ÓÚ 2009-08-26 20:16:31·¢±í:
Èç¹ûÓÃdosµÄÅú´¦Àí£¬Õâ¸ö»¹ÊDz»ËãÌ«ÄÑ(so):)
ty8080 ÓÚ 2009-08-26 17:09:54·¢±í:
4.°ÑÎļþÖгöÏÖ×î¶àµÄÐÐÈ¡³öÀ´£¬²¢ÇÒÏÔʾ³öÏÖ¶àÉÙ´Î
sort a|uniq -c|sort -n|tail -n 1
ÆäÖÐaÊDzâÊÔÓõÄÒ»¸öÎļþ
jiehe ÓÚ 2009-08-26 15:54:51·¢±í:
):o:s
Áõ³å ÓÚ 2009-08-26 15:36:45·¢±í:
ÔÎ
ty8080 ÓÚ 2009-08-26 14:23:23·¢±í:
ÊÔÑé¹ýÁË£¬Äܲé³öÀ´
l460618498 ÓÚ 2009-08-26 13:33:36·¢±í:
ûÓÐ-f°¡
ty8080 ÓÚ 2009-08-26 09:43:15·¢±í:
3.½á¹û°´UID´óСÅÅÐò
cut -f1,3 -d: /etc/passwd|sort -t: -k 2 -n
ty8080 ÓÚ 2009-08-26 09:41:21·¢±í:
2.½á¹û°´Óû§ÃûÊ××Öĸ˳ÐòÅÅÐò
ÓùܵÀ£¬È»ºósort¾ÍÐÐÁË
cut -f1,3 -d: /etc/passwd | sort
ty8080 ÓÚ 2009-08-26 09:36:09·¢±í:
1..ϵͳÖÐËùÓÐÓû§µÄÓû§ÃûºÍUIDÏÔʾ³öÀ´
cut -f1,3 -d: /etc/passwd
numdon ÓÚ 2009-08-26 00:26:39·¢±í:
»ù´¡±¿£¬ÎÞÒ»µÀ»á×ö
l460618498 ÓÚ 2009-08-25 18:55:40·¢±í:
²»ÖªµÀ
ÓêÒ¹»¨ ÓÚ 2009-08-25 18:41:11·¢±í:
ÄѲ»³ÉÖ¸ . ºÍ .. ²»ÄÜɾ³ý³ö´í
ÓêÒ¹»¨ ÓÚ 2009-08-25 18:22:10·¢±í:
[i=s] ±¾Ìû×îºóÓÉ ÓêÒ¹»¨ ÓÚ 2009-8-25 18:39 ±à¼ [/i]
È«ÊÇshellµÄ
ÕâµÚÆßÌ⣬»¹Èóö´íÊÇʲôÒâ˼
find /home -user user1 -exec rm -rf {} \;
¸ÄһϠ-exec ºóÃæµÄ²ÎÊýÈÃÆä³ö´í£¬²»Ì«¶®
ty8080 ÓÚ 2009-08-25 16:11:43·¢±í:
1# ÂúÁ³ºú×Ó
Ï°à»ØÈ¥°ïÄãÏëÏë