Instantly share code, notes, and snippets.

@RIKIKU /RunNslookupOnce.ps1 Secret
Last active Sep 6, 2017

Embed
What would you like to do?
@"
?
google.com 8.8.8.8
"@ | out-file "$env:USERPROFILE\Desktop\in.txt" -Encoding utf8 -Force
Start-Process nslookup -RedirectStandardInput "$env:USERPROFILE\Desktop\in.txt" -RedirectStandardOutput "$env:USERPROFILE\Desktop\out.txt"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment