Giter Site home page Giter Site logo

pcap2audio's Introduction

pcap2audio

what is it

  • a CLI tool to extract conversation audio from VoIP calls by means of RTP packets residing in pcap files
  • the retrieved audio is suitable for playing it with your favorite audio editor (e.g. audacity)
  • the program tries to extract all available audio data based on encountered RTP packets
  • it will look for associated streams (forward and reversed direction) and mixes them into one single file
  • generated file names are composed of the starting date of the call for easier identification
  • works for PCMA only at the time of this writing

software installation

  • some prerequisites

      sudo apt install gawk tshark sox xxd wget
    
  • download the tool

      wget https://raw.githubusercontent.com/sp4rkie/pcap2audio/master/pcap2audio.awklib
      wget https://raw.githubusercontent.com/sp4rkie/pcap2audio/master/pcap2audio
      chmod 755 pcap2audio
    

how to use it

  • record some VoIP call with your favorite packet sniffing tool. Example using tcpdump for this:

      tcpdump -i eth4 port sip or portrange 14362-14462 -B 4096 -n -c 200000 -w trace.eth4
    
  • to execute the program simply type (for the example above):

      pcap2audio -f trace.eth4
    
  • this extracts audio in forward and reversed direction (if existent) and mixes both

  • all results currently end up in /tmp directory.

  • command line options

      Usage: pcap2audio
        -h                    - print this help and exit
        -f (.+)               - pcap input file
        -v                    - increase logging verbosity
    
  • diagnosis

The program logs all activity to file pcap2audio.log. This will be the first place to look at if something went wrong.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.