Skip to content

Commit 2a0fdde

Browse files
author
Adam Maddock
committed
These decoders were specifying their output preference using the deprecated method of setting "self.output" to the string/name of the output library.
1 parent d3e447e commit 2a0fdde

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

decoders/http/httpdump.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import hashlib
44
import urllib
55
import re
6+
import colorout
67

78
from httpdecoder import HTTPDecoder
89

@@ -25,7 +26,7 @@ def __init__(self):
2526
'urlfilter': {'type': 'string', 'default': None, 'help': 'Filter to URLs matching this regex'},
2627
},
2728
)
28-
self.output = 'colorout'
29+
self.out = colorout.ColorOutput()
2930
# Disable auto-gunzip as we want to indicate content that was
3031
# compressed in the output
3132
self.gunzip = False

decoders/smb/psexec.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def __init__(self):
5252
)
5353
self.legacy = True
5454
# self.out=colorout.ColorOutput(title='psexec')
55-
self.output = 'colorout'
55+
self.out = colorout.ColorOutput()
5656

5757
def sessIndexFromPID(self, conn, pid):
5858
return ':'.join((str(conn.starttime), conn.sip, str(conn.sport), conn.dip, str(conn.dport), pid))

0 commit comments

Comments
 (0)