dnmap--client/server

dnmap是一款基于nmap的分布式扫描工具,可用于大规模网络扫描任务。通过客户端-服务器架构,dnmap能够利用多个节点同时执行nmap扫描命令,提高扫描效率。

dnmap(distributed nmap)是一款基于nmap的分布式扫描工具,它能够用一个集群来对另外一个大型集群网络进行扫描。

root@kali:~# dnmap_client 
+----------------------------------------------------------------------+
| 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, eldraco@gmail.com                          |
| www.mateslab.com.ar                                                  |
+----------------------------------------------------------------------+

usage: /usr/bin/dnmap_client <options>
options:
  -s, --server-ip        IP address of dnmap server.
服务器ip  
  -p, --server-port      Port of dnmap server. Dnmap port defaults to 46001 服务器端口 ,默认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. 强制命令nmap最多使用最大速率,有助于降低nmap速率--max-rate参数很管用

root@kali:~# echo "nmap -F 192.168.1.0/24 -v -n -oA sub1" >> dnmap.txt
root@kali:~# echo "nmap -F 192.168.0.0/24 -v -n -oA sub0" >> dnmap.txt
root@kali:~# dnmap_server -f dnmap.txt
root@kali:~# dnmap_server 
+----------------------------------------------------------------------+
| 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, eldraco@gmail.com                          |
| www.mateslab.com.ar                                                  |
+----------------------------------------------------------------------+


usage: /usr/bin/dnmap_server <options>
options:
  -f, --nmap-commands        Nmap commands file Nmap命令文件
  -p, --port        TCP port where we listen for connections. 我们监听连接的TCP端口。
  -L, --log-file        Log file. Defaults to /var/log/dnmap_server.conf. 日志文件。默认为/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.

详细的水平。给出1到5之间的数字。默认为1。0级意味着安静。
  -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.

用于TLS连接的pem文件。默认情况下,我们使用服务器。在当前目录中提供的pem文件。
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-commands-file-name >。dnmaptrace的文件,知道它必须在哪里继续读取nmap命令文件。如果你想重新开始,

只要删除' < nmap-commands-file-name >。dnmaptrace”文件


root@kali:~# dnmap_client -s 192.168.1.15 -a dnmap-client1



从你的输出来看,**编译已经成功完成**,没有出现任何错误。以下是输出的详细解释: --- ### ✅ 编译过程说明 ```bash gcc -Wall -Wextra -g -Iinc -pthread src/client/cmain.o src/public/dictolprotocol.o src/public/dictolpublic.o -o client/dictolclient -lsqlite3 ``` - 这是将已经编译好的客户端目标文件(`.o`)链接成最终的可执行文件 `client/dictolclient`,并链接了 `sqlite3` 库。 ```bash gcc -Wall -Wextra -g -Iinc -pthread -c src/server/main.c -o src/server/main.o gcc -Wall -Wextra -g -Iinc -pthread -c src/server/handleclient.c -o src/server/handleclient.o ``` - 这两行是将服务端源文件 `.c` 编译为目标文件 `.o`。 ```bash gcc -Wall -Wextra -g -Iinc -pthread src/server/main.o src/server/handleclient.o src/public/dictolprotocol.o src/public/dictolpublic.o -o server/dictolserver -lsqlite3 ``` - 将服务端的目标文件和公共模块链接成最终的可执行文件 `server/dictolserver`。 --- ### ✅ 总结:你的项目已经成功编译! 你现在应该可以在以下路径找到两个可执行程序: - 客户端:`client/dictolclient` - 服务端:`server/dictolserver` 你可以运行它们来测试你的网络词典项目: ```bash ./server/dictolserver # 启动服务端 ./client/dictolclient # 启动客户端 ``` --- ### 🔍 如果你遇到运行问题,可以检查以下几点: 1. **服务端是否正常监听端口?** - 确保服务端绑定了正确的 IP 和端口。 - 使用 `netstat -tuln` 或 `ss -tuln` 查看监听状态。 2. **客户端是否能连接服务端?** - 确保 IP 和端口配置一致。 - 检查网络是否通(如本地测试可用 `127.0.0.1`)。 3. **数据库是否初始化?** - 确保 SQLite 数据库文件存在且路径正确。 ---
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值