Phone finder

Hack hack hack…
 
######################################
#Sniff SMS as they’re received, parse the content for a
#tokenised string and return the GSM location details
######################################
import messaging
import location
import inbox
import e32
import appuifw
 
def SniffSMS(id):
    e32.ao_sleep(0.1)
    i=inbox.Inbox()
    smsText = i.content(id)   
    if smsText == ‘*TokenisedString*’:
             #Get the GSM details
              mcc, mnc, lac, cellid = location.gsm_location()
              notificationText = u”\
              Country Code: %d\n \
              Network Code: %d\n \
              Area Code: %d\n \
              Cell ID: %d” % (mcc,mnc,lac,cellid)
 
              #Send an SMS TODO get the sender of originating SMS and use here
              phoneNumber = u"<Insert Mobile Number Here>"
              messaging.sms_send(phoneNumber, notificationText)
i=inbox.Inbox()
print "Message Sniffing Active"
i.bind(SniffSMS)
 
Advertisements
This entry was posted in SmartPhone. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s