🚸 [agent v0.3.3] 优化多行及带参命令执行

This commit is contained in:
naiba
2021-01-28 23:19:59 +08:00
parent c55cb942b3
commit e914dd8135
5 changed files with 30 additions and 4 deletions

View File

@@ -4,6 +4,7 @@ import (
"crypto/md5"
"encoding/hex"
"math/rand"
"os"
"time"
"unsafe"
)
@@ -40,3 +41,7 @@ func MD5(plantext string) string {
hash.Write([]byte(plantext))
return hex.EncodeToString(hash.Sum(nil))
}
func IsWindows() bool {
return os.PathSeparator == '\\' && os.PathListSeparator == ';'
}