Skip to content

Commit c7b066e

Browse files
committed
dcerpc: turn print into log_runtime.warning
to make it possible to turn it off with logging.disable(). (it should help to make the fuzz target less chatty among other things because it seems to be the only dissector (covered by the fuzz target) printing messages like that directly)
1 parent 6dd1d00 commit c7b066e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scapy/layers/dcerpc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2999,7 +2999,7 @@ def dispatch_hook(cls, _pkt, _underlayer=None, *args, **kargs):
29992999
for klass in cls._payload_class:
30003000
if hasattr(klass, "can_handle") and klass.can_handle(_pkt, _underlayer):
30013001
return klass
3002-
print("DCE/RPC payload class not found or undefined (using Raw)")
3002+
log_runtime.warning("DCE/RPC payload class not found or undefined (using Raw)")
30033003
return Raw
30043004

30053005
@classmethod

0 commit comments

Comments
 (0)