From 9c614ae526a937e90012febba52724f1a5be3f38 Mon Sep 17 00:00:00 2001 From: hploetz Date: Wed, 14 Jun 2006 09:11:46 +0000 Subject: [PATCH] TLV_utils.decode as external tool git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@84 f711b948-2313-0410-aaa9-d29f33439f0b --- tlvdecoder.py | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 tlvdecoder.py diff --git a/tlvdecoder.py b/tlvdecoder.py new file mode 100755 index 0000000..9f44c80 --- /dev/null +++ b/tlvdecoder.py @@ -0,0 +1,9 @@ +#!/usr/bin/env python +# -*- coding: iso-8859-1 -*- + +from TLV_utils import * +import binascii, sys + +if __name__ == "__main__": + a = binascii.unhexlify("".join( sys.stdin.read().split() )) + print decode(a)