From cccdc9842648518de7ee48ce461801954fc334c8 Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Thu, 2 Jun 2016 12:31:41 +1200 Subject: Utils reorganisation: add netlib.strutils Extract a number of string and format-related functions to netlib.strutils. --- examples/tcp_message.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples/tcp_message.py') diff --git a/examples/tcp_message.py b/examples/tcp_message.py index 52471ae9..2c210618 100644 --- a/examples/tcp_message.py +++ b/examples/tcp_message.py @@ -8,7 +8,7 @@ tcp_message Inline Script Hook API Demonstration example cmdline invocation: mitmdump -T --host --tcp ".*" -q -s examples/tcp_message.py ''' -from netlib.utils import clean_bin +from netlib import strutils def tcp_message(ctx, tcp_msg): @@ -22,4 +22,4 @@ def tcp_message(ctx, tcp_msg): "client" if tcp_msg.sender == tcp_msg.client_conn else "server", tcp_msg.sender.address, "server" if tcp_msg.receiver == tcp_msg.server_conn else "client", - tcp_msg.receiver.address, clean_bin(tcp_msg.message))) + tcp_msg.receiver.address, strutils.clean_bin(tcp_msg.message))) -- cgit v1.2.3