45fan.com - ··¹Íø

ËÑË÷: ÄúµÄλÖãºÖ÷Ò³ > µçÄÔƵµÀ > ÔĶÁ×ÊѶ£ººÚ¿ÍÒ»°ãÖªµÀÄÄЩdosÃüÁDOSÃüÁî´óÈ«½éÉÜ(2)

ºÚ¿ÍÒ»°ãÖªµÀÄÄЩdosÃüÁDOSÃüÁî´óÈ«½éÉÜ(2)

2014-04-16 18:51:12 À´Ô´:www.45fan.com ¡¾´ó ÖРС¡¿

ver ÔÚDOS´°¿ÚÏÂÏÔʾ°æ±¾ÐÅÏ¢
winver µ¯³öÒ»¸ö´°¿ÚÏÔʾ°æ±¾ÐÅÏ¢£¨ÄÚ´æ´óС¡¢ÏµÍ³°æ±¾¡¢²¹¶¡°æ±¾¡¢¼ÆËã»úÃû£©
format ÅÌ·û /FS:ÀàÐÍ ¸ñʽ»¯´ÅÅÌ,ÀàÐÍ:FAT¡¢FAT32¡¢NTFS ,Àý£ºFormat D: /FS:NTFS
md¡¡Ä¿Â¼Ãû ´´½¨Ä¿Â¼
replace Ô´Îļþ¡¡ÒªÌæ»»ÎļþµÄĿ¼ Ìæ»»Îļþ
ren Ô­ÎļþÃû¡¡ÐÂÎļþÃû ÖØÃüÃûÎļþÃû
tree ÒÔÊ÷ÐνṹÏÔʾ³öĿ¼£¬ÓòÎÊý-f ½«ÁгöµÚ¸öÎļþ¼ÐÖÐÎļþÃû³Æ
type ÎļþÃû ÏÔʾÎı¾ÎļþµÄÄÚÈÝ
more ÎļþÃû ÖðÆÁÏÔʾÊä³öÎļþ
doskey ÒªËø¶¨µÄÃüÁ×Ö·û
doskey Òª½âËøÃüÁî= ΪDOSÌṩµÄËø¶¨ÃüÁî(±à¼­ÃüÁîÐУ¬ÖØе÷ÓÃwin2kÃüÁ²¢´´½¨ºê)¡£È磺Ëø¶¨dirÃüÁdoskey dir=entsky (²»ÄÜÓÃdoskey dir=dir)£»½âËø£ºdoskey dir=
taskmgr µ÷³öÈÎÎñ¹ÜÀíÆ÷
chkdsk /F D: ¼ì²é´ÅÅÌD²¢ÏÔʾ״̬±¨¸æ£»¼Ó²ÎÊý/f²¢ÐÞ¸´´ÅÅÌÉϵĴíÎó
tlntadmn telnt·þÎñadmn,¼üÈëtlntadmnÑ¡Ôñ3£¬ÔÙÑ¡Ôñ8,¾Í¿ÉÒÔ¸ü¸Ätelnet·þÎñĬÈ϶˿Ú23ΪÆäËüÈκζ˿Ú
exit Í˳öcmd.exe³ÌÐò»òÄ¿Ç°£¬ÓòÎÊý/BÔòÊÇÍ˳öµ±Ç°Åú´¦Àí½Å±¾¶ø²»ÊÇcmd.exe
path ·¾¶¿ÉÖ´ÐÐÎļþµÄÎļþÃû Ϊ¿ÉÖ´ÐÐÎļþÉèÖÃÒ»¸ö·¾¶¡£
cmd Æô¶¯Ò»¸öwin2KÃüÁî½âÊÍ´°¿Ú¡£²ÎÊý£º/eff¡¢/en ¹Ø±Õ¡¢¿ªÆôÃüÁîÀ©Õ¹£»¸üÎÒÏêϸ˵Ã÷¼ûcmd /?
regedit /s ×¢²á±íÎļþÃû µ¼Èë×¢²á±í£»²ÎÊý/SÖ¸°²¾²Ä£Ê½µ¼È룬ÎÞÈκÎÌáʾ£»
regedit /e ×¢²á±íÎļþÃû µ¼³ö×¢²á±í
www.45fan.com×îºÃµÄµçÄÔÅäÖÃÍø 
cacls ÎļþÃû¡¡²ÎÊý ÏÔʾ»òÐÞ¸ÄÎļþ·ÃÎÊ¿ØÖÆÁÐ±í£¨ACL£©——Õë¶ÔNTFS¸ñʽʱ¡£²ÎÊý£º/D Óû§Ãû:É趨¾Ü¾øijÓû§·ÃÎÊ£»/P Óû§Ãû:perm Ìæ»»Ö¸¶¨Óû§µÄ·ÃÎÊȨÏÞ£»/G Óû§Ãû:perm ¸³ÓèÖ¸¶¨Óû§·ÃÎÊȨÏÞ£»Perm ¿ÉÒÔÊÇ: N ÎÞ£¬R ¶ÁÈ¡£¬ W дÈ룬 C ¸ü¸Ä(дÈë)£¬F ÍêÈ«¿ØÖÆ£»Àý£ºcacls D: est.txt /D pub É趨d: est.txt¾Ü¾øpubÓû§·ÃÎÊ¡£
cacls ÎļþÃû ²é¿´ÎļþµÄ·ÃÎÊÓû§È¨ÏÞÁбí
REM Îı¾ÄÚÈÝ ÔÚÅú´¦ÀíÎļþÖÐÌí¼Ó×¢½â
netsh ²é¿´»ò¸ü¸Ä±¾µØÍøÂçÅäÖÃÇé¿ö

 

