Adding payload in packet

前端 未结 1 773
孤街浪徒
孤街浪徒 2021-02-20 03:26

Can I insert image or document (in MBs) as a data in packet using scapy?

This is what I did to send data.

dat         


        
1条回答
  •  春和景丽
    2021-02-20 04:05

    Yes, you can send raw data like this. In this example, data will be ASCII encoded.

    >>> data = 'University of Texas at San Antonio'
    >>> a = IP(dst='129.132.2.21') / TCP() / Raw(load=data)
    >>> send(a)
    

    0 讨论(0)
提交回复
热议问题