MCPcopy Create free account
hub / github.com/secdev/scapy / _parse_attribute

Method _parse_attribute

scapy/modules/ldaphero.py:1900–1910  ·  view source on GitHub ↗

Parse a formatted attribute

(self, name, value)

Source from the content-addressed store, hash-verified

1898 return value
1899
1900 def _parse_attribute(self, name, value):
1901 """
1902 Parse a formatted attribute
1903 """
1904 parsed = []
1905 # Split across ;
1906 for val in value.split(";"):
1907 if name == "objectSid":
1908 val = WINNT_SID.fromstr(val)
1909 parsed.append(val)
1910 return parsed
1911
1912 def tprint(self, x, tags=[], flush=False):
1913 """

Callers 1

enterentrylistMethod · 0.95

Calls 2

fromstrMethod · 0.80
appendMethod · 0.45

Tested by

no test coverage detected