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

Method close_request

scapy/layers/smbclient.py:878–887  ·  view source on GitHub ↗

Close the FileId

(self, FileId)

Source from the content-addressed store, hash-verified

876 return resp[SMB2_Create_Response].FileId
877
878 def close_request(self, FileId):
879 """
880 Close the FileId
881 """
882 pkt = SMB2_Close_Request(FileId=FileId)
883 resp = self.ins.sr1(pkt, verbose=0, timeout=self.timeout)
884 if not resp:
885 raise ValueError("CloseRequest timed out !")
886 if SMB2_Close_Response not in resp:
887 raise ValueError("Failed CloseRequest ! %s" % resp.NTStatus)
888
889 def read_request(self, FileId, Length, Offset=0):
890 """

Callers 7

close_pipeMethod · 0.80
lsMethod · 0.80
_get_fileMethod · 0.80
_send_fileMethod · 0.80
rmMethod · 0.80
watchMethod · 0.80
getsdMethod · 0.80

Calls 2

SMB2_Close_RequestClass · 0.90
sr1Method · 0.45

Tested by

no test coverage detected