-
-
Save CN-CODEGOD/bc12f040d8bd83f3cf5ac64e55c78004 to your computer and use it in GitHub Desktop.
powershell key read
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| for ($i = 0; $i -eq 0) { | |
| #鎸塃nter 鑾峰彇浣犵殑鍏綉IP... | |
| Write-Host "鎸塃nter 鑾峰彇浣犵殑鍏綉IP..." | |
| $x = $host.UI.RawUI.ReadKey("NoEcho,IncludeKeyDown") | |
| Write-Host "姝e湪鑾峰彇鍏綉IP..." | |
| $ip = (Invoke-WebRequest -Uri "http://ipinfo.io/ip").Content | |
| Write-Host "浣犵殑鍏綉IP鏄? $ip" | |
| } | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment