simao-silva / noip-renewer

Renewing No-IP hosts by browser automation
https://hub.docker.com/r/simaofsilva/noip-renewer
MIT License
87 stars 26 forks source link

'Login button has changed. Please contact support.' #8

Closed dkrjvi closed 2 years ago

dkrjvi commented 2 years ago

Hi Simao Silva, What a great solution you've created! worked like a charm until recently, but now when I run it I get this:


Opening browser Login button has changed. Please contact support.


Any idea why? Let me know if any additional info is needed. Rgrd.

simao-silva commented 2 years ago

That message is due to the changes that NO-IP does to the HTML code. However, I've been able to run the latest image without any errors. Can you run the following commands and post the logs if any issues occur? Don't forget to hide any sensitive information.

docker run -it --rm simaofsilva/noip-renewer:latest
docker run -it --rm simaofsilva/noip-renewer:slim
docker run -it --rm simaofsilva/noip-renewer:alpine
dkrjvi commented 2 years ago

I tried, but got the same results as before:

/usr/bin/docker run --rm -it --name noip-renew simaofsilva/noip-renewer:alpine "$NOIP_USER" "$NOIP_PASS"
Opening browser
Login button has changed. Please contact support.
/usr/bin/docker run --rm -it --name noip-renew simaofsilva/noip-renewer:slim "$NOIP_USER" "$NOIP_PASS"
Opening browser
Login button has changed. Please contact support.
/usr/bin/docker run --rm -it --name noip-renew simaofsilva/noip-renewer:latest "$NOIP_USER" "$NOIP_PASS"
Opening browser
Login button has changed. Please contact support.

Let me know if you need anything else.

simao-silva commented 2 years ago

@dkrjvi please paste the output of the following:

docker run -it --rm simaofsilva/noip-renewer:debug
dkrjvi commented 2 years ago

@simao-silva, here you go:

/usr/bin/docker run --rm -it simaofsilva/noip-renewer:debug "$NOIP_USER" "$NOIP_PASS"
Opening browser
Printing source code for debug

</h2>
                            <p class="darkgrey"><small>If you are not currently a registered user of NoIP.com and would like to be for <strong> FREE</strong>, <a href="https://www.noip.com/sign-up"> register</a> as a new user.</small></p>
                        </div>

                        <div class="col-sm-8 col-sm-offset-2">

                            <form method="post" action="https://www.noip.com/login" id="clogs" class="row">
                              <input type="hidden" name="_token" value="Q4yCHa19rjeo8sZgil1lp86gpNlgDnEHKUFdyn7V">                                                            <input class="col-sm-12" name="username" type="text" maxlength="50" value="" placeholder="Username or Email">

                                <input class="col-sm-12" name="password" type="password" placeholder="Password" autocomplete="off">
                                <input type="hidden" name="submit_login_page" value="1">
                                <input type="hidden" id="hash-input" name="intended_hash" value="">
                                                                    <input id="clogs-captcha-token" name="g-recaptcha-response" type="hidden">
<button type="submit" id="clogs-captcha-button" class="nomarg col-sm-12 button pull-right">
    Log In
</button>

<script src="https://

Login button has changed. Please contact support. 
simao-silva commented 2 years ago

I don't know why but I get the same output as you but in my case the button is found. I am trying a new approach. Can you please see if running the command below fixes your problem?

docker run --rm -it simaofsilva/noip-renewer:debug-v2
dkrjvi commented 2 years ago

This is really weird. Unfortunately, I got the same result:

/usr/bin/docker run --rm -it simaofsilva/noip-renewer:debug-v2 "$NOIP_USER" "$NOIP_PASS"
Opening browser
Login button has changed. Please contact support. 
simao-silva commented 2 years ago

Have you tried to use it without the variables?

dkrjvi commented 2 years ago

Yes, the same.

 /usr/bin/docker run --rm -it simaofsilva/noip-renewer:debug-v2
Email: xxx@xxxx.com
Password:
Opening browser
Login button has changed. Please contact support.
simao-silva commented 2 years ago

Try running the following command and check if the output images have anything strange.

docker run -it --rm -v "some-local-dir":/photos simaofsilva/noip-renewer:debug-v3

The output should be like the image below filled with your email and password.

dkrjvi commented 2 years ago

I run this: /usr/bin/docker run --rm -it -v "/mnt/c/test/":/photos simaofsilva/noip-renewer:debug-v3 "$NOIP_USER" "$NOIP_PASS"

and got these two blank files (login1.png, login2.png): login1 login2

is that strange enough? ;-) btw, I have no problem reaching https://www.noip.com/login via a web browser.

simao-silva commented 2 years ago

That is strange. For some reason you are not able to open the No-IP website properly. From the way you mounted the volume it seems that you are using docker in WSL. Is that correct? Even so, I ran it on WSL without any issues. I don't how to fix your issue since I am unable to replicate it.

dkrjvi commented 2 years ago

Yes, I use Docker Desktop and WSL Ubuntu 20.04 on Windows 10 - As I said it work perfect in the past until recently. I will check if the issue persist by testing different machines with Windows/Linux and advise on my results. Thank you for your help so far :-)

dkrjvi commented 2 years ago

Well I checked this on different scenarios and the bottom line is that the issue is on my end. I'm using pihole as a DNS filter on my home network and it seems when the address www.google-analytics.com was blocked this issue occurred.

image

I'm not clear why this specific web address causes this but once it was whitelisted the script worked as expected. Anyway, I appreciate your time, effort and patience to assist me on this. Thank you! and again great script! :-)