Skip to content

Commit

Permalink
Updated
Browse files Browse the repository at this point in the history
  • Loading branch information
Austin Walker authored and Austin Walker committed Nov 17, 2020
1 parent ee32d03 commit e36718b
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 3 deletions.
Binary file added .DS_Store
Binary file not shown.
Binary file added micro
Binary file not shown.
12 changes: 9 additions & 3 deletions payloads/zap-snapshots.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,14 @@ then
fi
fi

for XID in `diskutil apfs listSnapshots "$VOLUME"|fgrep XID|awk '{print $3}'`
#Snapshot deletion code by StarPlayrX 2020
snapshots=$(diskutil apfs listsnapshots "$VOLUME" | grep +-- | sed 's/^.\{4\}//')

for uuid in $snapshots
do
echo $XID
diskutil apfs deleteSnapshot "$VOLUME" -xid $XID
printf '📸 Attempting to delete snapshot => '
echo $uuid
echo ''

diskutil apfs deletesnapshot "$VOLUME" -uuid $uuid
done
Binary file added pbzx
Binary file not shown.
4 changes: 4 additions & 0 deletions snapshot.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
sudo /System/Library/Filesystems/apfs.fs/Contents/Resources/apfs_systemsnapshot -r com.apple.bless.837AED20-8AB1-405E-A344-77414C9CFC0D -v /Volumes/Sh1t
sudo /System/Library/Filesystems/apfs.fs/Contents/Resources/apfs_systemsnapshot -s R.W -v /Volumes/Sh1t
sudo mount -uw /
sudo /System/Library/Filesystems/apfs.fs/Contents/Resources/apfs_systemsnapshot -v /Volumes/Sh1t -r ""

0 comments on commit e36718b

Please # to comment.