Skip to content
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.

winthing.ini \ whitelist.ini not being applied #17

Open
lance36 opened this issue Jun 5, 2019 · 1 comment
Open

winthing.ini \ whitelist.ini not being applied #17

lance36 opened this issue Jun 5, 2019 · 1 comment

Comments

@lance36
Copy link

lance36 commented Jun 5, 2019

Both files are in the same directory as the exe\jar and contain
asdrufale = "c:\windows\system32\calc.exe"

a payload to winthing/system/commands/run with [asdrufale] yields:

23:44:46 ERROR [MQTT Call: WinThing/com.fatico.winthing.messaging.Engine] Error while processing system/commands/run(["asdrufale"]): Could not run command: asdrufale

What's worse is that whatever i put into that file seems to get ignored, leaving full execution control upon the windows machine (as default behavior)

@holgerstollenwerk
Copy link

Hi - even if it's late after your question. I had the same issue.

The .ini file is working fine. You need to transport the argument in another way (as JSON object with "[value]"):

e.g. (my openhab config)
mqttActions.publishMQTT("winthing/system/commands/run", "[steam]")

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants