ios_liginevent.py 412 Bytes
Newer Older
liuxiaoxing committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
from online_ios_event.ios_script import allEvent
import socket
import struct
import random

#ios常规渠道登陆
appkey = '120d66f57a94b73b735626c5a1e6e25a'


for _ in range(10):
    # 随机生成12为数组
    i = ''.join(str(random.choice(range(10))) for _ in range(12))
    # 随机生成ip
    ip = socket.inet_ntoa(struct.pack('>I', random.randint(1, 0xffffffff)))
    allEvent().loginEvent(i,ip,appkey)