moonStyle
moonStyle

Reputation: 11

how to packetize a file and send it using scapy in python?

How to packetize a file (any files like audio, text, image, video and...) and send it on famous protocols like RTP using scapy in python?

Upvotes: 1

Views: 623

Answers (1)

mail2subhajit
mail2subhajit

Reputation: 1150

Activity need to be split into 2 parts

  1. Reading the encoded data from different file format.

    audio - wav , amr, 3gp, mp4 etc.

    text - ascii, utf- 8, utf-16 etc.

    image - jpeg , gif , png etc.

    video - 3gp/mp4, avi, mkv etc.

    you can use python ffmpeg to read the data from these formats or use other library with similar functionality.

  2. Pass the encoded data as the payload to the scapy and then add the RTP header.

    read this blog

Upvotes: 1

Related Questions