Skip to content

Instantly share code, notes, and snippets.

@kramse
Created February 22, 2018 09:17
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kramse/8d937461bba72b92f076f9a6baabe918 to your computer and use it in GitHub Desktop.
Save kramse/8d937461bba72b92f076f9a6baabe918 to your computer and use it in GitHub Desktop.
Dockerfile:
FROM ubuntu:latest
RUN apt-get update
RUN apt-get install -y file libblas-common libblas3 libexpat1 libffi6 libicu55 liblinear3 \\
liblua5.2-0 libmagic1 libpcap0.8 libpython-stdlib libpython2.7-minimal \\
libpython2.7-stdlib libsqlite3-0 libssl1.0.0 libxml2 libxslt1.1 lua-lpeg \\
mime-support ndiff nmap python python-bs4 python-chardet python-html5lib \\
python-lxml python-minimal python-pkg-resources python-six python2.7 \\
python2.7-minimal sgml-base xml-core curl gcc g++ make autoconf \\
openssl lua-json libssh2-1 libssl-dev libssl-doc zlib1g-dev
RUN curl https://nmap.org/dist/nmap-7.60.tgz | tar zxf -
RUN cd nmap-7.60 && ./configure && make && make install
and now at least NSE is working
hlk@bujin:nmap-ci$ docker run -t -i kramse/nmap-ci /bin/bash
root@23bcc68adf54:/# nmap -A -p 22 --script ssh-auth-methods.nse 10.80.0.194
Starting Nmap 7.60 ( https://nmap.org ) at 2018-02-22 09:14 UTC
Nmap scan report for 10.80.0.194
Host is up (0.00074s latency).
PORT STATE SERVICE VERSION
22/tcp open ssh OpenSSH 7.4p1 Debian 10+deb9u2 (protocol 2.0)
| ssh-auth-methods:
| Supported authentication methods:
|_ publickey
Warning: OSScan results may be unreliable because we could not find at least 1 open and 1 closed port
OS fingerprint not ideal because: Missing a closed TCP port so results incomplete
No OS matches for host
Network Distance: 2 hops
Service Info: OS: Linux; CPE: cpe:/o:linux:linux_kernel
TRACEROUTE (using port 80/tcp)
HOP RTT ADDRESS
1 0.04 ms 172.17.0.1
2 0.59 ms 10.80.0.194
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 5.35 seconds
root@23bcc68adf54:/# exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment