centos 安装 masscan

服务器   发布日期:2025年06月24日   浏览次数:276
  1. # https://github.com/robertdavidgraham/masscan
  2. cd /opt
  3. yum install -y git gcc make libpcap-dev
  4. git clone https://github.com/robertdavidgraham/masscan
  5. cd masscan
  6. make
  7. cd ..
  8. # https://www.cnblogs.com/wawahaha/p/3821486.html
  9. # 安装libpcap
  10. yum -y install gcc-c++
  11. yum -y install flex byacc
  12. yum -y install wget
  13. mkdir libpcap
  14. cd libpcap
  15. wget -c http://www.tcpdump.org/release/libpcap-1.5.3.tar.gz
  16. tar zxvf libpcap-1.5.3.tar.gz
  17. cd libpcap-1.5.3
  18. ./configure
  19. make
  20. make install
  21. # https://www.cnblogs.com/woshare/p/4796323.html
  22. echo -e '/usr/local/lib\n/usr/lib' >> /etc/ld.so.conf # 开启转义字符,输出两行到文件中
  23. ldconfig # 重新加载
  24. # 测试
  25. /opt/masscan/bin/masscan 127.0.0.1 -p1-10000 --rate 2000

以上就是centos 安装 masscan的详细内容,更多关于centos 安装 masscan的资料请关注九品源码其它相关文章!