diff options
Diffstat (limited to '')
-rw-r--r-- | prog/.gitignore | 1 | ||||
-rwxr-xr-x | skripti/discord_token.sh | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/prog/.gitignore b/prog/.gitignore new file mode 100644 index 0000000..69cdd15 --- /dev/null +++ b/prog/.gitignore @@ -0,0 +1 @@ +4arc/ 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 |