C# Class PHPAnalysis.Analysis.PHPDefinitions.FunctionsHandler

Datei anzeigen Open project: jtvn/Eir-CTLLTL

Public Methods

Method Description
FindCondSanitizerByName ( string name ) : CondSanitizer

Function to find an XSS sanitizer function from the name.

FindCustomFunctionByName ( string name ) : Function

Finds a custom function (a user defined function found in the parsed PHP code) by it's name

FindSQLSanitizerByName ( string name ) : SQLSanitizer

Function to find SQLSanitizer by it's name, including any known alias.

FindSQLSinkByName ( string name ) : SQLSink

Function to find SQLSink by name

FindSourceByName ( string name ) : Source

Function to find Source by name.

FindStoredProviderMethods ( string name ) : List
FindXSSSanitizerByName ( string name ) : XSSSanitizer

Function to find an XSS sanitizer function from the name.

FindXSSSinkByName ( string name ) : XSSSink

Function to find XSSSink by name

LoadJsonSpecifications ( ) : void
LookupFunction ( string name ) : List

Finds all functions by name and returns a list of them

Private Methods

Method Description
FunctionsHandler ( ) : System
LoadSpecification ( string id ) : JToken

Helper function to load ressources and return them as a JToken. Used to load files with the JSON specification.

Method Details

FindCondSanitizerByName() public method

Function to find an XSS sanitizer function from the name.
public FindCondSanitizerByName ( string name ) : CondSanitizer
name string The name of the expected function
return CondSanitizer

FindCustomFunctionByName() public method

Finds a custom function (a user defined function found in the parsed PHP code) by it's name
public FindCustomFunctionByName ( string name ) : Function
name string The name of the function to find.
return Function

FindSQLSanitizerByName() public method

Function to find SQLSanitizer by it's name, including any known alias.
public FindSQLSanitizerByName ( string name ) : SQLSanitizer
name string The name of the SQLsanitizer to find
return SQLSanitizer

FindSQLSinkByName() public method

Function to find SQLSink by name
public FindSQLSinkByName ( string name ) : SQLSink
name string The name of the SQL sink to find
return SQLSink

FindSourceByName() public method

Function to find Source by name.
public FindSourceByName ( string name ) : Source
name string The name of the source to find
return Source

FindStoredProviderMethods() public method

public FindStoredProviderMethods ( string name ) : List
name string
return List

FindXSSSanitizerByName() public method

Function to find an XSS sanitizer function from the name.
public FindXSSSanitizerByName ( string name ) : XSSSanitizer
name string The name of the expected function
return XSSSanitizer

FindXSSSinkByName() public method

Function to find XSSSink by name
public FindXSSSinkByName ( string name ) : XSSSink
name string The name of the XSS sink to find
return XSSSink

LoadJsonSpecifications() public method

public LoadJsonSpecifications ( ) : void
return void

LookupFunction() public method

Finds all functions by name and returns a list of them
public LookupFunction ( string name ) : List
name string The name of the function to find
return List