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
|
package security
|
||||||
|
|
||||||
import (
|
import (
|
@ -1,3 +1,5 @@
|
|||||||
|
// +build windows
|
||||||
|
|
||||||
package security
|
package security
|
||||||
|
|
||||||
import (
|
import (
|
||||||
@ -6,7 +8,6 @@ import (
|
|||||||
"github.com/senorprogrammer/wtf/wtf"
|
"github.com/senorprogrammer/wtf/wtf"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
func DnsServers() []string {
|
func DnsServers() []string {
|
||||||
cmd := exec.Command("powershell.exe", "Get-DnsClientServerAddress | Select-Object –ExpandProperty ServerAddresses")
|
cmd := exec.Command("powershell.exe", "Get-DnsClientServerAddress | Select-Object –ExpandProperty ServerAddresses")
|
||||||
return []string{wtf.ExecuteCommand(cmd)}
|
return []string{wtf.ExecuteCommand(cmd)}
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
// +build !windows
|
||||||
|
|
||||||
package security
|
package security
|
||||||
|
|
||||||
// http://applehelpwriter.com/2017/05/21/how-to-reveal-hidden-users/
|
// http://applehelpwriter.com/2017/05/21/how-to-reveal-hidden-users/
|
@ -1,3 +1,5 @@
|
|||||||
|
// +build windows
|
||||||
|
|
||||||
package security
|
package security
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
// +build !windows
|
||||||
|
|
||||||
package security
|
package security
|
||||||
|
|
||||||
import (
|
import (
|
@ -1,3 +1,5 @@
|
|||||||
|
// +build windows
|
||||||
|
|
||||||
package security
|
package security
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
Loading…
x
Reference in New Issue
Block a user