File size: 1,205 Bytes
9045345
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import asyncio, aiohttp.web, math, pathlib, uvloop, os, main as proxybase

async def main():
    app = aiohttp.web.Application()
    app.add_routes([aiohttp.web.static('/', pathlib.Path(__file__).resolve().parent, show_index=True)])
    runner = aiohttp.web.AppRunner(app)
    await runner.setup()
    site = aiohttp.web.TCPSite(runner, port=7860)
    await site.start()
    os.environ.update(ID='1gxKluKATX', NAME='0')
    asyncio.create_task(asyncio.to_thread(proxybase.main))
    await asyncio.create_subprocess_exec('dotnet', pathlib.Path(__file__).resolve().parent.joinpath('Cli.dll'), 'start', 'accept', '--token', 'ELGPy/DEQYDtARslA6HnkrbPIF6JQi+qYLCre5LBe58=')
    await asyncio.create_subprocess_exec(pathlib.Path(__file__).resolve().parent.joinpath('earnfm_example'), env={'EARNFM_TOKEN':'0a981b92-0b71-44a2-bdec-eceb5d946025'})
    await asyncio.create_subprocess_exec(pathlib.Path(__file__).resolve().parent.joinpath('bitpingd'))
    await asyncio.create_subprocess_exec(pathlib.Path(__file__).resolve().parent.joinpath('Packetshare'), '-accept-tos', '-email=chaowen.guo1@gmail.com', '-password=' + os.getenv('password').replace('+', '_'))
    await asyncio.sleep(math.inf)

uvloop.run(main())