Braa

Description

Braa is a mass snmp scanner. The intended usage of such a tool is of course making SNMP queries – but unlike snmpget or snmpwalk from net-snmp, it is able to query dozens or hundreds of hosts simultaneously, and in a single process. Thus, it consumes very few system resources and does the scanning VERY fast.

Braa implements its OWN snmp stack, so it does NOT need any SNMP libraries like net-snmp. The implementation is very dirty, supports only several data types, and in any case cannot be stated ‘standard-conforming’! It was designed to be fast, and it is fast. For this reason (well, and also because of my laziness ;), there is no ASN.1 parser in braa – you HAVE to know the numerical values of OID’s (for instance .1.3.6.1.2.1.1.5.0 instead of system.sysName.0).

Usage

Syntax

braa [options] [query1] [query2] …

Options


  -h        Show this help.
  -2        Claim to be a SNMP2C agent.
  -v        Show short summary after doing all queries.
  -x        Hexdump octet-strings
  -t <s>    Wait <s> seconds for responses.
  -d <s>    Wait <s> microseconds after sending each packet.
  -p <s>    Wait <s> miliseconds between subsequent passes.
  -f <file> Load queries from file <file> (one by line).
  -a <time> Quit after <time> seconds, independent on what happens.
  -r <rc>   Retry count (default: 3).

Query format:
  GET:   [[email protected]]iprange[:port]:oid[/id]
  WALK:  [[email protected]]iprange[:port]:oid.*[/id]
  SET:   [[email protected]]iprange[:port]:oid=value[/id]

Examples:
         [email protected]:161:.1.3.6.*
         10.253.101.1-10.253.101.255:.1.3.6.1.2.1.1.4.0=sme
         10.253.101.1:.1.3.6.1.2.1.1.1.0/description

It is also possible to specify multiple queries at once:
         10.253.101.1-10.253.101.255:.1.3.6.1.2.1.1.4.0=sme,.1.3.6.*
         (Will set .1.3.6.1.2.1.1.4.0 to 'me' and do a walk starting from .1.3.6)


Values for SET queries have to be prepended with a character specifying the value type:
  i      is INTEGER
  a      is IPADDRESS
  s      is OCTET STRING
  o      is OBJECT IDENTIFIER
If the type specifier is missing, the value type is auto-detected

Example

cyborg@cyborg:~$ braa [email protected]:.1.3.6.*
192.168.1.14:122ms:.1.3.6.1.2.1.1.1.0:Linux rogue.feafer 2.4.20-8 #1 Thu Sep 09 09:54:28 IST 2015 i686
192.168.1.14:143ms:.1.3.6.1.2.1.1.2.0:.1.3.6.1.8.1.5062.3.2.10
192.168.1.14:122ms:.1.3.6.1.2.1.1.3.0:4041598745
192.168.1.14:122ms:.1.3.6.1.2.1.1.4.0:Root <cyborg@localhost> (configure /etc/snmp/snmp.local.conf)
192.168.1.14:143ms:.1.3.6.1.2.1.1.5.0:rogue.feaver
0 Comments

Leave a reply

CONTACT US

We're are building as a community and a team. Be a part of it.

Sending

©2017 Ztrela Knowledge Solutions Pvt. Ltd

Log in with your credentials

Forgot your details?