Skip to content

Commit e36718b

Browse files
Austin WalkerAustin Walker
authored andcommitted
Updated
1 parent ee32d03 commit e36718b

File tree

5 files changed

+13
-3
lines changed

5 files changed

+13
-3
lines changed

.DS_Store

6 KB
Binary file not shown.

micro

12.3 MB
Binary file not shown.

payloads/zap-snapshots.sh

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,14 @@ then
3333
fi
3434
fi
3535

36-
for XID in `diskutil apfs listSnapshots "$VOLUME"|fgrep XID|awk '{print $3}'`
36+
#Snapshot deletion code by StarPlayrX 2020
37+
snapshots=$(diskutil apfs listsnapshots "$VOLUME" | grep +-- | sed 's/^.\{4\}//')
38+
39+
for uuid in $snapshots
3740
do
38-
echo $XID
39-
diskutil apfs deleteSnapshot "$VOLUME" -xid $XID
41+
printf '📸 Attempting to delete snapshot => '
42+
echo $uuid
43+
echo ''
44+
45+
diskutil apfs deletesnapshot "$VOLUME" -uuid $uuid
4046
done

pbzx

14.2 KB
Binary file not shown.

snapshot.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
sudo /System/Library/Filesystems/apfs.fs/Contents/Resources/apfs_systemsnapshot -r com.apple.bless.837AED20-8AB1-405E-A344-77414C9CFC0D -v /Volumes/Sh1t
2+
sudo /System/Library/Filesystems/apfs.fs/Contents/Resources/apfs_systemsnapshot -s R.W -v /Volumes/Sh1t
3+
sudo mount -uw /
4+
sudo /System/Library/Filesystems/apfs.fs/Contents/Resources/apfs_systemsnapshot -v /Volumes/Sh1t -r ""

0 commit comments

Comments
 (0)