14 lines
402 B
Bash
Executable File
14 lines
402 B
Bash
Executable File
#!/bin/bash
|
|
|
|
NONCE=$(curl -s https://chat.is-cute.ml/_synapse/admin/v1/register)
|
|
NONCE=${NONCE//\"}
|
|
NONCE=${NONCE//:}
|
|
NONCE=${NONCE//\}}
|
|
NONCE=${NONCE//\{}
|
|
NONCE=${NONCE//nonce}
|
|
echo $NONCE
|
|
DIGEST=$(python3 ./matrix-register.py $NONCE tetra 'RGfZk_-Hk5')
|
|
echo $DIGEST
|
|
|
|
echo $(http POST https://chat.is-cute.ml/_synapse/admin/v1/register nonce=$NONCE username="tetra" password="RGfZk_-Hk5" mac=$DIGEST)
|