View Single Post
Posts: 200 | Thanked: 300 times | Joined on Nov 2009 @ The Netherlands
#34
Originally Posted by boxhead View Post
This script was born out of my rage of having my N900 stolen earlier this year. I wanted a simple SMS-based solution for retrieving my new N900 if it were ever stolen again. I used some python code for SMS send/recv and GPS tracking from the wiki and put it together for this.

...
I made a two part Python script for the CLI (control app & background daemon) which does just the same and more...

Control app:

Code:
Nokia-N900:~# smscon
== smscon - remote control utility ==
Options:
  -start   : start smscon
  -stop    : stop smscon
  -boot    : set start at device boot
  -unboot  : remove start at device boot
  -status  : get smscon_daemon status
  -log     : show the logfile
  -clear   : erase the log file
  -help    : this help menu
It also creates a log file:

Code:
Nokia-N900:~# smscon -log
(Tue Aug 17 13:28:05 2010) START: smscon_daemon active
(Tue Aug 17 13:28:05 2010) DAEMON: no arguments passed for daemon
(Tue Aug 17 13:28:05 2010) DAEMON: reading valid IMSI code (XXXXXXXXXXXXXXX) from file
(Tue Aug 17 13:28:05 2010) DAEMON: authorized IMSI code found
(Tue Aug 17 13:28:05 2010) DAEMON: smscon autoloads at boot
I can send specific SMS messages to my phone and so can control my phone with it.

The current functions are: reboot, shutdown, show remaining battery charge, send current gps coordinates, send frontcam picture to my own server, set up ssh connection with available connection (WLAN/GPRS) to my own server)