This repository has been archived by the owner on May 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 46
/
ssh.py
54 lines (50 loc) · 1.48 KB
/
ssh.py
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
import requests
import json
servers=json.loads(requests.get('https://api.single-developers.software/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://api.single-developers.software/servers?id={serverid}').content)
status=requests.get(f'https://api.single-developers.software/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://api.single-developers.software/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)