切换风格

Wizard Sky California Sunset glow Black Cloud Beige Dragon Lavender NewYear City Snow Flowers London
收藏本站XSS平台字符串转换jsfuck
134 网络扫描 : nbtscan[复制链接]
发表于 2012-9-9 22:07:15 | 显示全部楼层 |!read_mode!
安装
  1. root@Dis9Team:/# mkdir /pen/scanner/
  2. root@Dis9Team:~# cd /pen/scanner/
  3. root@Dis9Team:/pen/scanner# mkdir ntscan
  4. root@Dis9Team:/pen/scanner# cd ntscan/
  5. root@Dis9Team:/pen/scanner/ntscan# wget http://www.unixwiz.net/tools/nbtscan-source-1.0.35.tgz
  6. root@Dis9Team:/pen/scanner/ntscan# tar xf nbtscan-source-1.0.35.tgz
  7. root@Dis9Team:/pen/scanner/ntscan# make
  8. root@Dis9Team:/pen/scanner/ntscan# ln -s /pen/scanner/ntscan/nbtscan /usr/bin/nbtscan
  9. root@Dis9Team:/pen/scanner/ntscan# nbtscan -h
  10. nbtscan: invalid option -- 'h'
  11. nbtscan 1.0.35 - 2008-04-08 - http://www.unixwiz.net/tools/

  12. usage: nbtscan [options] target [targets...]

  13.    Targets are lists of IP addresses, DNS names, or address
  14.    ranges. Ranges can be in /nbits notation ("192.168.12.0/24")
  15.    or with a range in the last octet ("192.168.12.64-97")

  16.    -V        show Version information
  17.    -f        show Full NBT resource record responses (recommended)
  18.    -H        generate HTTP headers
  19.    -v        turn on more Verbose debugging
  20.    -n        No looking up inverse names of IP addresses responding
  21.    -p <n>    bind to UDP Port <n> (default=0)
  22.    -m        include MAC address in response (implied by '-f')
  23.    -T <n>    Timeout the no-responses in <n> seconds (default=2 secs)
  24.    -w <n>    Wait <n> msecs after each write (default=10 ms)
  25.    -t <n>    Try each address <n> tries (default=1)
  26.    -P        generate results in perl hashref format
  27. root@Dis9Team:/pen/scanner/ntscan#
复制代码
作用:这是一款用于扫描Windows网络上NetBIOS名字信息的程序。该程序对给出范围内的每一个地址发送NetBIOS状态查询,并且以易读的表格列出接收到的信息,对于每个响应的主机,NBTScan列出它的IP地址、NetBIOS计算机名、登录用户名和MAC地址。
阅读:http://baike.baidu.com/view/32803.htm
扫描详细信息
  1. root@Dis9Team:/pen/scanner/ntscan# nbtscan -f 192.168.40.129
  2. 192.168.40.129  DIS9\BRK-15B1BE5C87B            SHARING
  3.   BRK-15B1BE5C87B<00> UNIQUE Workstation Service
  4.   DIS9           <00> GROUP  Domain Name
  5.   BRK-15B1BE5C87B<20> UNIQUE File Server Service
  6.   DIS9           <1e> GROUP  Browser Service Elections
  7.   DIS9           <1d> UNIQUE Master Browser
  8.   ..__MSBROWSE__.<01> GROUP  Master Browser
  9.   00:0c:29:eb:f8:94   ETHER

  10. root@Dis9Team:/pen/scanner/ntscan#
复制代码

PERL版本
  1. # perl hashref output
  2. # use as  'my $ref = do filename;'
  3. {
  4.     'DATE'    => 'Thu Jun 21 06:04:27 2012',
  5.     'CMDLINE' => [
  6.      'nbtscan',
  7.      '-P',
  8.      '192.168.40.129',
  9.     ],
  10.     'NBTSCAN' => {
  11.      '192.168.40.129' => {
  12.          'rDNS'         => '',
  13.          'IPAddress'    => '192.168.40.129',
  14.          'MACAddress'   => '00:0c:29:eb:f8:94',
  15.          'DomainName'   => 'DIS9',
  16.          'ComputerName' => 'BRK-15B1BE5C87B',
  17.          'Sharing'      => 1,
  18.          'DC'           => 0,
  19.          'Exchange'     => 0,
  20.          'IIS'          => 0,
  21.          'LotusNotes'   => 0,
  22.          'Nodes'        => [
  23.           [ 'BRK-15B1BE5C87B', 0x00, 'UNIQUE', 'Workstation Service' ],
  24.           [ 'DIS9'          , 0x00, 'GROUP ', 'Domain Name' ],
  25.           [ 'BRK-15B1BE5C87B', 0x20, 'UNIQUE', 'File Server Service' ],
  26.           [ 'DIS9'          , 0x1E, 'GROUP ', 'Browser Service Elections' ],
  27.           [ 'DIS9'          , 0x1D, 'UNIQUE', 'Master Browser' ],
  28.           [ '\x01\x02__MSBROWSE__\x02', 0x01, 'GROUP ', 'Master Browser' ],
  29.          ],
  30.      },

  31.     }
  32. }
复制代码




操千曲而后晓声,观千剑而后识器。
发表于 2015-9-29 16:27:52 | 显示全部楼层
学习了。。。谢谢

代码区

GMT+8, 2020-10-23 10:05

Powered by Discuz! X2

© 2001-2018 Comsenz Inc.

回顶部