diff --git a/scapy/sendrecv.py b/scapy/sendrecv.py index eba6925fa4dc2f03473f4bb93119e870b210b0df..09c91881bb540f7bbb0cae643a320623ec24ecd5 100644 --- a/scapy/sendrecv.py +++ b/scapy/sendrecv.py @@ -204,6 +204,8 @@ def sndrcv(pks, pkt, timeout = 2, inter = 0, verbose=None, chainCC=0, retry=0, m def __gen_send(s, x, inter=0, loop=0, count=None, verbose=None, *args, **kargs): + if type(x) is str: + x = Raw(load=x) if not isinstance(x, Gen): x = SetGen(x) if verbose is None: