Public Repository

Last pushed: 9 months ago
Short Description
Short description is empty for this repo.
Full Description

A containerized version of rainmap-lite a responsive web application that allows users to launch Nmap scans from their mobiles/tablets/web browsers!

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

Dockerfile
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 https://github.com/cldrn/rainmap-lite
WORKDIR /rainmap-lite/rainmap-lite/
ADD run.sh /rainmap-lite/rainmap-lite/run.sh
RUN chmod 777 /rainmap-lite/rainmap-lite/run.sh
CMD ./run.sh

run.sh

#!/bin/bash
sed -i "s/8000/8080/g" "nmaper-cronjob.py"
echo What is your public IP address?
read ip
sed -i "s/127.0.0.1/$ip/g" "nmaper-cronjob.py"
echo What is your SMTP user name?
read user
sed -i "s/youremail@gmail.com/$user/g" "nmaper-cronjob.py"
echo What is your SMTP password?
read pass
sed -i "s/yourpassword/$pass/g" "nmaper-cronjob.py"
echo What is your SMTP address?
read smtp
sed -i "s/smtp.gmail.com/$smtp/g" "nmaper-cronjob.py"
python manage.py migrate
python manage.py loaddata nmapprofiles
python manage.py createsuperuser
python manage.py runserver 0.0.0.0:8080 &
while true
do
python nmaper-cronjob.py
sleep 15
done

Docker Pull Command
Owner
jgamblin

Comments (1)
aomanzanera
6 months ago

Hi Jerry,

The latest Django has broken the functionality of the login page of the web app. The following error appears on Django debug page:

error with arguments '()' and keyword arguments '{}' not found

I managed to temporarily fix it forcing pip to install the version 1.9 of Django:

RUN pip install Django==1.9

And now the login page works as expected.