Skip to content

Instantly share code, notes, and snippets.

@jpginc
Last active October 4, 2018 00:49
Show Gist options
  • Save jpginc/2f29386f2a0d9ad9986ad5400b26816d to your computer and use it in GitHub Desktop.
Save jpginc/2f29386f2a0d9ad9986ad5400b26816d to your computer and use it in GitHub Desktop.
dns2
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