1. Description
1.1 Material
This paper uses the following materials:
- Docker Mirror Github Link
- Crack Tool Gitee Link
With these tools, you can theoretically crack almost all versions.
1.2 Database
If you choose an external database, you can create it as follows:
# Create jira database and users CREATE DATABASE jiradb CHARACTER SET utf8mb4 COLLATE utf8mb4_bin; grant all on jiradb.* to 'jirauser'@'%' identified by 'tVxxxb6n'; # Create confluence database and users CREATE DATABASE confdb CHARACTER SET utf8mb4 COLLATE utf8mb4_bin; grant all on confdb.* to 'confuser'@'%' identified by '7FxxxzhO'; # confluence requires transaction level READ-COMMITTED set global tx_isolation='READ-COMMITTED';
2. Install JIRA(8.8.1)
JIRA is a defect tracking management system developed by Atlassian, Australia, for commercial applications for defect management, task tracking, and project management.The name JIRA is not an abbreviation, but a truncation of the Japanese Gojira pronunciation. Official Web
2.1 Making Docker Cracking Containers
Write a Dockerfile:
FROM cptactionhank/atlassian-jira-software:latest USER root # Add proxy unpacking to container COPY "atlassian-agent.jar" /opt/atlassian/jira/ # Set Startup Loading Agent Package RUN echo 'export CATALINA_OPTS="-javaagent:/opt/atlassian/jira/atlassian-agent.jar ${CATALINA_OPTS}"' >> /opt/atlassian/jira/bin/setenv.sh
2.2 Download cracked files
Download the compiled file from gitee and place it in the same directory as Dockerfile
- JIRA --Dockerfile --atlassian-agent.jar
2.3 Building Mirrors
docker build -t wangzan18/jira:latest .
The results are as follows:
Sending build context to Docker daemon 2.141MB Step 1/4 : FROM cptactionhank/atlassian-jira-software:latest ---> c51100467795 Step 2/4 : USER root ---> Running in 3f9cea0602c7 Removing intermediate container 3f9cea0602c7 ---> 4b9e20ba43cf Step 3/4 : COPY "atlassian-agent.jar" /opt/atlassian/jira/ ---> 61155470b50a Step 4/4 : RUN echo 'export CATALINA_OPTS="-javaagent:/opt/atlassian/jira/atlassian-agent.jar ${CATALINA_OPTS}"' >> /opt/atlassian/jira/bin/setenv.sh ---> Running in 5aed1ac41ab7 Removing intermediate container 5aed1ac41ab7 ---> 33d0b86f8262 Successfully built 33d0b86f8262 Successfully tagged wangzan18/jira:latest
2.4 Startup Container
docker run -d --name jira\ --restart always \ -p 18009:8080 \ -e TZ="Asia/Shanghai" \ -m 4096M \ -v /home/data/www/jira.wzlinux.com:/var/atlassian/jira \ wangzan18/jira:latest
2.5 Visit jira
Access IP:18009, select language and choose manual configuration
Demonstrate using built-in databases (production environments need to configure stand-alone databases):
set a property
2.6 Cracking
- Replication Server ID: BRQE-TEN6-TLYV-KFMI
- Execute the command in the directory where atlassian-agent.jar is stored locally to generate the license:
- Replace mailbox (test@test.com), name (BAT), access address ( http://192.168.0.89), Server ID (BY9B-GWD1-1C78-K2DE) for your information
java -jar atlassian-agent.jar \ -d -m test@test.com -n BAT \ -p jira -o http://192.168.0.89 \ -s BY9B-GWD1-1C78-K2DE
For example, my information is as follows to generate licenses:
java -jar atlassian-agent.jar \ -d -m wangzan18@126.com -n BAT \ -p jira -o http://jira.wzlinux.com \ -s BRQE-TEN6-TLYV-KFMI ==================================================== ======= Atlassian Crack Agent ======= ======= https://zhile.io ======= ======= QQ Group: 30347511 ======= ==================================================== Your license code(Don't copy this line!!!): AAABoQ0ODAoPeJx9ktFPqzAUxt/5K0h8LpaazbmE5CrUhAhMB5rcx46dbTWskNMynX+9Hcy467wkv LSn5/vO+X1c5K1yU7F3fer6bEpHU8rcMC9cRhl1XiUKr8F62ZbGOxyIrlfmTSB4ojRyB4HBFpxUS GVACVUCf28k7iNhIGB0ckPotf2GdLJ2uwCcrZ41oA6I37+1AiIEK4q9Qw64A4yj4G7+xEnBszEpk r8v5OE+jZ1ElqA02GoSRznPSOKPJjd0cjWi7HrsO2GtjB2X2zGr4E2o9YdQ/uSPz8ZeWW97w9N1+ E5UrTCyVsFKVBqcxxbLjdBwXItRQkfEp1/Gxb6BTGwhCGdpyudhfJs4awRQm7ppAP/R7swG+rr6G ZNjw+9wz16feg9YRaBLlE2357Oq5FYaWLpV3+Au9u7GmEZPLy8/NrICT9ZDMeZG4CGtHtiReOd4d 1s4M1wLJXXP9CBrVTsxyx/trVrrLgobXvBbgAhd60/+ebv4XuEML1/KfrcsidO44NHQ/D9/uFOG3 XWDUsN57b9eR44vNpNDgX0C7gEsJDAsAhQGL/A02nteG056fiVCh12XIgz+KwIUG3z2e35ugE7Pc N6ZMj+Aum9LTK8=X02k4
Copy the generated license to the page and complete the cracking.
View license results
3. Install Confluence(7.4.0)
Atlassian Confluence is a professional wiki program.It is a tool of knowledge management through which collaboration and knowledge sharing among team members can be achieved. Official Web
3.1 Write a Dockerfile:
FROM cptactionhank/atlassian-confluence:latest USER root # Add proxy unpacking to container COPY "atlassian-agent.jar" /opt/atlassian/confluence/ # Set Startup Loading Agent Package RUN echo 'export CATALINA_OPTS="-javaagent:/opt/atlassian/confluence/atlassian-agent.jar ${CATALINA_OPTS}"' >> /opt/atlassian/confluence/bin/setenv.sh
3.2 Download cracked files
Download the compiled file from gitee and place it in the same directory as Dockerfile
- Confluence --Dockerfile --atlassian-agent.jar
3.3 Building Mirrors
docker build -t wangzan18/confluence:latest .
Sending build context to Docker daemon 976.9kB Step 1/4 : FROM cptactionhank/atlassian-confluence:latest ---> 080599d8b2d7 Step 2/4 : USER root ---> Running in 016cda821c07 Removing intermediate container 016cda821c07 ---> 6506aa1b43c1 Step 3/4 : COPY "atlassian-agent.jar" /opt/atlassian/confluence/ ---> 27ab3f8f23cc Step 4/4 : RUN echo 'export CATALINA_OPTS="-javaagent:/opt/atlassian/confluence/atlassian-agent.jar ${CATALINA_OPTS}"' >> /opt/atlassian/confluence/bin/setenv.sh ---> Running in 68588c4f146c Removing intermediate container 68588c4f146c ---> 45a74f5420da Successfully built 45a74f5420da Successfully tagged wangzan18/confluence:latest
3.4 Startup Container
docker run -d --name confluence \ --restart always \ -p 18010:8090 \ -e TZ="Asia/Shanghai" \ -v /home/data/www/confluence.wzlinux.com:/var/atlassian/confluence \ wangzan18/confluence:latest
3.5 Visit confluence
Access IP:18010 and follow the JIRA installation process.You can bind to a previously installed JIRA during boot.
Let's pick an app
3.6 Cracking
The confluence license command is generated using the following:
# Set product type: -p conf, details executable: java-jar atlassian-agent.jar java -jar atlassian-agent.jar -d -m test@test.com -n BAT -p conf -o http://192.168.0.89 -s BY9B-GWD1-1C78-K2DE
java -jar atlassian-agent.jar \ -d -m wangzan18@126.com -n BAT \ -p conf -o http://confluence.wzlinux.com \ -s BTW4-2T4Y-9BTK-R0DP ==================================================== ======= Atlassian Crack Agent ======= ======= https://zhile.io ======= ======= QQ Group: 30347511 ======= ==================================================== Your license code(Don't copy this line!!!): AAABXQ0ODAoPeJx1kV9vgjAUxd/7KUj2XG1R5p+EZArEmYEsotteK7tqEyikLW7s069UzJJlS/rQn HtPf/fc3mWNcBLWOpQ41JuT6dylTpDtHJe4BCWMCw2CiRyiz5rLNmQafJdMZ5hMzEExz0Gof4ohq FzyWvNK+HtR8JJreHeKq8U5tM5Z61rNh8OvMy9gwCsUVEKzXG9YCf5ysUMZyAvIdegvR49jHNL0F a+25A0/Be4K5ZU4DjZNeQCZHvcKpPIxRak8McEVs9QOYN7vOosGTIpBXpXS1MRJddcbMDJBC/+Di dMXE3T6QN17W7aIPuOurcEOFqRJEm2D9SJGgQQL6pO7BBMPU3Jbixk8XodZtMEx9aYzMht7hI4mH jKS/4dscWYcfgFfywZQdGFFc41yZIUC9NzI/MwU/AZmzeFn19Zq38o0kxpkb7aScbIARKfavv47X sz6Oq/7DWevrTUwLgIVAIEyoNFjmUFyTJOVUzmxTJTM14S8AhUAkaRbRjdl4D9MZtO6l5nCHcR2B 80=X02h9
Select single machine mode and set up database
3.7 Configuration confluence
Let's make a demonstration site
Configure user management, here we choose the jira we created earlier
Configure Connection Information
Synchronize data
Be accomplished
Log on to view authorization
4. Scrambling
After our normal installation, the Chinese language may be garbled. Let's modify the connection string. Under the confluence home directory, there is a configuration file confluence.cfg.xml, find hibernate.connection.url, and add the following characters after the database string. The overall result is as follows:
jdbc:mysql://172.17.64.10/confdb?useUnicode=true&characterEncoding=utf8
Remember, amp inside; don't omit.
Change the database string to utf8mb4 if possible
https://confluence.atlassian.com/doc/database-setup-for-mysql-128747.html
There is also a document saying that the string was changed to utf8, not utf8mb4. I don't know the difference, so you can test it.
https://www.cwiki.us/display/CONFLUENCEWIKI/Database+Setup+For+MySQL