-
-
Save naveenadi/185f024db1fb2fae995461437ccebb90 to your computer and use it in GitHub Desktop.
Revisions
-
dannote revised this gist
Nov 21, 2024 . 1 changed file with 20 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,8 +1,26 @@ #!/usr/bin/swift // DISCLAIMER // This script modifies an unencrypted file associated with the trial version of Final Cut Pro. // Under the DMCA (17 U.S.C. § 1201), this modification does not qualify as circumvention of a technological // protection measure (TPM), as it does not involve bypassing encryption, authentication, or similar protections. // Distributing this code is therefore legal under the DMCA. // This script is intended for educational and research purposes, such as exploring trial-related file structures, // or for system troubleshooting in controlled environments with explicit permissions. It is not intended to be used // in a manner that violates Apple's software license agreement. // WARNING // Using this script to reset or extend the trial period of Final Cut Pro without Apple's authorization likely violates // the software license agreement. Such actions may lead to legal consequences. The responsibility for compliance with // all applicable laws and agreements lies solely with the user. The author of this script assumes no liability for misuse // or any resulting consequences. import Foundation let path = URL(fileURLWithPath: NSString(string: "~/Library/Containers/com.apple.FinalCutTrial/Data/Library/Application Support/.ffuserdata").expandingTildeInPath) let data = try! NSData(contentsOf: path) as Data let dictionary = try! NSKeyedUnarchiver.unarchiveTopLevelObjectWithData(data) as! NSDictionary let mutableDictionary = dictionary.mutableCopy() as! NSMutableDictionary @@ -15,4 +33,4 @@ for (key, value) in mutableDictionary { try! NSKeyedArchiver.archivedData(withRootObject: mutableDictionary, requiringSecureCoding: false).write(to: path) print("You'd better buy it") -
dannote revised this gist
Jan 8, 2019 . 1 changed file with 7 additions and 6 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -2,16 +2,17 @@ import Foundation let path = URL(fileURLWithPath: NSString(string: "~/Library/Application Support/.ffuserdata").expandingTildeInPath) let data = try! NSData(contentsOf: path) as Data let dictionary = try! NSKeyedUnarchiver.unarchiveTopLevelObjectWithData(data) as! NSDictionary let mutableDictionary = dictionary.mutableCopy() as! NSMutableDictionary for (key, value) in mutableDictionary { if value is NSDate { mutableDictionary[key] = Date() } } try! NSKeyedArchiver.archivedData(withRootObject: mutableDictionary, requiringSecureCoding: false).write(to: path) print("You'd better buy it") -
dannote created this gist
Dec 8, 2017 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,17 @@ #!/usr/bin/swift import Foundation let path = NSString(string: "~/Library/Application Support/.ffuserdata").expandingTildeInPath let data = NSKeyedUnarchiver.unarchiveObject(withFile: path) as! NSDictionary let mutableData = data.mutableCopy() as! NSMutableDictionary for (key, value) in mutableData { if value is NSDate { mutableData[key] = Date() } } NSKeyedArchiver.archiveRootObject(mutableData, toFile: path) print("You'd better buy it")