-
-
Save SammysHP/1f7424976899212e371e to your computer and use it in GitHub Desktop.
dyn.com login script
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/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" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you very much - I tend to forget the 30th day, and I had to register anew if I would not use your script.