installed nmap, set env variables and cmd result also
C:\Windows\System32>nmap -v -A scanme.nmap.org
Starting Nmap 7.70 ( https://nmap.org ) at 2019-03-10 13:26 Arabian Standard Time
NSE: Loaded 148 scripts for scanning.
NSE: Script Pre-scanning.
Initiating NSE at 13:26
Completed NSE at 13:26, 0.00s elapsed
Initiating NSE at 13:26
Completed NSE at 13:26, 0.00s elapsed
Initiating Ping Scan at 13:26
Scanning scanme.nmap.org (45.33.32.156) [4 ports]
Completed Ping Scan at 13:26, 0.95s elapsed (1 total hosts)
Initiating Parallel DNS resolution of 1 host. at 13:26
Completed Parallel DNS resolution of 1 host. at 13:26, 0.00s elapsed
Initiating SYN Stealth Scan at 13:26
Scanning scanme.nmap.org (45.33.32.156) [1000 ports]
Discovered open port 80/tcp on 45.33.32.156
Discovered open port 22/tcp on 45.33.32.156
Completed SYN Stealth Scan at 13:27, 14.48s elapsed (1000 total ports)
Initiating Service scan at 13:27
Scanning 2 services on scanme.nmap.org (45.33.32.156)
Completed Service scan at 13:27, 6.56s elapsed (2 services on 1 host)
Initiating OS detection (try #1) against scanme.nmap.org (45.33.32.156)
Retrying OS detection (try #2) against scanme.nmap.org (45.33.32.156)
Initiating Traceroute at 13:27
Completed Traceroute at 13:27, 6.04s elapsed
Initiating Parallel DNS resolution of 6 hosts. at 13:27
Completed Parallel DNS resolution of 6 hosts. at 13:27, 0.00s elapsed
NSE: Script scanning 45.33.32.156.
Initiating NSE at 13:27
Completed NSE at 13:27, 8.52s elapsed
Initiating NSE at 13:27
Completed NSE at 13:27, 0.00s elapsed
Nmap scan report for scanme.nmap.org (45.33.32.156)
Host is up (0.27s latency).
Not shown: 993 filtered ports
PORT STATE SERVICE VERSION
21/tcp closed ftp
22/tcp open ssh OpenSSH 6.6.1p1 Ubuntu 2ubuntu2.11 (Ubuntu Linux; protocol 2.0)
| ssh-hostkey:
| 1024 ac:00:a0:1a:82:ff:cc:55:99:dc:67:2b:34:97:6b:75 (DSA)
| 2048 20:3d:2d:44:62:2a:b0:5a:9d:b5:b3:05:14:c2:a6:b2 (RSA)
| 256 96:02:bb:5e:57:54:1c:4e:45:2f:56:4c:4a:24:b2:57 (ECDSA)
|_ 256 33:fa:91:0f:e0:e1:7b:1f:6d:05:a2:b0:f1:54:41:56 (ED25519)
23/tcp closed telnet
80/tcp open http Apache httpd 2.4.7 ((Ubuntu))
|http-favicon: Unknown favicon MD5: 156515DA3C0F7DC6B2493BD5CE43F795
| http-methods:
| Supported Methods: POST OPTIONS GET HEAD
|_http-server-header: Apache/2.4.7 (Ubuntu)
|_http-title: Go ahead and ScanMe!
443/tcp closed https
5061/tcp closed sip-tls
8080/tcp closed http-proxy
Device type: general purpose
Running (JUST GUESSING): Linux 4.X|3.X|2.6.X (99%)
OS CPE: cpe:/o:linux:linux_kernel:4.9 cpe:/o:linux:linux_kernel:3 cpe:/o:linux:linux_kernel:2.6.32
Aggressive OS guesses: Linux 4.9 (99%), Linux 3.10 - 3.16 (96%), Linux 3.10 (93%), Linux 2.6.32 (93%), Linux 3.10 - 3.12 (93%), Linux 4.4 (93%), Linux 2.6.39 (90%)
No exact OS matches for host (test conditions non-ideal).
Uptime guess: 14.541 days (since Sun Feb 24 00:28:30 2019)
Network Distance: 19 hops
TCP Sequence Prediction: Difficulty=261 (Good luck!)
IP ID Sequence Generation: All zeros
Service Info: OS: Linux; CPE: cpe:/o:linux:linux_kernel
TRACEROUTE (using port 23/tcp)
HOP RTT ADDRESS
1 1.00 ms ******************
2 1.00 ms 172.30.7.1
3 1.00 ms 172.30.6.78
4 1.00 ms 172.30.3.45
5 1.00 ms 10.192.116.66
6 ... 18
19 260.00 ms scanme.nmap.org (45.33.32.156)
NSE: Script Post-scanning.
Initiating NSE at 13:27
Completed NSE at 13:27, 0.00s elapsed
Initiating NSE at 13:27
Completed NSE at 13:27, 0.00s elapsed
Read data files from: C:\Program Files (x86)\Nmap
OS and Service detection performed. Please report any incorrect results at https://nmap.org/submit/ .
Nmap done: 1 IP address (1 host up) scanned in 59.31 seconds
Raw packets sent: 2124 (97.044KB) | Rcvd: 151 (11.090KB)
C:\Windows\System32>
... View more