Menu

#57 Is it recommended to use sngle quotes around username and password when using the --user switch?

1.1
closed-fixed
nobody
None
medium
2014-11-12
2014-11-04
KevP
No

Hi all,

In testing winexe v1.1 I've found a few issues with authentication failures. I think I've worked out that it might be due to quoting/not quoting the username and password. This seems to work best:

--user='domain\username'%'passowrd'

But is this recommended?... and does the code handle this correctly in all cases (to the best of your knowledge)...?

I'm using a 32bit winexe compiled on Ubuntu 14.04.

Cheers v much

Kev/.

Discussion

  • ahajda

    ahajda - 2014-11-12

    It is not winexe specific, it is rather shell depended. If any part of the string passed via command line contains special characters it should be properly escaped. In bash/sh enclosing string in single quotes is the simplest way, unless the string contains single quote :)
    Please read bash manual for full description of escaping characters.

     
  • ahajda

    ahajda - 2014-11-12
    • status: open --> closed-fixed
     

Log in to post a comment.