From 8556f60e28b53ddbf1155b94c25ebba3093ab896 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anton=20Luka=20=C5=A0ijanec?= Date: Sun, 15 Oct 2023 16:18:50 +0200 Subject: discord token --- skripti/discord_token.sh | 5 +++++ 1 file changed, 5 insertions(+) create mode 100755 skripti/discord_token.sh (limited to 'skripti') 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 -- cgit v1.2.3