-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathAChCln_osx.go
36 lines (30 loc) · 1.15 KB
/
AChCln_osx.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// ****************************************************************
// * Only Include this file for OSX version *
// * - Uses the Embed Directive - Requires GoLang 1.16 *
// ****************************************************************
package main
import (
"fmt"
"os"
)
// ****************************************************************
// Platform Specific - Return OS (Version) *
// ****************************************************************
func GetOSVer() string {
return "OSX"
}
//****************************************************************
// Check for OSX Root by checking Effective UserId *
//****************************************************************
func IsUserAdmin() bool {
if os.Geteuid() != 0 {
return false
}
return true
}
// ****************************************************************
// Windows Console Hide and Show *
// ****************************************************************
func winConHideShow(HideOrShow int) {
fmt.Printf("[+] Console Hide/Show not Implemented for OSX\n")
}