借助老哥的文章:
Visual Studio 2019 编译Masscan 真香! - bluedye - 博客园
主要有几点:
1. 下载vscode,这里推荐2019社区版
2.修改配置文件
修改src 下 string_s.h 文件
在81行处插入语句:注意 _MSC_VER == 1929 请看这里 --> vs版本对应的编码
#elif defined(_MSC_VER) && (_MSC_VER == 1929)
/*Visual Studio 2019*/
# include <stdio.h>
# include <string.h>
# define strcasecmp _stricmp
# define memcasecmp _memicmp
# ifndef PRIu64
# define PRIu64 "llu"
# define PRId64 "lld"
# define PRIx64 "llx"
# endif
3.打开与编译:
进入到vs10文件夹,双击masscan.sln文件,用vs2019打开
生成exe
根目录下的bin
文件夹中出现一个masscan.exe的文件