Skip to content

Instantly share code, notes, and snippets.

@rms1000watt
Created July 13, 2016 15:40
Show Gist options
  • Save rms1000watt/5cd55f27abb3257fbef22696f34a904c to your computer and use it in GitHub Desktop.
Save rms1000watt/5cd55f27abb3257fbef22696f34a904c to your computer and use it in GitHub Desktop.
Python script to convert Wireshark Hex output to ASCII
def main():
packet = "|dc|ef|09|b0|e8|ba|ac|bc|32|91|f2|93|08|00|45|00|00|68|d8|73|40|00|40|06|4a|cd|c0|a8|01|07|95|38|c0|67|f5|62|0b|b9|3a|03|1d|1d|8f|c2|52|1d|80|18|10|15|64|61|00|00|01|01|08|0a|4e|2a|51|99|00|e4|c8|7e|03|00|00|34|2f|e0|00|00|00|00|00|43|6f|6f|6b|69|65|3a|20|6d|73|74|73|68|61|73|68|3d|67|6c|6f|77|63|6c|6f|75|64|5c|66|72|65|64|0d|0a|01|00|08|00|0b|00|00|00|"
packet = ''.join(packet.split('|'))
print packet.decode("hex")
if __name__ == '__main__':
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment