summaryrefslogtreecommitdiffstats
path: root/src/target
diff options
context:
space:
mode:
authorVadim Yanitskiy <axilirator@gmail.com>2019-07-24 02:05:35 +0700
committerVadim Yanitskiy <axilirator@gmail.com>2019-07-24 02:05:35 +0700
commit06e3b4fa54645532e0583215fb4ccebb3e5ce815 (patch)
tree4eae057b82017467c998fbd592bad15318e58f08 /src/target
parentd0a8b49d51a7f7813d0335e15b21d20bc2c6159f (diff)
trx_toolkit/trx_sniff.py: fix compatibility with Python 3
Diffstat (limited to 'src/target')
-rwxr-xr-xsrc/target/trx_toolkit/trx_sniff.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/target/trx_toolkit/trx_sniff.py b/src/target/trx_toolkit/trx_sniff.py
index add04e1..6592455 100755
--- a/src/target/trx_toolkit/trx_sniff.py
+++ b/src/target/trx_toolkit/trx_sniff.py
@@ -83,7 +83,7 @@ class Application(ApplicationBase):
trx = udp.payload
# Convert to bytearray
- msg_raw = bytearray(str(trx))
+ msg_raw = bytearray(trx.load)
# Determine a burst direction (L1 <-> TRX)
l12trx = udp.sport > udp.dport