Parsing Cisco Mib
Wed, 06 Aug 2008
I wrote a little python script to parse Cisco mib. I need this information to implement part of the Nessus Feed Cisco stuff, for example to retrieve the cisco model from snmp.
#
# Parse Cisco Products MIB
#
# You can download mib file from http://www.oidview.com/mibs/9/CISCO-PRODUCTS-MIB.html
#

import re
import fileinput

for line in fileinput.input("cisco_mib_parse.txt"):
        #catalyst296024LT                OBJECT IDENTIFIER ::= { ciscoProducts 951 } -- 24 10/100, 8 POE and 2T ports switch
        p = re.compile("(\S+).*ciscoProducts ([0-9]+)")
        m = p.match(line)
        model = m.group(1)
        number = m.group(2)

posted at: 11:48 | path: /Nessus/cisco | permanent link to this entry | 1 comments | nessus, cisco



Categories

/ (14)
    Attacks/ (1)
    Nessus/ (6)
        cisco/ (1)
        plugins/ (3)
    Security Visualization/ (6)
        Malware/ (2)
    Vulnerability Management/ (1)




RSS




August 2008 >
MoTuWeThFrSaSu
     1 2 3
4 5 6 7 8 910
11121314151617
18192021222324
25262728293031




Archives

2009-Jan
2008-Oct
2008-Aug




Tags




Made with PyBlosxom