Last active
October 4, 2018 00:49
-
-
Save jpginc/2f29386f2a0d9ad9986ad5400b26816d to your computer and use it in GitHub Desktop.
dns2
This file contains 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
loop, Read, allDnsQuery.txt, decoded1.txt | |
{ | |
FileAppend, % asciiHexToStr(A_LoopReadLine) "`n" | |
} | |
asciiHexToStr(str) | |
{ | |
decoded := "", start := -1 | |
while(start <= StrLen(str)) { | |
decoded .= chr("0x" SubStr(str, (start := start + 2), 2)) | |
} | |
return decoded | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment