dnmap包装说明

dnmap是一个框架,以分发NMAP扫描多个客户端之一。它读取使用nmap命令已创建的文件,并把这些命令连接到它的每一个客户。

框架使用客户端/服务器体系结构。服务器知道该怎么做和客户做到这一点。所有的逻辑和统计数据的服务器进行管理。 NMAP输出存储服务器和客户端上。

通常你会想这个,如果你要扫描一大群的主机,你有几个不同的网络连接(或朋友说,希望能帮助你)。

资料来源:http://mateslab.weebly.com/dnmap-the-distributed-nmap.html
dnmap首页 | 卡利dnmap回购

  • 作者:www.mateslab.com.ar
  • 许可:GPLv3的

包含在dnmap包工具

dnmap_client - 分布式NMAP框架(客户端)
[email protected]:~# dnmap_client -h
+----------------------------------------------------------------------+
| dnmap Client Version 0.6                                             |
| This program is free software; you can redistribute it and/or modify |
| it under the terms of the GNU General Public License as published by |
| the Free Software Foundation; either version 2 of the License, or    |
| (at your option) any later version.                                  |
|                                                                      |
| Author: Garcia Sebastian, [email protected]                          |
| www.mateslab.com.ar                                                  |
+----------------------------------------------------------------------+

usage: /usr/bin/dnmap_client <options>
options:
  -s, --server-ip        IP address of dnmap server.
  -p, --server-port      Port of dnmap server. Dnmap port defaults to 46001
  -a, --alias      Your name alias so we can give credit to you for your help. Optional
  -d, --debug      Debuging.
  -m, --max-rate      Force nmaps commands to use at most this rate. Useful to slow nmap down. Adds the --max-rate parameter.

dnmap_server - 分布式NMAP架构(服务器)

[email protected]:~# dnmap_server -h
+----------------------------------------------------------------------+
| dnmap_server Version 0.6                                             |
| This program is free software; you can redistribute it and/or modify |
| it under the terms of the GNU General Public License as published by |
| the Free Software Foundation; either version 2 of the License, or    |
| (at your option) any later version.                                  |
|                                                                      |
| Author: Garcia Sebastian, [email protected]                          |
| www.mateslab.com.ar                                                  |
+----------------------------------------------------------------------+

usage: /usr/bin/dnmap_server <options>
options:
  -f, --nmap-commands        Nmap commands file
  -p, --port        TCP port where we listen for connections.
  -L, --log-file        Log file. Defaults to /var/log/dnmap_server.conf.
  -l, --log-level       Log level. Defaults to info.
  -v, --verbose_level         Verbose level. Give a number between 1 and 5. Defaults to 1. Level 0 means be quiet.
  -t, --client-timeout         How many time should we wait before marking a client Offline. We still remember its values just in case it cames back.
  -s, --sort            Field to sort the statical value. You can choose from: Alias, #Commands, UpTime, RunCmdXMin, AvrCmdXMin, Status
  -P, --pem-file         pem file to use for TLS connection. By default we use the server.pem file provided with the server in the current directory.

dnmap_server uses a '<nmap-commands-file-name>.dnmaptrace' file to know where it must continue reading the nmap commands file. If you want to start over again,
just delete the '<nmap-commands-file-name>.dnmaptrace' file

dnmap_server用法示例

创建一个包含NMAP命令,客户端将运行一个文本文件。传递文件dnmap.txt(-f)来启动服务器:

[email protected]:~# echo "nmap -F 192.168.1.0/24 -v -n -oA sub1" >> dnmap.txt
[email protected]:~# echo "nmap -F 192.168.0.0/24 -v -n -oA sub0" >> dnmap.txt
[email protected]:~# dnmap_server -f dnmap.txt
+----------------------------------------------------------------------+
| dnmap_server Version 0.6                                             |
| This program is free software; you can redistribute it and/or modify |
| it under the terms of the GNU General Public License as published by |
| the Free Software Foundation; either version 2 of the License, or    |
| (at your option) any later version.                                  |
|                                                                      |
| Author: Garcia Sebastian, [email protected]                          |
| www.mateslab.com.ar                                                  |
+----------------------------------------------------------------------+

=| MET:0:00:00.000544 | Amount of Online clients: 0 |=

dnmap_client用法示例

连接到服务器192.168.1.15使用别名dnmap-客户端1(-a)(-s):

[email protected]:~# dnmap_client -s 192.168.1.15 -a dnmap-client1
+----------------------------------------------------------------------+
| dnmap Client Version 0.6                                             |
| This program is free software; you can redistribute it and/or modify |
| it under the terms of the GNU General Public License as published by |
| the Free Software Foundation; either version 2 of the License, or    |
| (at your option) any later version.                                  |
|                                                                      |
| Author: Garcia Sebastian, [email protected]                          |
| www.mateslab.com.ar                                                  |
+----------------------------------------------------------------------+

Client Started...
Nmap output files stored in 'nmap_output' directory...
Starting connection...
Client connected succesfully...
Waiting for more commands....
        Command Executed: nmap -F 192.168.1.0/24 -v -n -oA sub1