forked from Th3S3cr3tAg3nt/WebMap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
webmapsetup
27 lines (27 loc) · 1.24 KB
/
webmapsetup
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
echo ""
echo " __ __ _ __ __ "
echo " \ \ / / | | | \/ | "
echo " \ \ /\ / /__| |__ | \ / | __ _ _ __ "
echo " \ \/ \/ / _ \ '_ \| |\/| |/ _\` | '_ \ "
echo " \ /\ / __/ |_) | | | | (_| | |_) |"
echo " \/ \/ \___|_.__/|_| |_|\__,_| .__/ "
echo " | | "
echo " |_| "
echo ""
echo -e "\n[+] Starting WebMap docker setup"
echo "[+] Creating required dirs"
mkdir /tmp/webmap 2> /dev/null
echo "[+] Pull WebMap from docker hub"
docker pull rev3rse/webmap
echo "[+] Remove old WebMap container"
docker stop webmap 2> /dev/null
docker rm webmap 2> /dev/null
echo "[+] Run WebMap container"
docker run -d --name webmap -h webmap -p 8000:8000 -v /tmp/webmap:/opt/xml rev3rse/webmap
echo "[+] Done!"
echo -e "\n\e[0;32mPlease, set the WebNap container timezone by running the following command:\e[0m"
echo "docker exec -ti webmap bash /root/tzdata.sh"
echo -e "\n\e[0;32mNow you can point your browser to http://localhost:8000"
echo -e "Please, take few seconds to support this project on GitHub\e[0m"
echo -e "https://github.com/Rev3rseSecurity/WebMap\n"
echo -e "\n\e[0;31m!! DO NOT EXPOSE WebMap TO THE INTERNET, BE SMART !!\e[0m\n"