You can't hide from the python

I’m a command line freak and thus I want to read the call logs from my newly converted Freakz^wFritz!Box from the command line.

First I tried to mess with the telnetd on the box but I didn’t find the logs and as it is possible to fetch a csv-file containing the call-log via the web-interface I turned my attention to that.

In the olden times it was apparently possible to just log into the boxes webinterface by POSTing the password, save the cookie and request stuff.
Nowadays AVM has implemented a challenge-response protocol using javascript. If you can answer a challenge with the correct md5 hash you get a session id to use the web=interface.

This might be a nice thing from a security perspective but it sucks a little for scripting. Meh.

But a little python magic solves the problem.

So here you go: fritzlog.py

Usage: python fritzlog.py <password>

You can also edit the script and make your password the default.

5 comments to You can’t hide from the python

Leave a Reply

 

 

 

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>