katana.units.stego.dtmf_decode — Decode DTMF Tones

Unit to read values from DTMF tones.

This unit inherits from the katana.unit.FileUnit to ensure that the target is in fact an audio file.

..note:

Currently, this unit only supports WAVE files (sorry, no MP3s).
class katana.units.stego.dtmf_decode.DTMFdetector

Bases: object

This is used for the DTMF processing operations. Admittedly, it was found online and adapted to work within Katana.

calc_coeffs()
check(filename)
clean_up_processing()
getDTMFfromWAV(filename)
goertzel(sample)
post_testing()
reset()
class katana.units.stego.dtmf_decode.Unit(*args, **kwargs)

Bases: katana.unit.FileUnit

GROUPS = ['audio', 'stego']

These are “tags” for a unit. Considering it is a Stego unit, “stego” is included, as well as the tag “audio”.

PRIORITY = 30

Priority works with 0 being the highest priority, and 100 being the lowest priority. 50 is the default priorty. This unit has a high priority for matching files

evaluate(case)

Evaluate the target. Attempt to retrieve the DTMF tones present in the target sound file.

Parameters:case – A case returned by enumerate. For this unit, the enumerate function is not used.
Returns:None. This function should not return any data.