How to Install and Use MagicTree on Kali Linux [2025 Guide]

How to Install and Use MagicTree on Kali Linux
User
11 Min Read
2025/10/11

Anyone who’s spent time on penetration testing knows how painful writing the final report can be. It usually takes longer than the actual test sorting results, screenshots, and notes into something that makes sense. If you’re using Kali Linux, there’s a hidden gem that can save you hours: MagicTree. This lightweight tool helps penetration testers collect data, run commands, and generate professional reports all in one place. In short, it makes pentesting on Kali Linux cleaner, faster, and a lot less stressful. In this guide, you’ll learn exactly how to install and use MagicTree on Kali Linux, and why so many security professionals rely on it.

And if you’d rather run it on a stable remote setup, a Linux VPS from Eldernode is a solid option fast, reliable, and ready for serious pentesting work.

Introducing MagicTree On Kali Linux

Kali Linux is a Linux-based Operating System, mostly used in penetration testing. There are different types of tools that are present in Kali Linux to perform different operations. One of them is the Reporting tool that is designed to develop statistics and information to help in analyzing. In this section, you will learn about the MagicTree data management and reporting tool that helps you to execute commands and export the results as a report. In case you have already used or heard, MagicTree is similar to DradisFaraday IDE, and Pipal.

The MagicTree is a Java program classic desktop application. it will structure the data according to the real-world object it describes. There is no server, no database, and no listening sockets. But it manages data through tree-structured nodes, which are particularly effective for managing host and network data. MagicTree stores data in a tree structure. To do this, it has several nodes to store data such as Branch node, Simple node, Text node, Data node, XML data node, Picture node, and Summarize nodes. It also allows saving queries and commands to be reused in future projects.

MagicTree Features

This tool has some unique features like data querying and command execution that allow users to extract the necessary data from the tree and feed it to command-line tools. MagicTree allows you to import XML data and has XSLT transforms for Nmap, Nikto, Nessus, Burp, OpenVAS, Qualys, and Imperva Scuba. Let’s see more of MagicTree features:

1- Automatic creation of nodes from netblock address

2- Drag and drop objects from the tree

3- Launch CLI-based tools (Nmap, Nikto, …) from MagicTree

4- Import results from other tools (Nessus, …)

5- Sort findings by severity

6- Generate reports (*.odt, *.docx)

7- Adding file attachments to nodes

8- Searching data in the tree

9- Supports running shell commands straight from the GUI, capturing command output

10- Allows querying the collected data and feeding it to shell commands

How To Install MagicTree On Kali Linux

MagicTree is pre-installed on Kali Linux and located under the “Reporting Tools” category.

You can install MagicTree by running the command below:

sudo apt-get install magictree

How to Use MagicTree on Kali Linux

MagicTree follows the tree node structure to manage the host and related data. Join us with this section to learn how to use Magic Tree.

Step 1:

To launch the Kali-Linux tools, click on “Applications” and go to “Reporting Tools”. Then, click on “MagicTree”.

 

KaliReporti30

*

KaliLinux31

 

Step 2:

Then, navigate to ”File”, ”Open”, and select the files to upload.

 

KaliLinux32

*

KaliLinux33

 

Step 3:

Magic Tree will map all the data into the tree node structure.

 

KaliLinux34

 

Step 4:

You will be able to see the data further on expanding individual nodes:

 

Kali Linux Server-6-4

 

MagicTree Querying on Kali Linux

This tool allows querying the collected data and feeding it to shell commands. Select any data from the above table. There are different queries available:

Q*: Run a query that selects all nodes of the same type as the currently selected node. For example, if we select OS and click the “Q*” button, it will list all nodes with the type “OS”. Look at all nodes with OS details below.

The query ran to fetch the data is present under the “Query” field. So, you can modify the query as per your requirements:

 

server-linux-7-3

 

To list all the nodes with type “OS” and text ”Microsoft Windows 7”, you can select OS and click the “Q1” button. Here, you can see all the hosts with the same OS:

 

Kali server-37-1

 

In this way, you extract the necessary data from the tree and feed it to the command-line tool.

MagicTree is to be able to run Nmap from the user interface. To do this, Right-click on the ”test data” note, go to ”Create child” and click the ”Simple node”  option.

 

Server_KaliReporti38

 

Now, enter the host details and press enter:

 

Server_2228_KaliReporti39-1

 

Next, click the ”Q1” query button, enter the following Nmap command in the ”Command” field and click the ”Run” button:

 

 

At this point, the Nmap scan has started. You can see a newly created task at the bottom left of the screen while the upper highlighted part shows the status of the task:

 

eldernode_KaliReporti41-1

 

To check the scan status, you need to click the ”Console” button and access it:

 

KaliReporti42-1-en

 

When the scan is finished, you will see the log and XML output under the ”task” node:

 

eldernode-kali-server-43-1

 

Now, click on the ”xmlData” and then click the ”Merge XML data” button to merge the result into the current tree:

 

kali-server-eldernode2025

 

The result of the scan is added to your desired host:

 

 

Magic Tree has the option to generate the report in Word format. So, you can select a node, navigate to ”Report”, and click the ”Generate report…” option to generate the report.

 

 

Then, browse through the available report templates, select one, and click the ”Generate Report” button:

 

 

Navigate to a location to extract the report:

 

KaliReporti48

 

Finally, the Word report is downloaded and can be accessed:

 

KaliReporti49

*

KaliReporti50

Conclusion

If you’ve ever spent hours trying to organize penetration testing results, you’ll probably appreciate what MagicTree does for you. It keeps things neat, automates most of the boring parts, and just makes life easier on Kali Linux.

I personally recommend running it on a solid Linux VPS something stable enough to handle your scans and reports without lag. Eldernode’s Linux VPS fits that perfectly if you’re looking for a setup that just works.

Leave a Reply

Full Name*
Email*
Comment *

Calculate the value of 9 - 4 :

Save my name, email, and website in this browser for the next time I comment.
Recent Replies
Show More

We are by your side every step of the way

Think about developing your online business; We will protect it compassionately

We are by your side every step of the way

+8595670151

7 days a week, 24 hours a day