Created
December 25, 2018 19:00
-
-
Save happyhater/9fc5b0ceffcdae87f1fe568874d50c19 to your computer and use it in GitHub Desktop.
keepalive IRCCloud - Trial Account
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
## zmeu (zmeu@whitehat.ro) Tue Dec 25 12:49:04 CST 2018 | |
## keepalive IRCCloud - Trial Account | |
AGENT="IRCCloud/4.5 (iPhone; en; iPhone OS 12.1.2)" | |
URL="https://www.irccloud.com/chat" | |
USER="YOUR-ACCOUNT-NAME" | |
PASS="YOUR-PASSWORD" | |
TOKENIZE=$(curl -s -A $AGENT -X POST "$URL/auth-formtoken" --header "content-length: 0"|cut -d"\"" -f8) | |
SESSION=$(curl -s -A $AGENT -d email=$USER -d password=$PASS -d token=$TOKENIZE --header "content-type: application/x-www-form-urlencoded" --header "x-auth-formtoken: $TOKENIZE" "$URL/login"|cut -d"\"" -f8) | |
curl -s -A $AGENT -b session=$SESSION "$URL/stream" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment