-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
executable file
·33 lines (26 loc) · 2.19 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import re
d = '687474703a2f2f6d632e7669702e71712e636f6d2f70726976696c6567656c6973742f6f746865723f667269656e643d'
data = '0000032010022c3c420007878156084d43617264537663660f5265737053756d6d617279436172647d000102ee08000206085265737048656164180001061453756d6d617279436172642e52657370486561641d0000160a00021c26003d00000b0c180001060131160231370b060f5265737053756d6d61727943617264180001061b53756d6d617279436172642e5265737053756d6d617279436172641d000102780a0c1c201c3610e58898e5b08fe696872fe5a4aae998b346005c6606e6b599e6b19f7606e7bb8de585b486009600a600b600c600d001e600fa0f090c0bfc10fc11fc12f61306e4b8ade59bbdf61400f61500fc16fc17fc18f01901f91a0cfd1b0000040c1c2c3cf61c00fa1d08000400011a0c1c2c3c0b00021a0c1c2c3c0b00031a0c1c2c3c0b00041a0c1c2c3c0b0bf61e00fa1f0d000c1c200236000bfd20000cfc21fd22000cfc23fc24f62500fc26f02714f12800dbfd29000cf62a09e98791e8b4b5e6999ffd2b000cfa2c08000300651a0c10ff2c3c0b00661a0c10ff2c3c0b00671a0c10ff2c3c0b0bfc2df92e0cf62f00fa300d000c10042c360046005c6c7c8d000c9600a600bcccdcecfd0f000cfd10000cfd11000c0bf23107c40501fa32006416002c0bfa330c1d000c0bfa340c1c2c3c4c50016c76000bfa350c1c0bfd36000cfa370c1d000c0bfa380c1d000c0bfa390c0bfa3a06205441e8bf98e69caae5bc80e9809ae4bbbbe4bd95e789b9e69d83e69c8de58aa1163a687474703a2f2f6d632e7669702e71712e636f6d2f70726976696c6567656c6973742f6f746865723f667269656e643d32393132333234363736290c390c0bfa3b0c1c2c3c0bfa3c06001c2c0bfa3d06000bfd3e000cf63f00fc40fc41f64200f64300f64400fc45f64600fd4700000808c498daec0a1004fa480c0bfa490d00004708c498daec0a10005a3d687474703a2f2f642e75726c2e636e2f6d796170702f71715f6465736b2f667269656e6470726f66696c655f6465665f636f7665725f3030322e706e670bfa4a0c160026000bfa4b0c16000bfa4e0c1c2d000c0bfc4ffa500c1c2c3c46000bf9510cfd52000cfa530c16000b0b8c980ca8'
def dd(data):
d1 = data[:1]
data = data[1:]
return d1,data
def reddd(data,str=None):
if str:
pass
else:
str=''
d,retdata = dd(data)
if d == '3':
d1,retdata1 = dd(retdata)
str += d1
return reddd(retdata1,str)
else:
return str
def decodeQQnumber(data):
retdata = re.findall(d+'([0-9]{0,24})',data)
if retdata:
print reddd(retdata[0])
else:
print 'null'
#decodeQQnumber(data)