Skip to content

Commit

Permalink
Update gethostinfo_windows.go
Browse files Browse the repository at this point in the history
  • Loading branch information
Ptkatz authored Oct 12, 2022
1 parent 745b31c commit 5d12f46
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions Orca_Puppet/cli/cmdopt/listopt/gethostinfo_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 5d12f46

Please sign in to comment.