- Kali Linux:An Ethical Hacker's Cookbook
- Himanshu Sharma
- 147字
- 2021-07-08 09:41:21
How to do it...
The following is the recipe for using Nmap:
- Nmap is already installed in Kali Linux. We can type the following command to start it and see all the options available:
nmap -h
The following screenshot shows the output of the preceding command:

- To perform a basic scan we use the following command:
nmap -sV -Pn x.x.x.x
The following screenshot shows the output of the preceding command:

- -Pn implies that we do not check whether the host is up or not by performing a ping request first. The -sV parameter is to list all the running services on the found open ports.
- Another flag we can use is -A, which automatically performs OS detection, version detection, script scanning, and traceroute. The command is:
nmap -A -Pn x.x.x.x
- To scan an IP range or multiple IPs, we can use this command:
nmap -A -Pn x.x.x.0/24
推薦閱讀
- Java 9 Concurrency Cookbook(Second Edition)
- 大學計算機應用基礎實踐教程
- 動手玩轉Scratch3.0編程:人工智能科創教育指南
- Apache Hive Essentials
- TestNG Beginner's Guide
- R語言游戲數據分析與挖掘
- WordPress Plugin Development Cookbook(Second Edition)
- Service Mesh實戰:基于Linkerd和Kubernetes的微服務實踐
- 智能手機APP UI設計與應用任務教程
- C專家編程
- Java程序設計實用教程(第2版)
- Python應用開發技術
- UI動效設計從入門到精通
- Visual Basic語言程序設計上機指導與練習(第3版)
- Joomla!Search Engine Optimization