1.IntelliJ-IDEA modifies CobaltStrike

Disclaimer: Please do not use the relevant technologies in this article to engage in illegal testing. Any direct or indirect consequences and losses caused by the dissemination and use of the information or tools provided in this article will be the responsibility of the user himself. All consequences incurred Adverse consequences have nothing to do with the author of the article. This article is for educational purposes only.

Record a convenient little trick to modify cobaltstrike. No need to use other decompilation tools. Double-click to automatically decompile.

Preliminary preparation

1. IDEA tool (you can download it directly from the official website and then purchase the activation code for 2 yuan on a certain treasure. There is no need for tedious cracking, and you won’t need it until 2099)
2. cobaltstrike .jar package

1. Create a new project

Enter the IDEA interface and create a project
Insert image description here
If you are not good at English, you can download the Chinese plug-in
Insert image description here

Then click on the plug-in and search for chinese

Just install and restart
Insert image description here

2. Create a lib directory

Right click and create a lib directory
Insert image description here
Click Create
Insert image description here
Copy the cobaltstrike.jar package into the lib folder you just created

Insert image description here
Then select project settings and add the dependency of cobaltstrike.jar in Modules.

Insert image description here
Insert image description here
In the created lib directory, double-click the file you want to change. After double-clicking, it will be decompiled directly. However, the current status cannot be modified, it is only a read-only status.

Insert image description here

3. Refactor the code

To modify the file, the next thing to do is to directly copy it with ctrl +A ctrl+c, and then create a new java class in the source code. Note that the name must be consistent. Note that if this file is unique, create it directly. If multiple files with the same name are in different directories, the directory structure needs to be the same.

Copy a piece of code
Insert image description here
Create a new Java class

Insert image description here
Insert image description here
Make all your edits here

Insert image description here
Use build to compileInsert image description here
and then set it in the artifacts option of project settings. You need to set it for the first time. If you modify the file in the same directory later, it is not needed

Insert image description here

Insert image description here
Insert image description here

After modification, directly select build artifacts in build
Insert image description here

4. Operation effect

Then run it directly and you can see the effect of the modification.

Insert image description here

Insert image description here

Supongo que te gusta

Origin blog.csdn.net/holyxp/article/details/134263432
Recomendado
Clasificación