linux
环境
kali2021.1
步骤
git clone --depth=1 https://github.com/nmap/nmap.git
cd nmap
./configure
make
ls|grep nmap
./nmap -V
windows
环境
vs2013
win10
源码
git clone --depth=1 https://github.com/nmap/nmap.git
svn checkout https://svn.nmap.org/nmap-mswin32-aux
方法
将nmap-mswin32-aux
和nmap
放到同一个目录下,之后进入nmap/mswin32
用vs2013打开nmap.sln
修改nmap.rc.in
为nmap.rc
注释第14行(含有@的)
修改32行@@FILEVERSION@@
为任意字符串
选择模式为Release
编译
可以成功打开使用,但是在其他环境需要dll
单文件编译
在nmap项目属性页,配置属性 常规 选择平台工具集为windows_xp
c++/代码生成修改运行库为MT
在链接器,输入里忽略lib
libcmt.lib
libcmtd.lib
!!!出错,待解决,
未完待续
参考文章
https://github.com/nmap/nmap
https://www.dazhuanlan.com/2019/11/15/5dcdfc696dbb4/