25 lines
504 B
Python
Executable file
25 lines
504 B
Python
Executable file
#!/bin/python3
|
|
|
|
import requests
|
|
import hashlib
|
|
|
|
PASSWORD = '0'
|
|
USERNAME = '0'*1024*1024*1024
|
|
|
|
API_URL = "https://teamacedia.baselinux.net:22222/"
|
|
ENDPOINT_REGISTER = "/api/register"
|
|
|
|
def main() -> int:
|
|
response = requests.post(
|
|
url = API_URL + ENDPOINT_REGISTER,
|
|
json = {
|
|
"username": USERNAME,
|
|
"password": PASSWORD
|
|
}
|
|
)
|
|
|
|
print(response.status_code)
|
|
return 0 if response.status_code == 200 else 1
|
|
|
|
if __name__ == '__main__':
|
|
exit(main())
|