Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect OS scanning by using inside docker #2787

Open
vladimircape opened this issue Feb 26, 2024 · 0 comments
Open

Incorrect OS scanning by using inside docker #2787

vladimircape opened this issue Feb 26, 2024 · 0 comments
Labels

Comments

@vladimircape
Copy link

vladimircape commented Feb 26, 2024

(base) vladimir@vladimir2-desktop:~/work$ nmap --version Nmap version 7.80 ( https://nmap.org ) Platform: x86_64-pc-linux-gnu Compiled with: liblua-5.3.3 openssl-1.1.1d nmap-libssh2-1.8.2 libz-1.2.11 libpcre-8.39 libpcap-1.9.1 nmap-libdnet-1.12 ipv6 Compiled without: Available nsock engines: epoll poll select
when i tried on my machine

sudo nmap 192.168.100.9 -O
or
sudo nmap 192.168.100.9 -O --osscan-guess

I received very closed results

Starting Nmap 7.80 ( https://nmap.org ) at 2024-02-26 21:12 +03 Nmap scan report for vladimir2-desktop (192.168.100.9) Host is up (0.000048s latency). Not shown: 996 closed ports PORT STATE SERVICE 22/tcp open ssh 3389/tcp open ms-wbt-server 3689/tcp open rendezvous 7070/tcp open realserver Device type: general purpose Running: Linux 2.6.X OS CPE: cpe:/o:linux:linux_kernel:2.6.32 OS details: Linux 2.6.32 Network Distance: 0 hops OS detection performed. Please report any incorrect results at https://nmap.org/submit/ . Nmap done: 1 IP address (1 host up) scanned in 1.60 seconds

but when i execute same command inside docker, result a bad. And also i found that nmap in docker execute much faster rather then on localhost

`base) vladimir@vladimir2-desktop:~/work$ docker run --rm -it instrumentisto/nmap -A -T4 192.168.100.9
Starting Nmap 7.94 ( https://nmap.org ) at 2024-02-26 18:18 UTC
Nmap scan report for 192.168.100.9
Host is up (0.000057s latency).
Not shown: 996 closed tcp ports (reset)
PORT STATE SERVICE VERSION
22/tcp open ssh OpenSSH 8.2p1 Ubuntu 4ubuntu0.11 (Ubuntu Linux; protocol 2.0)
| ssh-hostkey:
| 3072 11:05:82:dd:3f:e9:69:55:e8:9e:12:5b:7c:33:6f:fb (RSA)
| 256 11:15:c3:1e:de:fd:e9:5d:d6:93:89:6c:bb:e9:c7:f8 (ECDSA)
|_ 256 04:4d:0c:31:11:5c:52:42:a2:2a:45:e5:cf:52:af:50 (ED25519)
3389/tcp open ms-wbt-server xrdp
3689/tcp open daap mt-daapd DAAP
7070/tcp open ssl/realserver?
| ssl-cert: Subject: commonName=AnyDesk Client
| Not valid before: 2023-08-03T05:43:28
|_Not valid after: 2073-07-21T05:43:28
|_ssl-date: TLS randomness does not represent time
Device type: general purpose
Running: Linux 4.X|5.X
OS CPE: cpe:/o:linux:linux_kernel:4 cpe:/o:linux:linux_kernel:5
OS details: Linux 4.15 - 5.8
Network Distance: 1 hop
Service Info: OS: Linux; CPE: cpe:/o:linux:linux_kernel

TRACEROUTE (using port 587/tcp)
HOP RTT ADDRESS
1 0.08 ms 192.168.100.9

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 13.33 seconds
`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant