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

Method getfieldval

scapy/layers/ntlm.py:286–300  ·  view source on GitHub ↗
(self, attr)

Source from the content-addressed store, hash-verified

284 self.setfieldval(k, value)
285
286 def getfieldval(self, attr):
287 # Ease compatibility with _NTLMPayloadField
288 try:
289 return super(_NTLMPayloadPacket, self).getfieldval(attr)
290 except AttributeError:
291 try:
292 return next(
293 x[1]
294 for x in super(_NTLMPayloadPacket, self).getfieldval(
295 self._NTLM_PAYLOAD_FIELD_NAME
296 )
297 if x[0] == attr
298 )
299 except StopIteration:
300 raise AttributeError(attr)
301
302 def getfield_and_val(self, attr):
303 # Ease compatibility with _NTLMPayloadField

Callers 15

field_genFunction · 0.45
dns_compressFunction · 0.45
post_buildMethod · 0.45
add_payloadMethod · 0.45
guess_payload_classMethod · 0.45
_NEGOEX_post_buildFunction · 0.45
post_buildMethod · 0.45
addfieldMethod · 0.45
getfieldMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected