Detect Applications in Flow

The following example determines whether an application is in an application path.

function Flow_HasApplication (dpiMsg, ruleEngine)

require 'LOG'

-- Application Path example: /tcp/http/skype

local application = 'http'

if (HasApplication(dpiMsg, application)) then

local content = GetContent(dpiMsg, application)

if (content ~= '') then

EZINFO('Http Content Found: ' .. content)

end

end

end