mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
14 lines
273 B
Go
14 lines
273 B
Go
package security
|
||
|
||
import (
|
||
"os/exec"
|
||
|
||
"github.com/senorprogrammer/wtf/wtf"
|
||
)
|
||
|
||
|
||
func DnsServers() []string {
|
||
cmd := exec.Command("powershell.exe", "Get-DnsClientServerAddress | Select-Object –ExpandProperty ServerAddresses")
|
||
return []string{wtf.ExecuteCommand(cmd)}
|
||
}
|