Stefan Schmidt %!s(int64=6) %!d(string=hai) anos
pai
achega
6d262a918c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      code/Attack/SMBScanAttack.py

+ 1 - 1
code/Attack/SMBScanAttack.py

@@ -334,7 +334,7 @@ class SMBScanAttack(BaseAttack.BaseAttack):
                     self.packets.append(confirm_smb_req)
 
                     # smb response package
-                    first_timestamp = pytz.timezone('UTC').localize(dt.datetime.strptime(first_timestamp_smb, "%Y-%m-%d %H:%M:%S")).timestamp()
+                    first_timestamp = time.mktime(time.strptime(first_timestamp_smb, "%Y-%m-%d %H:%M:%S"))
                     server_guid, security_blob, capabilities, data_size, server_start_time =\
                         SMBLib.get_smb_platform_data(self.host_os, first_timestamp)