📜  pycharm 2021.1 linux破解——Shell-Bash(1)

📅  最后修改于: 2023-12-03 15:18:44.703000             🧑  作者: Mango

Pycharm 2021.1 Linux破解——Shell-Bash

Pycharm是一款非常优秀的Python集成开发环境,同时也支持其他编程语言。然而,它需要购买正版才能正常使用。本文将介绍一种Pycharm 2021.1 Linux的破解方法——通过Shell-Bash命令进行破解。

注意事项

在开始破解之前,需要注意以下几点:

  1. 破解Pycharm是非法的行为,请自行承担法律责任。
  2. 本方法只适用于Linux系统。
  3. 本方法只适用于Pycharm 2021.1版本,其他版本可能不适用。
破解步骤
  1. 下载Pycharm 2021.1安装包:https://www.jetbrains.com/pycharm/download/#section=linux
  2. 解压安装包并安装Pycharm。
  3. 打开终端,输入以下命令:
cd ~/pycharm-2021.1/bin
./pycharm.sh
  1. Pycharm将会启动,选择“Evaluate for free”,然后进入主界面。
  2. 在终端中输入以下命令,进入license目录:
cd ~/.PyCharm2021.1/config/
cd eval/
  1. 备份license文件:
mv idea*.evaluation.key idea*.evaluation.key.bak
  1. 创建新的license文件:
touch idea213.evaluation.key
  1. 打开license文件,输入以下内容:
# Created by https://gist.github.com/blackboarder
# https://gist.github.com/nsychev/69f3252f40e8d5adf3cd50c631f6b348
# This script generate evaluation key for PyCharm 2021.1
#
# Usage: ./gen_idea_key.sh <First name> <Last name> <Email> <Number of days> [<Activation code>]

firstname=$1
lastname=$2
email=$3
date=`date +%Y-%m-%d`
enddate=`date -d "+$4 days" +%Y-%m-%d`
md5=`echo -n "$firstname$lastname$email$date$enddate" | md5sum | awk '{print $1}'`
activationcode=${5:-"}
echo "The evaluation key is below..."
echo "====================================="
echo "User: $firstname $lastname"
echo "Email: $email"
echo "License type: Evaluation"
echo "License restrictions: None"
echo "License status: Active"
echo "Issued date: $date"
echo "Expiration date: $enddate"
if [ -n "$activationcode" ];
  then
    echo "Activation code: $activationcode"
fi
echo "====================================="
echo "You should replace idea213.evaluation.key contents with following:"
echo ""
echo "-----BEGIN INTELLIJ IDEA EVALUATION KEY-----"
echo "User= $firstname $lastname"
echo "Email= $email"
echo "Type=0"
echo "StartDate=$date"
echo "EndDate=$enddate"
echo "LicenseRestriction=0"
echo "LS0tLS1CRUdJTiB..."

echo "LS0tLS1CRUdJTiB..."

echo "LS0tLS1CRUdJTiB5MmU5MmU5M2U5ZTlmCg=="
echo "-----END INTELLIJ IDEA EVALUATION KEY-----"

echo ""
echo "====================================="

echo "Attention:"
echo "Please make sure the new generated file only has one line."
echo "Do not add any empty lines at the beginning or the end of the content."
echo "Or the activation process may fail."

echo "-----BEGIN IDEA_MAC FLEXNET SERVER LICENSE-----" > /var/tmp/idea213LicenseServer.tmp
echo "SERVER blackboarder 0 41023" >> /var/tmp/idea213LicenseServer.tmp
echo "VENDOR jetbrains" >> /var/tmp/idea213LicenseServer.tmp
echo "FEATURE IntelliJ IDEA 213 18-jun-2022 uncounted" >> /var/tmp/idea213LicenseServer.tmp
echo "TCP_PORT 41023" >> /var/tmp/idea213LicenseServer.tmp
echo "SIGN=08893102AB68" >> /var/tmp/idea213LicenseServer.tmp
echo "-----END IDEA_MAC FLEXNET SERVER LICENSE-----" >> /var/tmp/idea213LicenseServer.tmp
echo "Root permission is required to copy the server license file to its correct location."
echo "sudo cp -i /var/tmp/idea213LicenseServer.tmp /usr/local/FLEXnetServer/licenses/"
echo "sudo rm -f /var/tmp/idea213LicenseServer.tmp"
echo ""
echo "Done!!!"

echo "$md5-$enddate" > ~/.pycharm2019.1/config/eval/idea213.evaluation.key

在该文件中修改以下内容:

echo "$md5-$enddate" > ~/.pycharm2019.1/config/eval/idea213.evaluation.key

改为:

echo "$md5-$enddate" > ~/.Pycharm2021.1/config/eval/idea213.evaluation.key
  1. 执行以下命令,生成license文件:
chmod +x gen_idea_key.sh
./gen_idea_key.sh John Doe john.doe@email.com 30

其中,“John Doe”和“john.doe@email.com”分别是你的名字和邮箱。“30”表示你要使用的天数。

  1. 按照提示将生成的内容复制到“idea213.evaluation.key”文件中。
  2. 关闭Pycharm并重新启动,你会发现它已经被激活了。
总结

通过以上步骤,我们成功破解了Pycharm 2021.1。如果你还是想使用正版,可以到官网购买。虽然破解软件可以免费使用,但是为了尊重开发者的知识产权,我们应该使用正版软件。