Home > Operation and Maintenance > Safety > How to use Masscan, Nmap, and ELK to collect intranet assets

How to use Masscan, Nmap, and ELK to collect intranet assets

WBOY
Release: 2023-06-03 15:43:36
forward
1173 people have browsed it
Installation

Install masscan

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

Install the latest nmap 7.8

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

Install es and 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
Copy after login

The general logic is,

1, use Masscan to do a host survival scan

2, then use Nmap to scan the surviving hosts above, export xml

3, format the xml, write it into es, and then kibana for visualization

Upload the code

How to use Masscan, Nmap, and ELK to collect intranet assetsHow to use Masscan, Nmap, and ELK to collect intranet assets

How to use Masscan, Nmap, and ELK to collect intranet assets

How to use Masscan, Nmap, and ELK to collect intranet assets#

代码地址:

https://github.com/njcx/nmap_to_es.git
Copy after login
Use kibana for visualization:

How to use Masscan, Nmap, and ELK to collect intranet assets

The above is the detailed content of How to use Masscan, Nmap, and ELK to collect intranet assets. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:yisu.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template