Skip to content

Python script that pulls out the audio in the RTP layer of a packet capture. This particular script makes use of the PyShark library. It also assumes the pcap is being read in as a file (not live capture.)

Notifications You must be signed in to change notification settings

wbwarnerb/AudioScraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

#Project Description Making use of the PyShark Python library, I put together a simple script that performs some useful RTP stripping. It takes the RTP layer out and turns it into a RAW audio file. This can be turned into a wav using a sox command like: sox -t raw -r 8000 -v 4 -c 1 -U my_audio.raw my_audio.wav

Notes

I did have to modify PyShark. In Python3, the comments in remote_capture.py file had to be updated. The \Device\NPF was being interpreted by Python, even though it was commented out... so it would error on \N. By removing the comment or adding \Device\NPF this was resolved.

##Future Improvements

  • I would like to find a python library to do the audio conversion to remove the dependency on sox.
  • Make this OO
  • Other methds to pull out other parts of the pcap (user defined)
  • UI/GUI

About

Python script that pulls out the audio in the RTP layer of a packet capture. This particular script makes use of the PyShark library. It also assumes the pcap is being read in as a file (not live capture.)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages