Last active
October 27, 2021 06:53
-
-
Save Malith-Rukshan/e5a1bbad94a47a64b03228e2a27e6c08 to your computer and use it in GitHub Desktop.
API BΡ π» ππππππ π³πππππππππ βοΈ
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import json | |
servers=json.loads(requests.get('https://single-developers.herokuapp.com/servers').content) | |
for server in servers: | |
id=str(server) | |
ip=servers[str(server)]['ip'] | |
location=servers[str(server)]['location'] | |
emoji=servers[str(server)]['emoji'] | |
print( | |
f"""β Server ID : {id} | |
β Server Host : {ip} | |
β Server Location : {emoji} {location} {emoji} | |
""") | |
serverid=input('Server ID : ') | |
server=json.loads(requests.get(f'https://single-developers.herokuapp.com/servers?id={serverid}').content) | |
status=requests.get(f'https://single-developers.herokuapp.com/servers?status={serverid}').content | |
ip=server['ip'] | |
location=server['location'] | |
emoji=server['emoji'] | |
print( | |
f""" | |
β Server ID : {serverid} | |
β Server Host : {ip} | |
β Server Location : {emoji} {location} {emoji} | |
β Server Status : {str(status)}""" | |
) | |
username=input('User Name : ') | |
password=input('Password : ') | |
ssh=serverid+'$'+username+'$'+password | |
ssh_result=requests.get(f'https://single-developers.herokuapp.com/create?ssh={str(ssh)}').content | |
try: | |
json_ssh=json.loads(ssh_result) | |
user_name=json_ssh['username'] | |
passwd=json_ssh['password'] | |
port=json_ssh['port'] | |
ex_date=json_ssh['ex_date'] | |
login=json_ssh['login'] | |
print( | |
f""" | |
β Server Location : {emoji} {location} {emoji} | |
β Server Host : {ip} | |
β SSL Port : {port} | |
β User Name : {user_name} | |
β Password : {passwd} | |
β Expire Date : {ex_date} | |
β Login : {login} | |
< https://t.me/SingleDevelopers />""" | |
) | |
except: | |
print(ssh_result) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment