Skip to content

Instantly share code, notes, and snippets.

@happyhater
Created December 25, 2018 19:00
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save happyhater/9fc5b0ceffcdae87f1fe568874d50c19 to your computer and use it in GitHub Desktop.
Save happyhater/9fc5b0ceffcdae87f1fe568874d50c19 to your computer and use it in GitHub Desktop.
keepalive IRCCloud - Trial Account
#!/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