document.write('
Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. # Code Snippet from aperturescience.su
  2. function Get-ExternalIP
  3. {
  4.     Param
  5.     (
  6.         [String]$ipcheckurl = "http://icanhazip.com/"
  7.         #Alternative URLS
  8.         #   http://automation.whatismyip.com/n09230945.asp
  9.         #   http://whatismyip.akamai.com/
  10.         #   http://b10m.swal.org/ip
  11.     )
  12.     $wc = New-Object Net.WebClient
  13.     $wc.headers["UserAgent"] = "Mozilla/5.0 (Windows NT 6.2; WOW64)"
  14.     return $wc.downloadstring($ipcheckurl)
  15. }
  16. # Code Snippet from aperturescience.su
');