Open Winbox from web page

Hi, is possible to open winbox with predefined IP / login / password from web page? In our monitoring system we want direct link to winbox.

We create some Windows custom protocol to open Winbox, but we dont know how to pass IP / login / password to fields.

Thanks a lot.

WinBox supports parameters:

winbox [<server> [<username> [<password>]]]

I also remember creating this, but it’s probably not needed, I assume it’s possible to pass parameters directly using protocol handler, but I’ve never worked with those.

Yes, but browser pass parameters with protocol name in one value (example: winbox:192.168.1.1 name password). In winbox host field is whole example (winbox:192.168.1.1 name password), name and password filed is empty (or values from past).

After some research, i created custom protocol with command, which separate parameters and pass to winbox.exe. No other skripts / program is needed, only some register values.

Thanks for winbox command.

It would be nice to share what you did, someone else can find it useful too.

Yes. Create custom URL Protocol: https://stackoverflow.com/questions/80650/how-do-i-register-a-custom-url-protocol-in-windows

The command is:

CMD /C FOR /F "tokens=1-4 delims=/" %%A IN ("%1") DO start "" "PATH TO winbox.exe" %%B %%C %%D

In web page, href is like:

winbox:/IP/name/password

I set the account password in windows, how can I remove it now? Retrieving the password also failed.