Changeset 13548
- Timestamp:
- Jan 18, 2012, 6:47:45 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ipk/source.sh4/titaninfos_callmonitor/var/usr/local/share/titan/plugins/callmonitor1/fritzbox_msg_new.sh
r10562 r13548 203 203 if [ ! -f $FRITZBUCH ]; then 204 204 # Challenge abholen 205 echo "Challenge abholen start" 205 206 ChallengeXML=`wget -O - "http://$FRITZBOXIP/cgi-bin/webcm?getpage=../html/login_sid.xml" 2>/dev/null| grep Challenge` 206 207 Challenge=`echo $ChallengeXML | awk '{match($0,/>[^<>]+</); print substr($0,RSTART+1,RLENGTH-2)}'` 208 echo "Challenge abholen ende" 209 207 210 Passwd="$FritzPass" 208 211 209 212 # login aufbauen und hashen 213 echo "login aufbauen und hashen start" 210 214 CPSTR="$Challenge-$Passwd" 211 215 MD5=`echo -n $CPSTR | $ICONV -f ISO8859-1 -t UTF-16LE > /tmp/help; md5sum /tmp/help | awk '{print substr($0,1,32)}'` … … 214 218 # login senden und SID herausfischen 215 219 SID=`wget -O - --post-data="$POSTDATA" "http://$FRITZBOXIP/cgi-bin/webcm" 2>/dev/null| grep "name=\"sid\"" | head -1 | awk '{match($0,/value="[^"]+"/); print substr($0,RSTART+7,RLENGTH-8)}'` 216 220 echo "login aufbauen und hashen ende" 217 221 ./$CURL --data "telcfg:settings/Phonebook/Books/Select=0&getpage=../html/de/menus/menu2.html&var:pagename=fonbuch&sid=$SID&var:menu=fon&var:lang=de" http://$FRITZBOXIP/cgi-bin/webcm | grep ">TrFon" | sed s/'<script type="text\/javascript">'// | sed s/';<\/script>'// | sed s/'('/'"'/ | sed s/')'/'"'/ > /tmp/curlhelp.tmp 218 222 … … 253 257 echo "Fritzbox Telefonbuch: " $usePhoneBook 254 258 echo "------------------------------------" 259 echo "**************************************" 260 echo "loadFritzBook start" 255 261 loadFritzBook 262 echo "loadFritzBook ende" 256 263 if [ $debug = 0 ]; then 257 264 wget -q -O /dev/null "http://$ip/cgi-bin/xmessage?caption=Skript%20gestartet&body=FritzBox!%20Callmonitor%20gestartet&timeout=3" … … 261 268 #Make sure the next line end with a trailing '&' or your dreambox will hang! 262 269 #tail -f < /dev/null|./nc $FRITZBOXIP $TELDPORT|awk -F";" '{if ($4==""){$4="Unbekannt"} system (ENVIRON ["SCRIPT"] " "$2" "$1" "$3" "$4" "$5" "$6" "$7 )}' & 270 echo "loadFritzBook start" 263 271 tail -f < /dev/null|$NC $FRITZBOXIP $TELDPORT|awk -F";" '{if ($4==""){$4="Unbekannt"} system (ENVIRON ["SCRIPT"] " "$2" "$1" "$3" "$4" "$5" "$6" "$7 )}' & 272 echo "Ende" 264 273 ;; 265 274 RING)
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/openaaf/chrome/common/titannit_trac_banner.png)