How To Use Nmap - Commands and Tutorial Guide
How To Use Nmap - Commands and Tutorial Guide
Platform
Contact us
Products
Overview Get a demo
Data Protection
Get support
DatAdvantage +1 (877) 292-8767
Data audit & protection
Automation Engine
Data remediation
DataPrivilege
Data access governance
DatAlert
Data-centric UBA
Edge
Perimeter detections for DatAlert
Policy Pack
GDPR & CCPA discovery policies
DatAnswers
DSARs, e-Discovery, PII search
Cloud Security
DatAdvantage Cloud
SaaS & IaaS Security
Data Classification Cloud
Sensitive data discovery
Solutions
By Industry
Finance
Healthcare
Federal Government
Education
Manufacturing
State & Local Government
By Use Case
Microsoft 365
Active Directory
Google Drive
Salesforce
Nasuni
UNIX/Linux
Box
Slack
Okta
GitHub
NetApp
See all integrations
Why Varonis?
Case Studies
Operational Plan
https://www.varonis.com/blog/nmap-commands#how-to-use 2/18
5/6/22, 6:25 AM How to Use Nmap: Commands and Tutorial Guide
Industry Recognition
Customer Success
IR & Forensics Team
Measurable ROI
Company
About Varonis
Careers
Investor Relations
Press
Corporate Responsibility
Trust & Security
Brand
Contact Us
Partners
Partner Program
Partner Locator
Partner Portal
Service Providers
Technology Partners
Resources
Support
Resource Library
Blog
Free Security Courses
Product Training
SecurityFWD
Webinars
Events
Contact Us
Get support
+1 (877) 292-8767
https://www.varonis.com/blog/nmap-commands#how-to-use 3/18
5/6/22, 6:25 AM How to Use Nmap: Commands and Tutorial Guide
https://www.varonis.com/blog/nmap-commands#how-to-use 4/18
5/6/22, 6:25 AM How to Use Nmap: Commands and Tutorial Guide
Email*
Nmap Commands
Nmap FAQ
What is Nmap?
https://www.varonis.com/blog/nmap-commands#how-to-use 5/18
5/6/22, 6:25 AM How to Use Nmap: Commands and Tutorial Guide
https://www.varonis.com/blog/nmap-commands#how-to-use 6/18
5/6/22, 6:25 AM How to Use Nmap: Commands and Tutorial Guide
https://www.varonis.com/blog/nmap-commands#how-to-use 7/18
5/6/22, 6:25 AM How to Use Nmap: Commands and Tutorial Guide
https://www.varonis.com/blog/nmap-commands#how-to-use 8/18
5/6/22, 6:25 AM How to Use Nmap: Commands and Tutorial Guide
https://www.varonis.com/blog/nmap-commands#how-to-use 9/18
5/6/22, 6:25 AM How to Use Nmap: Commands and Tutorial Guide
If you see anything unusual in this list, you can then run a
DNS query on a specific host, by using:
Nmap Commands
1. Ping Scanning
2. Port Scanning
https://www.varonis.com/blog/nmap-commands#how-to-use 11/18
5/6/22, 6:25 AM How to Use Nmap: Commands and Tutorial Guide
# sU UDP scans
# sN TCP NULL
3. Host Scanning
4. OS Scanning
https://www.varonis.com/blog/nmap-commands#how-to-use 13/18
5/6/22, 6:25 AM How to Use Nmap: Commands and Tutorial Guide
6. Output to a File
-oN output.txt
https://www.varonis.com/blog/nmap-commands#how-to-use 14/18
5/6/22, 6:25 AM How to Use Nmap: Commands and Tutorial Guide
-oX output.xml
To output to an XML.
Nmap FAQ
The commands above cover most of the basic
functionality of Nmap. You might still have some questions
though, so let’s run through the most common ones.
https://www.varonis.com/blog/nmap-commands#how-to-use 15/18
5/6/22, 6:25 AM How to Use Nmap: Commands and Tutorial Guide
Q: Is Nmap Legal?
https://www.varonis.com/blog/nmap-commands#how-to-use 16/18
5/6/22, 6:25 AM How to Use Nmap: Commands and Tutorial Guide
Jeff Petters
Keep reading
DATA SECURITY | MARCH 25, 2021 DATA SECURITY | MARCH 29, 2020
How to Use Netcat Commands: Zero-Day Vulnerability
Examples and Cheat Sheets Explained
English
Legal
|
Trust © 2022 Varonis
https://www.varonis.com/blog/nmap-commands#how-to-use 18/18