forked from p15670423/monkey
Agent: Fix mypy issues in smb_tools.py
This commit is contained in:
parent
bc0adb2193
commit
104e0abda9
|
@ -3,7 +3,7 @@ import ntpath
|
||||||
import pprint
|
import pprint
|
||||||
from io import BytesIO
|
from io import BytesIO
|
||||||
from pathlib import PurePath
|
from pathlib import PurePath
|
||||||
from typing import Optional
|
from typing import Any, Dict, Optional, Tuple
|
||||||
|
|
||||||
from impacket.dcerpc.v5 import srvs, transport
|
from impacket.dcerpc.v5 import srvs, transport
|
||||||
from impacket.smb3structs import SMB2_DIALECT_002, SMB2_DIALECT_21
|
from impacket.smb3structs import SMB2_DIALECT_002, SMB2_DIALECT_21
|
||||||
|
@ -79,8 +79,8 @@ class SmbTools(object):
|
||||||
|
|
||||||
resp = resp["InfoStruct"]["ShareInfo"]["Level2"]["Buffer"]
|
resp = resp["InfoStruct"]["ShareInfo"]["Level2"]["Buffer"]
|
||||||
|
|
||||||
high_priority_shares = ()
|
high_priority_shares: Tuple[Tuple[str, Dict[str, Any]], ...] = ()
|
||||||
low_priority_shares = ()
|
low_priority_shares: Tuple[Tuple[str, Dict[str, Any]], ...] = ()
|
||||||
file_name = dst_path.name
|
file_name = dst_path.name
|
||||||
|
|
||||||
for i in range(len(resp)):
|
for i in range(len(resp)):
|
||||||
|
|
Loading…
Reference in New Issue