IIS·þÎñÃüÁ
iisreset /reboot ÖØÆôwin2k¼ÆËã»ú£¨µ«ÓÐÌáʾϵͳ½«ÖØÆôÐÅÏ¢³öÏÖ£©
iisreset /start»òstop Æô¶¯£¨Í£Ö¹£©ËùÓÐInternet·þÎñ
iisreset /restart ֹͣȻºóÖØÐÂÆô¶¯ËùÓÐInternet·þÎñ
iisreset /status ÏÔʾËùÓÐInternet·þÎñ״̬
iisreset /enable»òdisable ÔÚ±¾µØϵͳÉÏÆôÓ㨽ûÓã©Internet·þÎñµÄÖØÐÂÆô¶¯
iisreset /rebootonerror µ±Æô¶¯¡¢Í£Ö¹»òÖØÐÂÆô¶¯Internet·þÎñʱ£¬Èô·¢Éú´íÎó½«ÖØпª»ú
iisreset /noforce ÈôÎÞ·¨Í£Ö¹Internet·þÎñ£¬½«²»»áÇ¿ÖÆÖÕÖ¹Internet·þÎñ
iisreset /timeout ValÔÚµ½´ïÓâʱ¼ä£¨Ã룩ʱ£¬ÈÔδֹͣInternet·þÎñ£¬ÈôÖ¸¶¨/rebootonerror²ÎÊý£¬ÔòµçÄÔ½«»áÖØпª»ú¡£Ô¤ÉèֵΪÖØÐÂÆô¶¯20Ã룬ֹͣ60Ã룬ÖØпª»ú0Ãë¡£
FTP ÃüÁ (ºóÃæÓÐÏêϸ˵Ã÷ÄÚÈÝ)
ftpµÄÃüÁîÐиñʽΪ:
ftp £­v £­d £­i £­n £­g[Ö÷»úÃû] £­v ÏÔʾԶ³Ì·þÎñÆ÷µÄËùÓÐÏìÓ¦ÐÅÏ¢¡£
£­d ʹÓõ÷ÊÔ·½Ê½¡£
£­n ÏÞÖÆftpµÄ×Ô¶¯µÇ¼,¼´²»Ê¹ÓÃ.netrcÎļþ¡£
£­g È¡ÏûÈ«¾ÖÎļþÃû¡£
help [ÃüÁî] »ò £¿[ÃüÁî] ²é¿´ÃüÁî˵Ã÷
bye »ò quit ÖÕÖ¹Ö÷»úFTP½ø³Ì,²¢Í˳öFTP¹ÜÀí·½Ê½.
pwd Áгöµ±Ç°Ô¶¶ËÖ÷»úĿ¼
put »ò send ±¾µØÎļþÃû [ÉÏ´«µ½Ö÷»úÉϵÄÎļþÃû] ½«±¾µØÒ»¸öÎļþ´«ËÍÖÁÔ¶¶ËÖ÷»úÖÐ
get »ò recv [Ô¶³ÌÖ÷»úÎļþÃû] [ÏÂÔص½±¾µØºóµÄÎļþÃû] ´ÓÔ¶¶ËÖ÷»úÖд«ËÍÖÁ±¾µØÖ÷»úÖÐ
mget [remote-files] ´ÓÔ¶¶ËÖ÷»ú½ÓÊÕÒ»ÅúÎļþÖÁ±¾µØÖ÷»ú
mput local-files ½«±¾µØÖ÷»úÖÐÒ»ÅúÎļþ´«ËÍÖÁÔ¶¶ËÖ÷»ú
dir »ò ls [remote-directory] [local-file] Áгöµ±Ç°Ô¶¶ËÖ÷»úĿ¼ÖеÄÎļþ.Èç¹ûÓб¾µØÎļþ,¾Í½«½á¹ûдÖÁ±¾µØÎļþ
ascii É趨ÒÔASCII·½Ê½´«ËÍÎļþ(ȱʡֵ)
bin »ò image É趨ÒÔ¶þ½øÖÆ·½Ê½´«ËÍÎļþ
bell ÿÍê³ÉÒ»´ÎÎļþ´«ËÍ,±¨¾¯Ìáʾ
cdup ·µ»ØÉÏÒ»¼¶Ä¿Â¼
close ÖжÏÓëÔ¶³Ì·þÎñÆ÷µÄftp»á»°(Óëopen¶ÔÓ¦)
open host[port] ½¨Á¢Ö¸¶¨ftp·þÎñÆ÷Á¬½Ó,¿ÉÖ¸¶¨Á¬½Ó¶Ë¿Ú
delete ɾ³ýÔ¶¶ËÖ÷»úÖеÄÎļþ
mdelete [remote-files] ɾ³ýÒ»ÅúÎļþ
mkdir directory-name ÔÚÔ¶¶ËÖ÷»úÖн¨Á¢Ä¿Â¼
rename [from] [to] ¸Ä±äÔ¶¶ËÖ÷»úÖеÄÎļþÃû
rmdir directory-name ɾ³ýÔ¶¶ËÖ÷»úÖеÄĿ¼
status ÏÔʾµ±Ç°FTPµÄ״̬
system ÏÔʾԶ¶ËÖ÷»úϵͳÀàÐÍ
user user-name [password] [account] ÖØÐÂÒÔ±ðµÄÓû§ÃûµÇ¼Զ¶ËÖ÷»ú
open host [port] ÖØн¨Á¢Ò»¸öеÄÁ¬½Ó
prompt ½»»¥Ìáʾģʽ
macdef ¶¨ÒåºêÃüÁî
www.45fan.com×îºÃµÄµçÄÔÅäÖÃÍø 
lcd ¸Ä±äµ±Ç°±¾µØÖ÷»úµÄ¹¤×÷Ŀ¼,Èç¹ûȱʡ,¾Íתµ½µ±Ç°Óû§µÄHOMEĿ¼
chmod ¸Ä±äÔ¶¶ËÖ÷»úµÄÎļþȨÏÞ
case µ±ÎªONʱ,ÓÃMGETÃüÁ±´µÄÎļþÃûµ½±¾µØ»úÆ÷ÖÐ,È«²¿×ª»»ÎªÐ¡Ð´×Öĸ
cd remote£­dir ½øÈëÔ¶³ÌÖ÷»úĿ¼
cdup ½øÈëÔ¶³ÌÖ÷»úĿ¼µÄ¸¸Ä¿Â¼
! ÔÚ±¾µØ»úÖÐÖ´Ðн»»¥shell£¬exit»Øµ½ftp»·¾³,Èç!ls£ª.zip

