X
WվO| | DΈD| | Fk| ϵy| ԇJC| Wjg| ܛ| XP| ČWƷ
 
Wվ_l| W| ϵy| DD| ԇJC| | | Ӳg| Fk| Wjg| ЦԒl
λã X-> -> Wjg-> WjA-> Wj3

Wj3
ߣ Դnet130 rg2005-1-14
P
  • Wj6
  • Wj5
  • Wj4
  • Wj2
  • Wj1
  • DelphiЅ
  • P:
    ͨ^ WINS עԵ NetBIOS QעՈI룺

    nbtstat -RR

    Ҫÿ 5 IP ַ@ʾ NetBIOS ԒyӋYՈI룺

    nbtstat -S 5

    Netstat
    @ʾӵ TCP BӋC Ķ˿̫WyӋϢIP ·ɱIPv4 yӋϢ IPICMPTCP UDP fhԼ IPv6 yӋϢ IPv6ICMPv6ͨ^ IPv6 TCP Լͨ^ IPv6 UDP fhʹÕrnetstat @ʾӵ TCP B

    Z
    netstat [-a] [-e] [-n] [-o] [-p Protocol] [-r] [-s] [Interval]


    -a
    @ʾлӵ TCP BԼӋC  TCP UDP ˿
    -e
    @ʾ̫WyӋϢlͺͽյֹԓc -s Yʹ
    -n
    @ʾӵ TCP B^ֻԔʽFַͶ˿̖sLԇ_Q
    -o
    @ʾӵ TCP BӲÿBӵM ID (PID)??Windows ΄չеġM̡x헿ҵ PID đóԓc -a-n -p Yʹ
    -p Protocol
    @ʾ Protocol ָąfhB@NrProtocol tcpudptcpv6 udpv6ԓc -s һʹðfh@ʾyӋϢt Protocol tcpudpicmpiptcpv6udpv6icmpv6 ipv6
    -s
    fh@ʾyӋϢĬJr@ʾ TCPUDPICMP IP fhĽyӋϢb Windows XP IPv6 fh͕@ʾP IPv6 ϵ TCPIPv6 ϵ UDPICMPv6 IPv6 fhĽyӋϢ?ʹ?-p ָfh
    -r
    @ʾ IP ·ɱăԓc route print ȃr
    Interval
    ÿ Interval @ʾһxϢ CTRL+C ֹͣ@ʾyӋϢʡԓnetstat ֻӡһxϢ
    /?
    ʾ@ʾ
    ע
    cԓһʹõąBַ (-) Զб (/) ǰY
    Netstat ṩнyӋϢ
    Proto
    fhQTCP UDP

    Local Address
    ӋC IP ַʹõĶ˿ָ̖ -n @ʾc IP ַͶ˿ڵQıӋCQ˿δ˿̖*@ʾ

    Foreign Address
    Bԓ۵hӋC IP ַͶ˿̖aָ -n @ʾc IP ַͶ˿ڌQ˿δ˿̖*@ʾ

    (state)
    TCP BӵĠB?٠ܵ״̬ȿzn?

    CLOSE_WAIT

    CLOSED

    ESTABLISHED

    FIN_WAIT_1

    FIN_WAIT_2

    LAST_ACK

    LISTEN

    SYN_RECEIVED

    SYN_SEND

    TIMED_WAIT

    P TCP BӠBϢՈ RFC 793

    ֻЮWHfh (TCP/IP) fh WjBаbWjmԵĽMrԓſ

    Ҫ@ʾ̫WyӋϢЅfhĽyӋϢՈI

    netstat -e -s

    ҪH@ʾ TCP UDP fhĽyӋϢՈI

    netstat -s -p tcp udp

    Ҫÿ 5 @ʾһλӵ TCP BӺM IDՈI

    nbtstat -o 5

    ҪԔʽ@ʾӵ TCP BӺM IDՈI

    nbtstat -n Co

    Runas
    SÑ\ָĹߺͳÑǰṩę

    Z
    runas [{/profile|/noprofile}] [/env] [/netonly] [/smartcard] [/showtrustlevels] [/trustlevel] /user:UserAccountName program


    /profile
    dÑļ/profile ĬJֵ
    /no profile
    /noprofile ָdÑļ@ʹódĸӿһЩóҲe`
    /env
    ָǰʹõľWjhÑıحh
    /netonly
    ָָÑϢֻhL
    /smartcard
    /smartcard ʾ{Ƿܿṩ
    /showtrustlevels
    г /trustlevel _P
    /trustlevel
    ָó\ڵڙ༉eʹ /showtrustlevels 鿴õμe
    /user:UserAccountName
    ָ\гÑ􎤑QÑ􎤑ĸʽ [email protected] domain\user

    ָҪ /user ָĎ\еij
    /?
    ʾ@ʾ
    ע
    TʹһƵĎճǹԵ΄ֻڈض΄Օrʹһ޸ĎҪ^עNµ䛾@ӵ΄һ㎤Ȼʹ runas \Ҫ޵Ĺ
    P runas ʹ÷Ո醡P}
    M runas ͨ Administrator ʹǃH Administrator κΓжÑÂÑ{ʹ runas \гMMC _򡰿塱
    ҪӋCʹ Administrator  /user:IЅ֮һ
    /user:[email protected]

    /user:ComputerName\AdministratorAccountName

    Tʹ@IЅ֮һ
    /user:[email protected]

    /useromainName\AdministratorAccountName

    runas S\г (*.exe) MMC _ (*.msc)ͱ MMC _Ŀݷʽ塱һM硰UsersPower UsersMijɆT䛵ӋCrԹT\
    ʹ runas 톢κγMMC 򡰿塱ֻҪṩmÑ􎤑ܴaϢÑ􎤑;е䛵ӋCҳMMC _塱ϵyмԓÑ􎤑.
    runas Sķ\йߵӋCҪķڲͬУ
    Lԇʹ runas ľWjλÆӳMMC _򡰿塱ܕÁBӾWjđ{cÁ톢ӳđ{ͬʧߵđ{ܟoLͬһWj
    Щ硰ӡCļAg Windows 2000 _ʹ runas 
    runas ʧtǛ]\ RunAs ջʹõÑ􎤑oЧҪz RunAs յĠBՈڡӋCІΓպ͑óȻΓաҪyԇÑ􎤑ՈLԇʹԓ䛺m

    ҪڱӋCԹT݆ Windows 2000 ʾЌՈI룺

    runas /user:localmachinename\administrator cmd
    ϵyʾrITܴa

    Ҫʹ companydomain\domainadmin T􆢄ӡӋCԪՈI룺

    runas /user:companydomain\domainadmin "mmc %windir%\system32\compmgmt.msc"
    ʾrI뎤ܴa

    Ҫʹ domain.microsoft.com еT user ӡӛ±ՈI룺

    runas /user:[email protected] "notepad my_file.txt"
    ʾrI뎤ܴa

    Ҫʾд MMC _헻cijһՈI룺

    runas /netonly /user:domain\username "command"
    domain\username ޹ÑʾrI뎤ܴa
    Route
    ڱ IP ·ɱ@ʾ޸ėlĿʹò route @ʾ

    Z
    route [-f] [-p] [Command [Destination] [mask Netmask] [Gateway] [metric Metric]] [if Interface]]


    -f
    в·ɣWڴa 255.255.255.255 ·ɣhؾWj·ɣĿ˞ 127.0.0.0Wڴa 255.255.255.0 ·ɣಥ·ɣĿ˞ 224.0.0.0Wڴa 240.0.0.0 ·ɣėlĿ·ɱc֮һ addchange deleteYʹ\֮ǰ
    -p
    c add ͬʹÕrָ·ɱӵעԱچ TCP/IP fhĕrʼ IP ·ɱĬJr TCP/IP fhrӵ·c print һʹÕrt@ʾ·бԴ˅·ɴ惦עԱеλ HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\PersistentRoutes
    Command
    ָҪ\е±гЧ Ŀ
    add ·
    change ĬF·
    delete h·
    print ӡ·

    Destination
    ָ·ɵľWjĿ˵ַĿ˵ַһ IP WjַоWjַCַλOÞ 0C· IP ַĬJ· 0.0.0.0
    mask subnetmask
    ָcWjĿ˵ַP“ľWڴaַQ֮ӾWڴaӾWڴa IP WjַһmӾWڴaC· 255.255.255.255 ĬJ· 0.0.0.0tʹӾWڴa 255.255.255.255x·ɕrĿ˵ַӾWڴa֮gPϵĿ˵ַܱӾWڴaԔ?仰?ӾWڴaһλ 0tĿ˵ַеČλͲOÞ 1
    Gateway
    ָ^ɾWjĿ˺ӾWڴaxĿ_ĵַǰһһSc IP ַڱBӵӾW·WPַǷoBӾWӿڵ IP ַҪ^һ·ſõh·WPַһo·ֱ_ IP ַ
    metric Metric
    ·ָScֵ 1 ~ 9999Á·ɱĶ·xcDlеĿ˵ַƥ·x·ɾٵScSc܉ӳScĔ·ٶ·ɿ·Լ
    if Interface
    ָĿ˿Ե_ĽӿڵĽӿʹ route print @ʾӿڼ䌦ӿбڽӿʹʮMƻʮMƵֵʮMֵҪʮMƔǰ 0x if rӿɾWPַ_
    /?
    ʾ@ʾ
    ע
    ·ɱ Sc һеֵ^S TCP/IP ÿ LAN

    [T:tonny]

    P
  • Wj6
  • Wj5
  • Wj4
  • Wj2
  • Wj1
  • DelphiЅ
  • P:
    վ]

    CPI~:

    WjA
    ֪R
    }
    Wjȫ
    MWg
    WjA
    Wj

    X̳x
    Wj1
    Wj3
    Wj4
    Wj5
    PpgB,pgԔ...
    WПoLĽQ
    MACַԭú
    TCP˿ڵ©Ͳh...
    2006¹
    WÆ}}