Jaime Blasco Blog


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



* Posted by Marc Nelson at Sat Jan 3 13:13:39 2009
There is trademark, and there is the spirit of the trademark.

This device was so useful and well-appreciated to people.
<a href ="http://www.usedcisco.org"> Cisco </a> is a huge company and their products carry a much larger impact than all of the apple products combined.

Name:


E-mail:


URL:


Comment:


Categories

/ (34)
    Attacks/ (2)
    Exploits/ (1)
    General/ (3)
    Lua/ (1)
    Malware/ (3)
    Nessus/ (6)
        cisco/ (1)
        plugins/ (3)
    Ossim/ (9)
    Scada Security/ (2)
    Security Visualization/ (6)
        Malware/ (2)
    Vulnerability Management/ (1)



Jaime Blasco
(feel free to get in touch)
  • Mail
  • Linkedin
  • Twitter
  • Linkedin
  • Forums

Friend's blogs:
  • /blog/dk
  • /blog/juanma
  • /blog/santiago
  • /blog/pablo/




RSS




Lecture...





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




Archives

2010-Aug
2010-Jul
2010-Mar
2010-Jan
2009-Dec
2009-Oct
2009-Sep
2009-Jul
2009-Jun
2009-Apr
2009-Mar
2009-Feb
2009-Jan
2008-Oct
2008-Aug




Tags




Made with PyBlosxom