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:
parent
b04d444e33
commit
4706eb5114
@ -1,3 +1,5 @@
|
||||
// +build !windows
|
||||
|
||||
package security
|
||||
|
||||
import (
|
@ -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)}
|
||||
|
@ -1,3 +1,5 @@
|
||||
// +build !windows
|
||||
|
||||
package security
|
||||
|
||||
// http://applehelpwriter.com/2017/05/21/how-to-reveal-hidden-users/
|
@ -1,3 +1,5 @@
|
||||
// +build windows
|
||||
|
||||
package security
|
||||
|
||||
import (
|
||||
|
@ -1,3 +1,5 @@
|
||||
// +build !windows
|
||||
|
||||
package security
|
||||
|
||||
import (
|
@ -1,3 +1,5 @@
|
||||
// +build windows
|
||||
|
||||
package security
|
||||
|
||||
import (
|
||||
|
Loading…
x
Reference in New Issue
Block a user