summaryrefslogblamecommitdiff
path: root/server/piztor/prober.py
blob: bb2bcd369b0ae169afc6f7521a0044c7ed30beb8 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
                         
                      
 
                    
                      
 

                 

                                  
 




                      

                      
 
                                     

                                               
                                  



                                                       
from random import random
from time import sleep

from sys import argv
from ptp_send import *

username = "haha"
password = "haha"
#username = "12345678901234567890"
#password = "world123456789012345"

if len(argv) == 2:
    host = argv[1]

if len(argv) == 3:
    username = argv[1]
    password = argv[2]


token = user_auth(username, password)
change_password(token, username, "ddd", "haha")
#print "Client: " + username + "logged in"
#open_push_tunnel(token, username)
#for i in xrange(100):
#    print "Client: " + username  + " updateing"
#    update_location(token, username, 123.456, 123.456)
##    sleep(5)