mirror of
https://github.com/Karmaz95/Snake_Apple.git
synced 2026-08-21 21:57:12 +02:00
This commit is contained in:
Binary file not shown.
@@ -2513,7 +2513,7 @@ class SnakeVII(SnakeVI):
|
|||||||
|
|
||||||
def addQuarantine(self):
|
def addQuarantine(self):
|
||||||
''' Add com.apple.quarantine extended attribute to the file. '''
|
''' Add com.apple.quarantine extended attribute to the file. '''
|
||||||
value = f'0082;{int(time.time())};CrimsonUroboros;'
|
value = f'0004;{int(time.time())};CrimsonUroboros;'
|
||||||
value_as_bytes = value.encode()
|
value_as_bytes = value.encode()
|
||||||
xattr.setxattr(self.file_path, 'com.apple.quarantine', value_as_bytes)
|
xattr.setxattr(self.file_path, 'com.apple.quarantine', value_as_bytes)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user