6 Mar 2008 21:32
Re: SNMPvarbind repr() problems
Philippe Biondi <phil <at> secdev.org>
2008-03-06 20:32:15 GMT
2008-03-06 20:32:15 GMT
On Thu, 6 Mar 2008, Dirk Loss wrote:
>>>> p=SNMP(PDU=SNMPget(varbindlist=[SNMPvarbind(oid=ASN1_OID("1.3"))]))
>>>> q=SNMP(PDU=SNMPget(varbindlist=SNMPvarbind(oid=ASN1_OID("1.3"))))
>
[...]
>
> Apparently, the varbindlist value of q isn't converted to its human readable
> representation. Because if I use color_theme=BasicTheme() on Windows, the
> {funnycharacters} are "0\x05\x06\x01+\x05\x00" -- and that's just the end of
> the packet as binary data.
>
> Must the argument of varbindlist explicitly be given as a Python list or is
> this a bug?
That's the way I implemented it. It's a list, give it a list :)
--
--
Philippe Biondi <phil <at> secdev.org> SecDev.org
Computer Security/R&D http://www.secdev.org
PGP KeyID:3D9A43E2 FingerPrint:C40A772533730E39330DC0985EE8FF5F3D9A43E2
---------------------------------------------------------------------
To unsubscribe, send a mail to scapy.ml-unsubscribe <at> secdev.org
RSS Feed