summaryrefslogtreecommitdiffstats
path: root/skripti/discord_token.sh
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xskripti/discord_token.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/skripti/discord_token.sh b/skripti/discord_token.sh
new file mode 100755
index 0000000..73e4ed9
--- /dev/null
+++ b/skripti/discord_token.sh
@@ -0,0 +1,5 @@
+#!/bin/sh
+c=null
+[ $2x = x ] || c=$2
+r=`curl -X POST -H "Content-Type: application/json" https://discord.com/api/v9/auth/login --data-raw "{\"login\":\"$1\",\"password\":\"$DC_P\",\"undelete\":\"false\",\"captcha_key\":$c,\"login_source\":null,\"gift_code_sku_id\":null}"`
+jq -r .token <<<$r