Giter Club home page Giter Club logo

Comments (10)

tomas avatar tomas commented on July 28, 2024

Yes, it surely must be annoying. We changed some stuff regarding auto-connect in 0.4.4. Can you confirm that the bug is still around?

from prey-bash-client.

nadim31 avatar nadim31 commented on July 28, 2024

So far, I havent had any problems with it. Looking good.
Thanks

from prey-bash-client.

tomas avatar tomas commented on July 28, 2024

Great! Closing then. :)

from prey-bash-client.

nadim31 avatar nadim31 commented on July 28, 2024

It happened again. I had my computer on sleep (closed the lid of the laptop). Opened the lid, entered my windows password and it automatically connected to an open network in my area, rather than connecting to my home network. Please look into this.
Thanks
Im using Windows 7 Home Premium x64

from prey-bash-client.

drewreece avatar drewreece commented on July 28, 2024

Silly question, do you have auto_connect='y' in the prey config? That option will make it search for open networks connect to the first one.

Is there an option to 'forget' used networks in the wifi setup, your PC may join them if they are in the history of networks.

from prey-bash-client.

nadim31 avatar nadim31 commented on July 28, 2024

Wifi connect is on (check mark = 'y'). I looked at my network list (manage wireless networks), and it does not show the open network. First, I put my computer to sleep. Then, i wake it up, and login. But I looked at the prey log file, and I think since it "apparently" could not automatically connect to my home network, that it automatically connected to an open network. Maybe add a command saying when the computer is turned awake/on or whatever you want to call it, wait a few mins before it does the check?

Hope this helps.

from prey-bash-client.

drewreece avatar drewreece commented on July 28, 2024

If auto_connect='y' Prey will try to connect to the first open network after performing a network scan. It checks for an internet connection if there is none it then scans for open access points.
It may be possible to add a delay before the first time it checks for an internet connection, but it will always delay when prey runs because it is difficult to work out if the computer has just come out of sleep.

Are you able / willing to test adding the delay to the script?
If so open up prey.sh in a text editor and add ...
sleep 5
on line 35 (before check_net_status)

See if it makes any difference, you may need to try other values (time in seconds).
I suspect this may not work because the wifi network might only initiate a connection when the check_net_status asks for internet access (just a guess).

Otherwise you can disable autoconnect & the behaviour will stop, but it makes it less easy to track if it is stolen or missing.

from prey-bash-client.

tomas avatar tomas commented on July 28, 2024

Hey Nadim,

Prey does wait a few secs before attempting to check and connect to a WiFi access point. Can you try seeing how much time does it take for your PC to connect to your home network. Maybe we could add an option that allows setting a delay. What do you think?

from prey-bash-client.

drewreece avatar drewreece commented on July 28, 2024

Tomas the last pull had the timing fix (for 10 seconds) in commit c4ed42b a setting may help (or just give people something else to meddle with :^).

Nadim, I think I meant line 45, before the second check_net_status, sorry.

from prey-bash-client.

nadim31 avatar nadim31 commented on July 28, 2024

Thanks for your help!
So far, so good. Sleep is set to 5.
Will update you if I still see the problem! :)

from prey-bash-client.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.