Nmap Development mailing list archives

Re: NSE SNMPv1 Library


From: Michal Szczesny <athanor () wp pl>
Date: Tue, 24 Nov 2009 01:19:33 -0800

Hi,
I tried to query different OIDs with the sysdecr.nse and I've noticed 
that it is not returning any date when the OID in question points to 
Object Identifier type value, like for example: 1.3.6.1.2.1.1.2.0 
(sysObjectID).

I have no problems with quering OIDs where Type is String or Integer.

I had a look into snmp.lua library but it's well over my head to analyze 
code there.

Could someone test querying OID type values with by

snmp.encode(snmp.buildPacket(snmp.buildGetRequest({}, 
"1.3.6.1.2.1.1.2.0"))) ?

Maybe I should decode the reponse in different way, now I just using:

status, response = socket:receive_bytes(1)

local sysObjectId = snmp.fetchFirst(response)

?

Thank you,
Michal

----------------------------------------------------
"MARINA" Najnowsza powieść CARLOSA RUIZA ZAFONA.
Premiera książki 16 listopada 2009 roku.
Sprawdź http://klik.wp.pl/?adr=http%3A%2F%2Fcorto.www.wp.pl%2Fzafon.html&sid=914
_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://seclists.org/nmap-dev/

Current thread: