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

Class FileNetworkOpenInformation

scapy/layers/smb2.py:511–548  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

509
510
511class FileNetworkOpenInformation(Packet):
512 fields_desc = [
513 UTCTimeField(
514 "CreationTime",
515 None,
516 fmt="<Q",
517 epoch=[1601, 1, 1, 0, 0, 0],
518 custom_scaling=1e7,
519 ),
520 UTCTimeField(
521 "LastAccessTime",
522 None,
523 fmt="<Q",
524 epoch=[1601, 1, 1, 0, 0, 0],
525 custom_scaling=1e7,
526 ),
527 UTCTimeField(
528 "LastWriteTime",
529 None,
530 fmt="<Q",
531 epoch=[1601, 1, 1, 0, 0, 0],
532 custom_scaling=1e7,
533 ),
534 UTCTimeField(
535 "ChangeTime",
536 None,
537 fmt="<Q",
538 epoch=[1601, 1, 1, 0, 0, 0],
539 custom_scaling=1e7,
540 ),
541 LELongField("AllocationSize", 4096),
542 LELongField("EndOfFile", 0),
543 FlagsField("FileAttributes", 0x00000080, -32, FileAttributes),
544 IntField("Reserved2", 0),
545 ]
546
547 def default_payload_class(self, s):
548 return conf.padding_layer
549
550
551# [MS-FSCC] 2.4.8 FileBothDirectoryInformation

Callers 2

current_smb_timeMethod · 0.90

Calls 4

UTCTimeFieldClass · 0.90
LELongFieldClass · 0.90
FlagsFieldClass · 0.90
IntFieldClass · 0.90

Tested by

no test coverage detected