MYSQL ÃüÁ
mysql -hÖ÷»úµØÖ· -uÓû§Ãû £­pÃÜÂë Á¬½ÓMYSQL;Èç¹û¸Õ°²×°ºÃMYSQL£¬³¬¼¶Óû§rootÊÇûÓÐÃÜÂëµÄ¡£
£¨Àý£ºmysql -h110.110.110.110 -Uroot -P123456
×¢:uÓëroot¿ÉÒÔ²»Óüӿոñ£¬ÆäËüÒ²Ò»Ñù£©
exit Í˳öMYSQL
mysqladmin -uÓû§Ãû -p¾ÉÃÜÂë password ÐÂÃÜÂë ÐÞ¸ÄÃÜÂë
grant select on Êý¾Ý¿â.* to Óû§Ãû@µÇ¼Ö÷»ú identified by "ÃÜÂë"; Ôö¼ÓÐÂÓû§¡££¨×¢Ò⣺ºÍÉÏÃ治ͬ£¬ÏÂÃæµÄÒòΪÊÇMYSQL»·¾³ÖеÄÃüÁËùÒÔºóÃ涼´øÒ»¸ö·ÖºÅ×÷ΪÃüÁî½áÊø·û£©
show databases; ÏÔʾÊý¾Ý¿âÁÐ±í¡£¸Õ¿ªÊ¼Ê±²ÅÁ½¸öÊý¾Ý¿â£ºmysqlºÍtest¡£mysql¿âºÜÖØÒªËüÀïÃæÓÐMYSQLµÄϵͳÐÅÏ¢£¬ÎÒÃǸÄÃÜÂëºÍÐÂÔöÓû§£¬Êµ¼ÊÉϾÍÊÇÓÃÕâ¸ö¿â½øÐвÙ×÷¡£
use mysql£»
show tables; ÏÔʾ¿âÖеÄÊý¾Ý±í
describe ±íÃû; ÏÔʾÊý¾Ý±íµÄ½á¹¹
create database ¿âÃû; ½¨¿â
use ¿âÃû£»
create table ±íÃû (×Ö¶ÎÉ趨Áбí)£» ½¨±í
drop database ¿âÃû;
drop table ±íÃû£» ɾ¿âºÍɾ±í
delete from ±íÃû; ½«±íÖмǼÇå¿Õ
select * from ±íÃû; ÏÔʾ±íÖеļǼ
mysqldump --opt school>school.bbb ±¸·ÝÊý¾Ý¿â£º£¨ÃüÁîÔÚDOSµÄmysqlinĿ¼ÏÂÖ´ÐУ©;×¢ÊÍ:½«Êý¾Ý¿âschool±¸·Ýµ½school.bbbÎļþ£¬school.bbbÊÇÒ»¸öÎı¾Îļþ£¬ÎļþÃûÈÎÈ¡£¬´ò¿ª¿´¿´Äã»áÓÐз¢ÏÖ¡£
win2003ϵͳÏÂÐÂÔöÃüÁʵÓò¿·Ý£©£º
shutdown /²ÎÊý ¹Ø±Õ»òÖØÆô±¾µØ»òÔ¶³ÌÖ÷»ú¡£
²ÎÊý˵Ã÷£º/S ¹Ø±ÕÖ÷»ú£¬/R ÖØÆôÖ÷»ú£¬ /T Êý×Ö É趨ÑÓʱµÄʱ¼ä£¬·¶Î§0¡«180ÃëÖ®¼ä£¬ /AÈ¡Ïû¿ª»ú£¬/M //IP Ö¸¶¨µÄÔ¶³ÌÖ÷»ú¡£
Àý£ºshutdown /r /t 0 Á¢¼´ÖØÆô±¾µØÖ÷»ú£¨ÎÞÑÓʱ£©
taskill /²ÎÊý ½ø³ÌÃû»ò½ø³ÌµÄpid ÖÕÖ¹Ò»¸ö»ò¶à¸öÈÎÎñºÍ½ø³Ì¡£
²ÎÊý˵Ã÷£º/PID ÒªÖÕÖ¹½ø³ÌµÄpid,¿ÉÓÃtasklistÃüÁî»ñµÃ¸÷½ø³ÌµÄpid£¬/IM ÒªÖÕÖ¹µÄ½ø³ÌµÄ½ø³ÌÃû£¬/F Ç¿ÖÆÖÕÖ¹½ø³Ì£¬/T ÖÕÖ¹Ö¸¶¨µÄ½ø³Ì¼°ËûËùÆô¶¯µÄ×Ó½ø³Ì¡£
tasklist ÏÔʾµ±Ç°ÔËÐÐÔÚ±¾µØºÍÔ¶³ÌÖ÷»úÉϵĽø³Ì¡¢·þÎñ¡¢·þÎñ¸÷½ø³ÌµÄ½ø³Ì±êʶ·û(PID)¡£
²ÎÊý˵Ã÷£º/M Áгöµ±Ç°½ø³Ì¼ÓÔصÄdllÎļþ£¬/SVC ÏÔʾ³öÿ¸ö½ø³Ì¶ÔÓ¦µÄ·þÎñ£¬ÎÞ²ÎÊýʱ¾ÍÖ»Áгöµ±Ç°µÄ½ø³Ì¡£

 

