herzhenr / simple-wake-on-lan

A cross platform app for waking machines on the network with Wake On Lan
MIT License
114 stars 15 forks source link

Support SecureOn password. #6

Open RokeJulianLockhart opened 1 year ago

RokeJulianLockhart commented 1 year ago

Some devices are unable to boot via WOL without it being provided in the boot packets.

herzhenr commented 1 year ago

I didn't even know wake on lan supports this. The flutter package wake on lan which I am using does't support the secureOn option so I would need to adjust the package my own to make it work. If I have done my research correctly, the secureOn password is only appended at the end of the wol package after the macAddress is repeated 16 times. This would be relatively simple to implement and I can try to contribute this feature to the flutter package.

But I don't have any devices to test if this works correctly. I couldn't really find any resource which explains which devices support this feature. Is it just a simple BIOS option which is still available in modern desktop mainboards? Or can you provide me with an example devices where you need this feature?

RokeJulianLockhart commented 1 year ago

Is it just a simple BIOS option which is still available in modern desktop mainboards?

@herzhenr, of what I know, that's indeed it. In the few UEFI GUIs I've seen support it, the input form being empty means no password. I don't recall seeing a toggle to (dis/en)able, but I'm truly uncertain. I can't say I know more about its implementation than you do, but perhaps https://github.com/search?q=repo%3AFlorianisme%2FWakeOnLan%20secureon&type=code shall be of some assistance?

JagandeepBrar commented 1 year ago

@herzhenr I have added support for setting a SecureON password with the release of wake_on_lan v4.1.0.

herzhenr commented 1 year ago

@JagandeepBrar Thank you very much for implementing this feature in the package! @rokejulianlockhart Since the package now supports this feature, I will adjust the UI accordingly to set a password.