OXIESEC PANEL
- Current Dir:
/
/
usr
/
lib
/
python3
/
dist-packages
/
pyasn1_modules
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
03/17/2025 09:32:20 AM
rwxr-xr-x
📄
__init__.py
65 bytes
11/21/2017 09:42:52 PM
rw-r--r--
📁
__pycache__
-
10/21/2019 03:49:49 PM
rwxr-xr-x
📄
pem.py
2 KB
08/05/2017 02:18:37 PM
rw-r--r--
📄
rfc1155.py
2.61 KB
11/23/2017 10:59:48 AM
rw-r--r--
📄
rfc1157.py
3.46 KB
11/23/2017 10:59:48 AM
rw-r--r--
📄
rfc1901.py
640 bytes
11/23/2017 10:59:48 AM
rw-r--r--
📄
rfc1902.py
3.61 KB
11/23/2017 10:59:48 AM
rw-r--r--
📄
rfc1905.py
4.72 KB
11/23/2017 10:59:48 AM
rw-r--r--
📄
rfc2251.py
26.29 KB
11/23/2017 10:59:48 AM
rw-r--r--
📄
rfc2314.py
1.28 KB
01/26/2017 06:49:02 PM
rw-r--r--
📄
rfc2315.py
9.42 KB
11/21/2017 09:42:52 PM
rw-r--r--
📄
rfc2437.py
2.56 KB
11/23/2017 10:59:48 AM
rw-r--r--
📄
rfc2459.py
48.84 KB
11/23/2017 10:59:48 AM
rw-r--r--
📄
rfc2511.py
10.12 KB
11/23/2017 10:59:48 AM
rw-r--r--
📄
rfc2560.py
8.2 KB
11/23/2017 10:59:48 AM
rw-r--r--
📄
rfc3279.py
5.83 KB
11/23/2017 10:59:48 AM
rw-r--r--
📄
rfc3280.py
45.57 KB
11/23/2017 10:59:48 AM
rw-r--r--
📄
rfc3281.py
9.63 KB
11/23/2017 10:59:48 AM
rw-r--r--
📄
rfc3412.py
1.9 KB
11/23/2017 10:59:48 AM
rw-r--r--
📄
rfc3414.py
1.13 KB
11/23/2017 10:59:48 AM
rw-r--r--
📄
rfc3447.py
1.57 KB
11/23/2017 10:59:48 AM
rw-r--r--
📄
rfc3852.py
19.64 KB
11/23/2017 10:59:48 AM
rw-r--r--
📄
rfc4210.py
27.71 KB
11/23/2017 10:59:48 AM
rw-r--r--
📄
rfc4211.py
11.83 KB
11/23/2017 10:59:48 AM
rw-r--r--
📄
rfc5208.py
1.39 KB
11/23/2017 10:59:48 AM
rw-r--r--
📄
rfc5280.py
48.34 KB
11/23/2017 10:59:48 AM
rw-r--r--
📄
rfc5652.py
19.64 KB
08/05/2017 02:18:37 PM
rw-r--r--
📄
rfc6402.py
14.67 KB
11/23/2017 10:59:48 AM
rw-r--r--
Editing: rfc1155.py
Close
# # This file is part of pyasn1-modules software. # # Copyright (c) 2005-2017, Ilya Etingof <etingof@gmail.com> # License: http://pyasn1.sf.net/license.html # # SNMPv1 message syntax # # ASN.1 source from: # http://www.ietf.org/rfc/rfc1155.txt # # Sample captures from: # http://wiki.wireshark.org/SampleCaptures/ # from pyasn1.type import constraint from pyasn1.type import namedtype from pyasn1.type import tag from pyasn1.type import univ class ObjectName(univ.ObjectIdentifier): pass class SimpleSyntax(univ.Choice): componentType = namedtype.NamedTypes( namedtype.NamedType('number', univ.Integer()), namedtype.NamedType('string', univ.OctetString()), namedtype.NamedType('object', univ.ObjectIdentifier()), namedtype.NamedType('empty', univ.Null()) ) class IpAddress(univ.OctetString): tagSet = univ.OctetString.tagSet.tagImplicitly( tag.Tag(tag.tagClassApplication, tag.tagFormatSimple, 0) ) subtypeSpec = univ.Integer.subtypeSpec + constraint.ValueSizeConstraint( 4, 4 ) class NetworkAddress(univ.Choice): componentType = namedtype.NamedTypes( namedtype.NamedType('internet', IpAddress()) ) class Counter(univ.Integer): tagSet = univ.Integer.tagSet.tagImplicitly( tag.Tag(tag.tagClassApplication, tag.tagFormatSimple, 1) ) subtypeSpec = univ.Integer.subtypeSpec + constraint.ValueRangeConstraint( 0, 4294967295 ) class Gauge(univ.Integer): tagSet = univ.Integer.tagSet.tagImplicitly( tag.Tag(tag.tagClassApplication, tag.tagFormatSimple, 2) ) subtypeSpec = univ.Integer.subtypeSpec + constraint.ValueRangeConstraint( 0, 4294967295 ) class TimeTicks(univ.Integer): tagSet = univ.Integer.tagSet.tagImplicitly( tag.Tag(tag.tagClassApplication, tag.tagFormatSimple, 3) ) subtypeSpec = univ.Integer.subtypeSpec + constraint.ValueRangeConstraint( 0, 4294967295 ) class Opaque(univ.OctetString): tagSet = univ.OctetString.tagSet.tagImplicitly( tag.Tag(tag.tagClassApplication, tag.tagFormatSimple, 4) ) class ApplicationSyntax(univ.Choice): componentType = namedtype.NamedTypes( namedtype.NamedType('address', NetworkAddress()), namedtype.NamedType('counter', Counter()), namedtype.NamedType('gauge', Gauge()), namedtype.NamedType('ticks', TimeTicks()), namedtype.NamedType('arbitrary', Opaque()) ) class ObjectSyntax(univ.Choice): componentType = namedtype.NamedTypes( namedtype.NamedType('simple', SimpleSyntax()), namedtype.NamedType('application-wide', ApplicationSyntax()) )