LinuxϵͳÏ»ù±¾ÃüÁ ÒªÇø·Ö´óСд
uname ÏÔʾ°æ±¾ÐÅÏ¢£¨Í¬win2KµÄ ver£©
dir ÏÔʾµ±Ç°Ä¿Â¼Îļþ,ls -al ÏÔʾ°üÀ¨Òþ²ØÎļþ£¨Í¬win2KµÄ dir£©
pwd ²éѯµ±Ç°ËùÔÚµÄĿ¼λÖÃ
cd cd¡¡..»Øµ½ÉÏÒ»²ãĿ¼£¬×¢Òâcd Óë..Ö®¼äÓпոñ¡£cd¡¡/·µ»Øµ½¸ùĿ¼¡£
cat ÎļþÃû ²é¿´ÎļþÄÚÈÝ
cat >abc.txt Íùabc.txtÎļþÖÐдÉÏÄÚÈÝ¡£
more ÎļþÃû ÒÔÒ»Ò³Ò»Ò³µÄ·½Ê½ÏÔʾһ¸öÎı¾Îļþ¡£
cp ¸´ÖÆÎļþ
mv Òƶ¯Îļþ
rm ÎļþÃû ɾ³ýÎļþ£¬rm -a Ŀ¼Ãûɾ³ýĿ¼¼°×ÓĿ¼
mkdir Ŀ¼Ãû ½¨Á¢Ä¿Â¼
rmdir ɾ³ý×ÓĿ¼£¬Ä¿Â¼ÄÚûÓÐÎĵµ¡£
chmod É趨µµ°¸»òĿ¼µÄ´æȡȨÏÞ
grep ÔÚµµ°¸ÖвéÕÒ×Ö·û´®
diff µµ°¸Îļþ±È½Ï
find µµ°¸ËÑÑ°
date ÏÖÔÚµÄÈÕÆÚ¡¢Ê±¼ä
who ²éѯĿǰºÍÄãʹÓÃͬһ̨»úÆ÷µÄÈËÒÔ¼°Loginʱ¼äµØµã
w ²éѯĿǰÉÏ»úÕßµÄÏêϸ×ÊÁÏ
whoami ²é¿´×Ô¼ºµÄÕʺÅÃû³Æ
groups ²é¿´Ä³È˵ÄGroup
passwd ¸ü¸ÄÃÜÂë
history ²é¿´×Ô¼ºÏ¹ýµÄÃüÁî
ps ÏÔʾ½ø³Ì״̬
kill ֹͣij½ø³Ì
gcc ºÚ¿Íͨ³£ÓÃËüÀ´±àÒëCÓïÑÔдµÄÎļþ
su ȨÏÞת»»ÎªÖ¸¶¨Ê¹ÓÃÕß
telnet IP telnetÁ¬½Ó¶Ô·½Ö÷»ú£¨Í¬win2K£©£¬µ±³öÏÖbash$ʱ¾Í˵Ã÷Á¬½Ó³É¹¦¡£
ftp ftpÁ¬½ÓÉÏij·þÎñÆ÷£¨Í¬win2K£©

 


±¾ÎĵØÖ·£ºhttp://www.45fan.com/a/diannaopindao/4478.html
Tags£º ´óÈ« ºÚ¿Í dosÃüÁî
±à¼­£ºÂ··¹Íø
¹ØÓÚÎÒÃÇ | ÁªÏµÎÒÃÇ | ÓÑÇéÁ´½Ó | ÍøÕ¾µØͼ | Sitemap | App | ·µ»Ø¶¥²¿