使用Masscan、Nmap、ELK做内网资产收集 – 作者:toddddna

admin 2021年8月2日21:51:34安全网站文章评论47阅读模式

安装

安装masscan

# yum install git gcc make libpcap-devel
# git clone https://github.com/robertdavidgraham/masscan
# cd masscan
# make
# cp bin/masscan  /bin

安装最新nmap 7.8

wget https://nmap.org/dist/nmap-7.80-1.x86_64.rpm
rpm -ivh nmap-7.80-1.x86_64.rpm

安装es 和 kibana

docker run -d --name es -p 127.0.0.1:9201:9200 -p 9300:9300 -e ES_JAVA_OPTS="-Xms2G -Xmx2G" -e "discovery.type=single-node"  docker.elastic.co/elasticsearch/elasticsearch-oss:7.1.1   

docker run --name kibana -d -p 5601:5601 -e ELASTICSEARCH_HOSTS=http://127.0.0.1:9201   docker.elastic.co/kibana/kibana-oss:7.1.1   

大致逻辑就是,

1,使用 Masscan 做主机存活扫描

2,然后使用Nmap扫描上面存活的主机,导出xml

3,格式化xml,写入es,然后kibana做可视化

上代码

使用Masscan、Nmap、ELK做内网资产收集 – 作者:toddddna使用Masscan、Nmap、ELK做内网资产收集 – 作者:toddddna

使用Masscan、Nmap、ELK做内网资产收集 – 作者:toddddna

使用Masscan、Nmap、ELK做内网资产收集 – 作者:toddddna

代码地址:

https://github.com/njcx/nmap_to_es.git

 

使用kibana 做可视化:

使用Masscan、Nmap、ELK做内网资产收集 – 作者:toddddna

来源:freebuf.com 2020-07-22 17:10:53 by: toddddna

相关文章
weinxin
我的微信
微信扫一扫
admin
  • 本文由 发表于 2021年8月2日21:51:34
  • 转载请保留本文链接:https://aqxbk.com/archives/security/securitysite/2021/08_02/68084.html

发表评论