summaryrefslogtreecommitdiff
path: root/server/piztor/prober.py
diff options
context:
space:
mode:
Diffstat (limited to 'server/piztor/prober.py')
-rw-r--r--server/piztor/prober.py20
1 files changed, 6 insertions, 14 deletions
diff --git a/server/piztor/prober.py b/server/piztor/prober.py
index 00208cd..623089f 100644
--- a/server/piztor/prober.py
+++ b/server/piztor/prober.py
@@ -4,8 +4,8 @@ from time import sleep
from sys import argv
from ptp_send import *
-username = "a"
-password = "a"
+username = "haha"
+password = "haha"
#username = "1234567890123456789012"
#password = "world12345678901234567890"
@@ -17,16 +17,8 @@ if len(argv) == 3:
password = argv[2]
-for i in xrange(10):
+token = user_auth(username, password)
- uid, token = user_auth(username, password)
- update_location(token, username, random(), random())
-
- comp_id, sec_id, sex = request_user_info(token, username, uid)
- if comp_id:
- request_location(token, username, comp_id, sec_id)
- request_location(token, username, comp_id, 0xff)
-
- logout(token, username)
-
- sleep(10)
+update_sub(token, username,
+ [(23, 15), (23, 14)])
+user_info(token, username, 23, 15)