Last active
December 15, 2016 00:43
-
-
Save oliverbooth/e1e7b786d51b50b3993283cdbd7681e0 to your computer and use it in GitHub Desktop.
AutoHotkey hotstring for dumping your remote IP (using ipify)
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
; //ip macro by default - feel free to change this | |
; to whatever suits you best | |
; | |
; Oliver Davenport | |
:://ip:: | |
whr := ComObjCreate("WinHttp.WinHttpRequest.5.1") | |
; default format from ipify api is text/plain | |
whr.Open("GET", "https://api.ipify.org/", true) | |
whr.Send() | |
whr.WaitForResponse() | |
ip := whr.ResponseText | |
Send % ip | |
return |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment