Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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

This comment has been minimized.

Copy link

commented Aug 12, 2013

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
You can’t perform that action at this time.