From 21f3ab20d04c182e8cf900359788c09ae1eb9b00 Mon Sep 17 00:00:00 2001 From: Richard Gepp Date: Sun, 24 Mar 2019 21:31:48 +0000 Subject: [PATCH] Added support for Multi-Factor Authentication Changed comment to use 'OTP' rather than 'HOTP'. --- alexa_remote_control.sh | 2 +- alexa_remote_control_plain.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/alexa_remote_control.sh b/alexa_remote_control.sh index 68d47b7..7f4b131 100644 --- a/alexa_remote_control.sh +++ b/alexa_remote_control.sh @@ -402,7 +402,7 @@ ${CURL} ${OPTS} -s -c ${COOKIE} -b ${COOKIE} -A "${BROWSER}" -H "Accept-Language -H "$(grep 'Location: ' ${TMP}/.alexa.header | sed 's/Location: /Referer: /')" -d "@${TMP}/.alexa.postdata" https://www.${AMAZON}/ap/signin | grep "hidden" | sed 's/hidden/\n/g' | grep "value=\"" | sed -r 's/^.*name="([^"]+)".*value="([^"]+)".*/\1=\2\&/g' > "${TMP}/.alexa.postdata2" # -# add HOTP if using MFA +# add OTP if using MFA # if [ ! -z "${MFA_SECRET}" ] ; then OTP=$(oathtool --base32 --totp "${MFA_SECRET}") diff --git a/alexa_remote_control_plain.sh b/alexa_remote_control_plain.sh index 19e7f9a..85f4424 100644 --- a/alexa_remote_control_plain.sh +++ b/alexa_remote_control_plain.sh @@ -345,7 +345,7 @@ ${CURL} ${OPTS} -s -c ${COOKIE} -b ${COOKIE} -A "${BROWSER}" -H "Accept-Language -H "$(grep 'Location: ' ${TMP}/.alexa.header | sed 's/Location: /Referer: /')" -d "@${TMP}/.alexa.postdata" https://www.${AMAZON}/ap/signin | grep "hidden" | sed 's/hidden/\n/g' | grep "value=\"" | sed -r 's/^.*name="([^"]+)".*value="([^"]+)".*/\1=\2\&/g' > "${TMP}/.alexa.postdata2" # -# add HOTP if using MFA +# add OTP if using MFA # if [ ! -z "${MFA_SECRET}" ] ; then OTP=$(oathtool --base32 --totp "${MFA_SECRET}")