RaiNmap Container

August 30, 2016 • Security

I use nmap all the time at work and recently came across rainmap-lite which is an amazing web interface for nmap that allows you to easily schedule and email scan results. I wanted to be able to share it with a class I am teaching so I did what I have been doing lately and put it into a docker container:


Running it is as simple as:

docker run -ti -p 8080:8080 --name rianmap jgamblin/rainmap

Then access:


You can now run a ton of nmap scans and get the results emailed to you and your team:



Here is the DockerFile:

FROM ubuntu:latest
RUN apt-get update && apt-get install sqlite3 git nmap python-pip  -y
RUN pip install --upgrade pip
RUN pip install lxml
RUN pip install Django
RUN git clone
WORKDIR /rainmap-lite/rainmap-lite/
ADD /rainmap-lite/rainmap-lite/
RUN chmod 777 /rainmap-lite/rainmap-lite/
CMD ./

Here is the

sed -i "s/8000/8080/g" ""
echo What is your public IP address?
read ip
sed -i "s/$ip/g" ""
echo What is your SMTP user name?
read user
sed -i "s/$user/g" ""
echo What is your SMTP password?
read pass
sed -i "s/yourpassword/$pass/g" ""
echo What is your SMTP address?
read smtp
sed -i "s/$smtp/g" ""
python migrate
python loaddata nmapprofiles
python createsuperuser
python runserver &
while true
sleep 15

Protip: SendGrid offers a free SMTP server.

最后编辑于: September 2, 2016 19:06
Archives QR Code
QR Code for this page
Tipping QR Code