What's new

.NET Photoshop CC 2018 Trial Reset

P

pLTPF

I am NOT LeafyIsHere
Messages
2,282
Reaction score
622
Download: https://www.sendspace.com/file/xtwe5a
Virus Scan: https://www.virustotal.com/gui/file...WQ5NTNiMWE5M2E0OTI6MTU3NDA5ODM2MA==/detection

Note: You can manually do this by finding where Photoshop is installed (usually C->Program Files->Adobe) and going into the AMT folder and editing the serial number in application.xml
C:\Program Files\Adobe\Adobe Photoshop CC 2018\AMT\application.xml





Here's the sauce for those of you interested in leeching from it.
Code:
public static string generateSerial(int length)
{
    // s/o stackoverflow
    const string valid = "1234567890";
    StringBuilder res = new StringBuilder();
    Random rnd = new Random();
    while (0 < length--)
    {
        res.Append(valid[rnd.Next(valid.Length)]);
    }
    return res.ToString();
}

Console.WriteLine("Press [ENETER] to reset Photoshop CC 2018 trial, or press [ESC] to exit!");
ConsoleKeyInfo key = Console.ReadKey();
if (key.Key == ConsoleKey.Enter)
{
    try
    {
        Console.WriteLine("Attemping to reset Photoshop Trial...");
        string[] lines = File.ReadAllLines(@"C:\Program Files\Adobe\Adobe Photoshop CC 2018\AMT\application.xml");
        Console.WriteLine("Located Photoshop directory...");
        for (int i = 0; i < lines.Length; i++)
        {
            if (lines[i].Contains("TrialSerialNumber"))
            {
                int index = lines[i].IndexOf("TrialSerialNumber");
                char[] serial = new char[24];
                lines[i].CopyTo(index + 19, serial, 0, 24);
                string sSerial = new string(serial);
                lines[i] = lines[i].Replace(sSerial, "91199707488797924011" + generateSerial(4));
                File.WriteAllLines(@"C:\Program Files\Adobe\Adobe Photoshop CC 2018\AMT\application.xml", lines);
                Console.WriteLine("Done! Press any key to close.");
                Console.ReadKey();
            }
        }
    }
    catch (Exception g)
    {
        if (g.ToString().Contains("is denied."))
        {
            Console.WriteLine("Please re-run the program as administrator.");
            Console.ReadKey();
        }
    }
}
else if (key.Key == ConsoleKey.Escape)
{
    Console.WriteLine("Bye");
    Thread.Sleep(100);
}
 
Last edited:
P

pLTPF

I am NOT LeafyIsHere
Messages
2,282
Reaction score
622
Updated the thread with the source.
 
Top Bottom