|
1 | 1 | # lmap |
2 | 2 |
|
3 | | -lmap (LinuxHub's Nmap) is the nmap next generation pro plus max, made by 浪神 (from THE GREAT [LinuxHub](https://github.com/LinuxHub-Group)). |
| 3 | +[](https://www.gnu.org/licenses/gpl-3.0) |
4 | 4 |
|
5 | | -# LICENSE |
| 5 | +<h3 align="center">LinuxHub's Nmap - 下一代网络扫描工具</h3> |
6 | 6 |
|
7 | | - Copyright (C) <2021> <LinuxHub-Group> |
| 7 | +<p align="center"> |
| 8 | + 比 nmap 更强大、更灵活的网络探测与扫描能力 |
| 9 | + <br/> |
| 10 | + <a href="#使用方法"><strong>探索 lmap 的功能 »</strong></a> |
| 11 | + <br/> |
| 12 | + <br/> |
| 13 | + <a href="https://github.com/LinuxHub-Group/lmap/issues">报告 Bug</a> |
| 14 | + · |
| 15 | + <a href="https://github.com/LinuxHub-Group/lmap/issues">请求新功能</a> |
| 16 | + · |
| 17 | + <a href="#贡献">贡献</a> |
| 18 | +</p> |
8 | 19 |
|
9 | | - This program is free software: you can redistribute it and/or modify |
10 | | - it under the terms of the GNU General Public License as published by |
11 | | - the Free Software Foundation, either version 3 of the License, or |
12 | | - (at your option) any later version. |
| 20 | +## 目录 |
13 | 21 |
|
14 | | - This program is distributed in the hope that it will be useful, |
15 | | - but WITHOUT ANY WARRANTY; without even the implied warranty of |
16 | | - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
17 | | - GNU General Public License for more details. |
| 22 | +- [关于项目](#关于项目) |
| 23 | +- [功能特性](#功能特性) |
| 24 | +- [快速开始](#快速开始) |
| 25 | + - [安装](#安装) |
| 26 | + - [使用方法](#使用方法) |
| 27 | +- [构建选项](#构建选项) |
| 28 | +- [贡献](#贡献) |
| 29 | +- [许可证](#许可证) |
18 | 30 |
|
19 | | - You should have received a copy of the GNU General Public License |
20 | | - along with this program. If not, see <https://www.gnu.org/licenses/>. |
| 31 | +## 关于项目 |
| 32 | + |
| 33 | +lmap (LinuxHub's Nmap) 是 LinuxHub 团队开发的下一代网络扫描工具,被称为 nmap 的 Pro Plus Max 版本。它是一个现代化的网络扫描工具,旨在提供比传统 nmap 更强大、更灵活的网络探测与扫描能力。 |
| 34 | + |
| 35 | +该工具专为网络安全工程师、系统管理员和渗透测试人员设计,帮助他们快速识别网络中的活动主机、开放端口和服务。 |
| 36 | + |
| 37 | +### 为什么选择 lmap? |
| 38 | + |
| 39 | +- **快速扫描** - 利用 Go 语言的并发特性,实现高速网络扫描 |
| 40 | +- **跨平台支持** - 支持 Windows、Linux、macOS 等多种操作系统 |
| 41 | +- **易于使用** - 简洁的命令行界面,直观的参数设置 |
| 42 | +- **高度可定制** - 支持灵活的排除规则和扫描配置 |
| 43 | +- **开源免费** - 基于 GPL-3.0 许可证,完全开源 |
| 44 | + |
| 45 | +## 功能特性 |
| 46 | + |
| 47 | +- [x] 🚀 **网络扫描** - 快速扫描指定网络段中的活动主机 |
| 48 | +- [x] ✅ **IP检查** - 验证IP地址有效性并检查主机是否在线 |
| 49 | +- [x] 🔍 **子网解析** - 解析CIDR格式的子网并生成IP地址列表 |
| 50 | +- [x] 📡 **ICMP监听** - 监听网络中的ICMP数据包 |
| 51 | +- [x] 🏓 **Ping探测** - 使用ICMP协议探测主机是否在线 |
| 52 | +- [x] ⚡ **并发处理** - 支持高并发扫描,提高扫描效率 |
| 53 | +- [x] 🚫 **排除规则** - 支持排除特定IP或子网,避免扫描不必要目标 |
| 54 | +- [x] 📋 **详细输出** - 提供详细的扫描过程信息 |
| 55 | + |
| 56 | +## 快速开始 |
| 57 | + |
| 58 | +### 安装 |
| 59 | + |
| 60 | +#### 预编译二进制文件 |
| 61 | + |
| 62 | +从 [Releases](https://github.com/LinuxHub-Group/lmap/releases) 页面下载适用于您系统的预编译二进制文件。 |
| 63 | + |
| 64 | +#### 从源码构建 |
| 65 | + |
| 66 | +**要求**: |
| 67 | +- Go 1.16 或更高版本 |
| 68 | + |
| 69 | +```bash |
| 70 | +# 克隆项目 |
| 71 | +git clone https://github.com/LinuxHub-Group/lmap.git |
| 72 | +cd lmap |
| 73 | + |
| 74 | +# 构建 |
| 75 | +make |
| 76 | + |
| 77 | +# 或者直接使用Go构建 |
| 78 | +go build ./cmd/lmap |
| 79 | +``` |
| 80 | + |
| 81 | +构建完成后,您将在项目根目录下获得 [lmap](file:///D:/works/lmap/lmap/lmap.exe) 可执行文件。 |
| 82 | + |
| 83 | +### 使用方法 |
| 84 | + |
| 85 | +#### 基本扫描 |
| 86 | + |
| 87 | +```bash |
| 88 | +# 扫描单个子网 |
| 89 | +./lmap -subnet 192.168.1.0/24 |
| 90 | + |
| 91 | +# 扫描多个子网 |
| 92 | +./lmap -subnet 192.168.1.0/24 -subnet 10.0.0.0/16 |
| 93 | + |
| 94 | +# 详细输出模式 |
| 95 | +./lmap -subnet 192.168.1.0/24 -v |
| 96 | +``` |
| 97 | + |
| 98 | +#### 排除特定IP或子网 |
| 99 | + |
| 100 | +```bash |
| 101 | +# 排除单个IP |
| 102 | +./lmap -subnet 192.168.1.0/24 -exclude 192.168.1.1 |
| 103 | + |
| 104 | +# 排除多个IP或子网 |
| 105 | +./lmap -subnet 192.168.1.0/24 -exclude 192.168.1.1 -exclude 192.168.1.10/32 |
| 106 | +``` |
| 107 | + |
| 108 | +#### 命令行选项 |
| 109 | + |
| 110 | +| 选项 | 描述 | 示例 | |
| 111 | +|------|------|------| |
| 112 | +| `-subnet` | 要扫描的网络段,CIDR格式 (可多次指定) | `-subnet 192.168.1.0/24` | |
| 113 | +| `-exclude` | 要排除的IP或子网 (可多次指定) | `-exclude 192.168.1.1` | |
| 114 | +| `-v` | 详细输出模式 | `-v` | |
| 115 | + |
| 116 | +## 构建选项 |
| 117 | + |
| 118 | +```bash |
| 119 | +# 默认构建当前平台版本 |
| 120 | +make |
| 121 | + |
| 122 | +# 构建所有平台版本 |
| 123 | +make all |
| 124 | + |
| 125 | +# 格式化代码 |
| 126 | +make fmt |
| 127 | + |
| 128 | +# 运行测试 |
| 129 | +make test |
| 130 | + |
| 131 | +# 清理构建产物 |
| 132 | +make clean |
| 133 | +``` |
| 134 | + |
| 135 | +## 贡献 |
| 136 | + |
| 137 | +欢迎任何形式的贡献!如果您想为 lmap 做出贡献,请遵循以下步骤: |
| 138 | + |
| 139 | +1. Fork 项目 |
| 140 | +2. 创建您的特性分支 (`git checkout -b feature/AmazingFeature`) |
| 141 | +3. 提交您的更改 (`git commit -m 'Add some AmazingFeature'`) |
| 142 | +4. 推送到分支 (`git push origin feature/AmazingFeature`) |
| 143 | +5. 开启一个 Pull Request |
| 144 | + |
| 145 | +### 开发环境设置 |
| 146 | + |
| 147 | +```bash |
| 148 | +# 1. 克隆项目 |
| 149 | +git clone https://github.com/LinuxHub-Group/lmap.git |
| 150 | + |
| 151 | +# 2. 进入项目目录 |
| 152 | +cd lmap |
| 153 | + |
| 154 | +# 3. 安装依赖 |
| 155 | +make install |
| 156 | + |
| 157 | +# 4. 运行测试 |
| 158 | +make test |
| 159 | +``` |
| 160 | + |
| 161 | +## 社区和支持 |
| 162 | + |
| 163 | +- [报告 Bug](https://github.com/LinuxHub-Group/lmap/issues) |
| 164 | +- [请求新功能](https://github.com/LinuxHub-Group/lmap/issues) |
| 165 | +- [查看已知问题](https://github.com/LinuxHub-Group/lmap/issues) |
| 166 | + |
| 167 | +## 许可证 |
| 168 | + |
| 169 | +``` |
| 170 | +Copyright (C) <2021> <LinuxHub-Group> |
| 171 | +
|
| 172 | +This program is free software: you can redistribute it and/or modify |
| 173 | +it under the terms of the GNU General Public License as published by |
| 174 | +the Free Software Foundation, either version 3 of the License, or |
| 175 | +(at your option) any later version. |
| 176 | +
|
| 177 | +This program is distributed in the hope that it will be useful, |
| 178 | +but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 179 | +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 180 | +GNU General Public License for more details. |
| 181 | +
|
| 182 | +You should have received a copy of the GNU General Public License |
| 183 | +along with this program. If not, see <https://www.gnu.org/licenses/>. |
| 184 | +``` |
0 commit comments