Package routerdefense :: Module common
[hide private]
[frames] | no frames]

Module common

source code


Version: $Id$

Classes [hide private]
  Item
Item class definition.
  Xml2Data
Convert XML to DATA.
Functions [hide private]
 
read_cfg(File)
Read the show run file.
source code
 
check_cfg(lines)
Validate that the configuration file is from a Cisco IOS.
source code
 
search_xml(name) source code
 
stripping(line)
Left and right strip a specific line.
source code
 
search_string(iosConfig, search_string)
Search a string into a configuration block.
source code
 
search_multi_string(iosConfig, search_string)
Search multiple occurence of a string into a configuration block.
source code
 
search_re_string(iosConfig, search_string)
Search a regex matching string into a configuration block.
source code
 
search_re_multi_string(iosConfig, search_string)
Search multiple occurence of a regex string into a configuration block.
source code
 
search_string_count(iosConfig, search_string)
Count occurence of a string.
source code
 
search_re_string_count(iosConfig, search_string)
Count occurence of a regex string.
source code
 
parse_console(lines)
Console port section.
source code
 
parse_aux(lines)
Aux port section.
source code
 
parse_vty(lines)
VTY section.
source code
 
parse_extd_acl(aclname)
Parse extended ACL.
source code
 
parse_motd(lines)
Parse the MOTD banner.
source code
 
parse_exec_banner(lines)
Parse the EXEC banner.
source code
 
parse_login_banner(lines)
Parse the LOGIN banner.
source code
 
stdout_content(definition, threatInfo, howtofix, impact, cvss)
Format the reporting content for stdout.
source code
 
stdout_banner(categoryname)
Print the category banner section.
source code
 
stdout_category_banner(categoryname)
Print the category sections definitions.
source code
 
cvss_score(metrics)
Calculate the CVSS score.
source code
 
set_impacter(impact)
Calculate the CVSS impacter value.
source code
 
snmp_community_complexity(name)
Define if the SNMP community is complex enough.
source code
 
dotted_netmask(netmask)
Convert dotted notation of a /xx netmask.
source code
 
netmask_wildcard(netmask)
Convert a dotted netmask to a dotted wildcard mask.
source code
 
network_address(address, mask)
Output the network address from an address+mask.
source code
 
network_reverse_address(address, inversedmask)
Output the network address from an address+wildcard mask.
source code
 
check_std_acl(lines, aclnumber)
Check if the standard ACL is found within the block.
source code
 
check_extd_acl(lines, aclumber)
Check if the extended ACL is found within the block.
source code
 
populate_ifaces(lines, interfaces)
Populate a table with each line of an interface configuration.
source code
 
populate_acl_v4(lines, acls)
Populate a table with each line of a standard IPv4 ACL.
source code
 
populate_acl_v6(lines, acls)
Populate a table with each line of a standard IPv6 ACL.
source code