Open MrManor opened 2 years ago
Bryan got password prompting to work in MeshCmd, but it requires a new version of the native executable (C code) so, it will take a bit to get that released.
Glad you are looking into this, no hurry. For for now I made a simple obfuscation:
I made a .meshcmd directory in my home folder, and changed permissions on this folder to 700. I place meshaction.txt in this folder (with password) and call meshcmd using this bash script:
#!/bin/bash
if [ -z "$1" ]
then
echo "No token supplied"
exit 1
fi
cd ~/.meshcmd/
~/bin/meshcmd --token $1
Describe the bug Not a bug, more like a improvement. I am not a big fan of having my password laying around in plain txt files (meshaction.txt) and do not like to specify passwords directly on the command line:
To Reproduce Steps to reproduce the behavior:
Now anybody on the same machine can grep my password:
Expected behavior Would it be possible to promt for password, when not specified. Or have --ask-password as option.
Even better would be the possibility to specify a script/program in place of the actual password in meshaction.txt. Something like
It would the be possible for the user to use whatever he likes, as long as it returns the actual password on stdout
Remote Device (please complete the following information):