Skip to content

Instantly share code, notes, and snippets.

@SammysHP
Created May 24, 2013 17:46
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SammysHP/1f7424976899212e371e to your computer and use it in GitHub Desktop.
Save SammysHP/1f7424976899212e371e to your computer and use it in GitHub Desktop.
dyn.com login script
#!/bin/sh
# url encoded strings
USER=""
PASS=""
URL="https://account.dyn.com"
COOKIE=`mktemp`
CSRF=`curl -s -c "$COOKIE" "$URL" | grep multiform | sed "s/.*name='multiform' value='\([^']\+\)'.*/\1/"`
curl -s -b "$COOKIE" -L -d "username=$USER&password=$PASS&submit=asdf&multiform=$CSRF" "$URL" > /dev/null 2>&1
rm -f "$COOKIE"
@wernerflamme
Copy link

Thank you very much - I tend to forget the 30th day, and I had to register anew if I would not use your script.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment