1
0
mirror of https://github.com/taigrr/wtf synced 2025-01-18 04:03:14 -08:00

Add platform-specific compile directives for security modules

This commit is contained in:
Chris Cummer 2018-06-14 16:38:47 -07:00
parent b04d444e33
commit 4706eb5114
6 changed files with 12 additions and 1 deletions

View File

@ -1,3 +1,5 @@
// +build !windows
package security
import (

View File

@ -1,3 +1,5 @@
// +build windows
package security
import (
@ -6,7 +8,6 @@ import (
"github.com/senorprogrammer/wtf/wtf"
)
func DnsServers() []string {
cmd := exec.Command("powershell.exe", "Get-DnsClientServerAddress | Select-Object ExpandProperty ServerAddresses")
return []string{wtf.ExecuteCommand(cmd)}

View File

@ -1,3 +1,5 @@
// +build !windows
package security
// http://applehelpwriter.com/2017/05/21/how-to-reveal-hidden-users/

View File

@ -1,3 +1,5 @@
// +build windows
package security
import (

View File

@ -1,3 +1,5 @@
// +build !windows
package security
import (

View File

@ -1,3 +1,5 @@
// +build windows
package security
import (