edgan / att-fiber-gateway-info

A golang command line tool to pull values from the pages of a AT&T Fiber BGW320-505 gateway.
5 stars 1 forks source link

Added "Restart" to actions #4

Closed Whomiga closed 2 hours ago

Whomiga commented 2 hours ago

Added the "Restart" option to the actions available - everything else should be unchanged

Whomiga commented 2 hours ago

Apparently, to send a POST indicating a button press, the nonce has to be retrieved from the page that the button is on in order to securely handle the POST.

edgan commented 2 hours ago

Yeah, I figured out the nonce while doing my own research. I also reused my existing method to retrieve it with some tweaking.

I have implemented your method. You implemented how I would have implemented it. I should have a new release today.

edgan commented 2 hours ago

I am going to add an "Are you sure?" question for it, and also allow a automatic yes to the question.

Whomiga commented 2 hours ago

I am going to add an "Are you sure?" question for it, and also allow a automatic yes to the question.

I made a modified version that only has the login and restart parts, coded my IP and Password into it, but allows for those to be changed for my own use as I just needed the restart functionality (and didn't need all the rest) as it was being automatically called by a program I've made to detect the loss of internet connection,

Whomiga commented 2 hours ago

Yeah, I figured out the nonce while doing my own research. I also reused my existing method to retrieve it with some tweaking.

I have implemented your method. You implemented how I would have implemented it. I should have a new release today.

I tried to follow your style as much as I could

edgan commented 2 hours ago

I tried to follow your style as much as I could

Yeah, I could tell. But you also deleted all the other functions, and I had added even more stuff after your fork.

I just finished testing my question code. Time to make a new release.

edgan commented 2 hours ago

Thank you for the code, and the idea. :)

Whomiga commented 1 hour ago

I tried to follow your style as much as I could

Yeah, I could tell. But you also deleted all the other functions, and I had added even more stuff after your fork.

I just finished testing my question code. Time to make a new release.

The latest fork I made after your latest stuff and just added the extra code - the fork is yours plus my extras (Or it should be)

edgan commented 1 hour ago

I am adding a THANKS.md in the next release to share my thanks.