Announcement

Collapse
No announcement yet.

register_with_find.sh --> What does this script do?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    register_with_find.sh --> What does this script do?

    So I notice that I have a register_with_find.sh run every 5 minutes trying to reach checkip.homeseer.com:8245 and then find.homeseer.com:911.

    What is this, and why is it run?

    Any ideas?

    Code:
    homeseer@HomeTrollerZeeS2 /var/log $  more /usr/local/HomeSeer/register_with_find.sh
    #!/bin/bash
    host=`/bin/hostname`
    ip=`ip addr | grep 'state UP' -A2 | tail -n1 | awk '{print $2}' | cut -f1  -d'/'`
    wanip=`wget http://checkip.homeseer.com:8245 -q -O -`
    re="[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}"
    if [[ $wanip =~ $re ]]; then
        wanip=${BASH_REMATCH[0]}
    fi
    
    while [[ $x -le 5 ]]
    do
    x=$(( $x + 1 ))
    sleep 5
    done
    
    url=http://find.homeseer.com/findhomeseer/default.aspx?srcip=$wanip\&localip=$ip\&machine=$host\&tools=true\&port=911
    sudo wget $url --spider -q -O -

    #2
    This is what allows the find.homeseer.com service to work. Each instance of homeseer (HS3, z-net) runs this or equivalent.

    You can run the line
    wget http://checkip.homeseer.com:8245 -q -O -
    and see that it returns your 'WAN address', for most of us is the IP address assigned by our ISP. Then the last line of the script sends this along with the local IP address to the find.homeseer.com server. That server collates all the responses from the same WAN address into the table displayed when the search from http://find.homeseer.com/findhomeseer/ is performed.

    Comment


      #3
      Okay, Well then why is it run on my HomeSeer since I have NOT allowed "Enable remote access through MyHomeSeer service" - that is I have disabled MyHomeSeer...

      So this should not run at all then.

      Comment


        #4
        Originally posted by larhedse View Post
        Okay, Well then why is it run on my HomeSeer since I have NOT allowed "Enable remote access through MyHomeSeer service" - that is I have disabled MyHomeSeer...

        So this should not run at all then.
        This script is a local executable and has nothing to do with myHS.
        💁‍♂️ Support & Customer Service 🙋‍♂️ Sales Questions 🛒 Shop HomeSeer Products

        Comment


          #5
          I know this post is really old but I'm stunned that people haven't made a bigger deal about this. Basically, every time an HS system boots, it informs HST as to the WAN and LAN IP addresses of the system. This is equivalent to spyware.
          "if I have seen further [than others], it is by standing on the shoulders of giants." --Sir Isaac Newton (1675)

          Comment

          Working...
          X