sliver icon indicating copy to clipboard operation
sliver copied to clipboard

Convert ~ to $HOME in stdin

Open duraki opened this issue 2 years ago • 0 comments

When I use generate command with --file param something similar to ~/file the tilde (~) is being taken literally. It should be refixed with $HOME internally. For absolute tilde, one can use "<~quotemarks>" without parenthesis.

Example:

sliver > version

[*] Client v1.4.20 - 7a38ddffb60d9205b1cef1bac430af742eff4e99 - darwin/amd64
    Compiled at 2021-07-23 18:37:13 +0200 CEST
    Compiled with go version go1.16.6 darwin/amd64


[*] Server v1.4.20 - 7a38ddffb60d9205b1cef1bac430af742eff4e99 - darwin/amd64
    Compiled at 2021-07-23 18:37:13 +0200 CEST

sliver > generate --mtls 192.168.0.15 --save ~/file --os Mac

[*] Generating new darwin/amd64 implant binary
[*] Symbol obfuscation is enabled
[*] Build completed in 00:00:37
[*] Implant saved to /Users/muser/~/file

Implant should be saved in $HOME/file not $HOME/~/file.

duraki avatar Aug 26 '21 08:08 duraki