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

Method should_serve

scapy/layers/smbserver.py:780–787  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

778
779 @ATMT.condition(AUTHENTICATED, prio=1)
780 def should_serve(self):
781 # Serve files
782 self.current_trees = {}
783 self.current_handles = {}
784 self.enumerate_index = {} # used for query directory enumeration
785 self.tree_id = 0
786 self.base_time_t = self.current_smb_time()
787 raise self.SERVING()
788
789 def _ioctl_error(self, Status="STATUS_NOT_SUPPORTED"):
790 pkt = self.smb_header.copy() / SMB2_Error_Response(ErrorData=b"\xff")

Callers

nothing calls this directly

Calls 2

current_smb_timeMethod · 0.95
SERVINGMethod · 0.95

Tested by

no test coverage detected