%PDF- %PDF-
Direktori : /lib/python3/dist-packages/mitmproxy/contentviews/ |
Current File : //lib/python3/dist-packages/mitmproxy/contentviews/hex.py |
from mitmproxy.utils import strutils from . import base class ViewHex(base.View): name = "Hex" @staticmethod def _format(data): for offset, hexa, s in strutils.hexdump(data): yield [ ("offset", offset + " "), ("text", hexa + " "), ("text", s) ] def __call__(self, data, **metadata): return "Hex", self._format(data)