Elastic stack 7.12.0 platinum version never expires (crack elasticsearch license)

Time:2022-1-13

System environment: CentOS Linux release 7.7.1908 (core)
This method is applicable to 7.4.0 ~ 7.12.0.
Study only, non-commercial use.

Elastic stack 7.12.0 platinum version never expires (crack elasticsearch license)

Elastic stack 7.12.0 platinum version never expires (crack elasticsearch license)

One click execution (only available for version 7.12.0 installed with RPM package):

rm -rf /usr/share/elasticsearch/modules/x-pack-core/x-pack-core-7.12.0.jar
wget https://www.itca.cc/file/x-pack-core-7.12.0.jar -O /usr/share/elasticsearch/modules/x-pack-core/x-pack-core-7.12.0.jar
echo xpack.security.enabled: false >> /etc/elasticsearch/elasticsearch.yml
systemctl restart elasticsearch kibana


Manual processing (applicable to all the above versions, please modify it according to the actual situation):

01. Download tar GZ installation package
#Create directory
mkdir /root/elasticsearch-pj && cd /root/elasticsearch-pj
mkdir install && cd install

#Download
wget https://mirrors.huaweicloud.com/elasticsearch/7.12.0/elasticsearch-7.12.0-linux-x86_64.tar.gz -O elasticsearch-7.12.0-linux-x86_64.tar.gz

#Decompress
tar zxvf elasticsearch-7.12.0-linux-x86_64.tar.gz
cd ..
02. Download the elasticsearch source code
#Create directory
cd /root/elasticsearch-pj
mkdir src && cd src

#Download
wget https://github.com/elastic/elasticsearch/archive/v7.12.0.tar.gz -O elasticsearch-v7.12.0.tar.gz

#Decompress
tar zxvf elasticsearch-v7.12.0.tar.gz
cd ..
03. Modify and compile x-pack package
cd /root/elasticsearch-pj
mkdir build && cd build

# lib module
ln -s ../install/elasticsearch-7.12.0/lib .
ln -s ../install/elasticsearch-7.12.0/modules .

# License.java
find ../src -name "License.java" | xargs -r -I {} cp {} .
sed -i 's#this.type = type;#this.type = "platinum";#g' License.java
sed -i 's#validate();#// validate();#g' License.java

#Compile
yum -y install java-devel
javac -cp "`ls lib/elasticsearch-7.12.0.jar`:`ls lib/elasticsearch-x-content-7.12.0.jar`:`ls lib/lucene-core-*.jar`:`ls modules/x-pack-core/x-pack-core-7.12.0.jar`" License.java

# x-pack-core-7.12.0.jar
mkdir src && cd src
find ../../install -name "x-pack-core-7.5.0.jar" | xargs -r -I {} cp {} .
jar xvf x-pack-core-7.12.0.jar
rm -f x-pack-core-7.12.0.jar
\cp -f ../License*.class org/elasticsearch/license/
jar cvf x-pack-core-7.12.0.jar .
04. Covering x-pack-core-7.12.0 jar

The compiled x-pack-core-7.12.0 Overwrite the jar file to the installation directory

cp /root/elasticsearch-pj/build/src/x-pack-core-7.12.0.jar /usr/share/elasticsearch/modules/x-pack-core/

Note: if you want to keep the page directly opened during installation without logging in, please execute the next command and skip steps 05 and 06

echo xpack.security.enabled: false >> /etc/elasticsearch/elasticsearch.yml && systemctl restart elasticsearch kibana
#You need to use a password to log in without execution
05. Initialize elasticsearch password
#Enter the installation directory of elasticsearch, generally: / usr / share / elasticsearch
[[email protected] elasticsearch]# elasticsearch-setup-passwords interactive
Initiating the setup of passwords for reserved users elastic,apm_system,kibana,logstash_system,beats_system,remote_monitorin_user.
You will be prompted to enter passwords as the process progresses.
Please confirm that you would like to continue [y/N]y


Enter password for [elastic]:
Reenter password for [elastic]:
Enter password for [apm_system]:
Reenter password for [apm_system]:
Enter password for [kibana]:
Reenter password for [kibana]:
Enter password for [logstash_system]:
Reenter password for [logstash_system]:
Enter password for [beats_system]:
Reenter password for [beats_system]:
Enter password for [remote_monitoring_user]:
Reenter password for [remote_monitoring_user]:
Changed password for user [apm_system]
Changed password for user [kibana]
Changed password for user [logstash_system]
Changed password for user [beats_system]
Changed password for user [remote_monitoring_user]
Changed password for user [elastic]
06. Configure and restart elasticsearch and kibana
#Disposition
sed -i '$a\xpack.security.enabled: true\nxpack.security.transport.ssl.enabled: true\n' /etc/elasticsearch/elasticsearch.yml
sed -i '$a\elasticsearch.username: kibana\nelasticsearch.password: 12345\n' /etc/kibana/kibana.yml

#Restart
systemctl restart elasticsearch kibana
Elastic stack 7.12.0 platinum version never expires (crack elasticsearch license)


Reference documents:https://segmentfault.com/a/1190000021193400

Recommended Today

IOS imitates various ways of wechat long press to identify QR code

Reference:https://github.com/nglszs/BCQRcode Mode 1: #import <UIKit/UIKit.h> @interface ViewController : UIViewController @end ************** #import “ViewController.h” @interface ViewController () @end @implementation ViewController – (void)viewDidLoad { [super viewDidLoad]; self. Title = @ “QR code”; UIBarButtonItem *leftBtn = [[UIBarButtonItem alloc] Initwithtitle: @ “build” style:UIBarButtonItemStylePlain target:self action:@selector(backView)]; self.navigationItem.leftBarButtonItem = leftBtn; UIBarButtonItem *rightBtn = [[UIBarButtonItem alloc] Initwithtitle: @ “scan” style:UIBarButtonItemStylePlain target:self action:@selector(ScanView)]; […]