MCPcopy Index your code
hub / github.com/secdev/scapy / FileBasicInformation

Class FileBasicInformation

scapy/layers/smb2.py:458–493  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

456
457
458class FileBasicInformation(Packet):
459 fields_desc = [
460 UTCTimeField(
461 "CreationTime",
462 None,
463 fmt="<Q",
464 epoch=[1601, 1, 1, 0, 0, 0],
465 custom_scaling=1e7,
466 ),
467 UTCTimeField(
468 "LastAccessTime",
469 None,
470 fmt="<Q",
471 epoch=[1601, 1, 1, 0, 0, 0],
472 custom_scaling=1e7,
473 ),
474 UTCTimeField(
475 "LastWriteTime",
476 None,
477 fmt="<Q",
478 epoch=[1601, 1, 1, 0, 0, 0],
479 custom_scaling=1e7,
480 ),
481 UTCTimeField(
482 "ChangeTime",
483 None,
484 fmt="<Q",
485 epoch=[1601, 1, 1, 0, 0, 0],
486 custom_scaling=1e7,
487 ),
488 FlagsField("FileAttributes", 0x00000080, -32, FileAttributes),
489 IntField("Reserved", 0),
490 ]
491
492 def default_payload_class(self, s):
493 return conf.padding_layer
494
495
496# [MS-FSCC] 2.4.12 FileEaInformation

Callers 2

FileAllInformationClass · 0.85

Calls 3

UTCTimeFieldClass · 0.90
FlagsFieldClass · 0.90
IntFieldClass · 0.90

Tested by

no test coverage detected