MagicTree is a penetration tester productivity tool. It is designed to allow easy and straightforward data consolidation, querying, external command execution and (yeah!) report generation. In case you wonder, “Tree” is because all the data is stored in a tree structure, and “Magic” is because it is designed to magically do the most cumbersome and boring part of penetration testing – data management and reporting


Step 1: Start MagicTree

cyborg@cyborg:~$ sudo magictree

Step 2: Create Node Using Nmap

Click on Note> Autocreate
When prompted, enter the target’s IP and click ‘ok’

A. Under the ‘table view’ tap, near the bottom of the screen, you will see the ‘Command’ box, call nmap and specify the scan you’d like performed. In addition,

B. Specify that you’d like the results to be placed inside an xml file by including the ‘$’ sign followed by the name you’d like to save your result file as followed by ‘.xml’ to specify the type of file you’re saving the results as. In my example, I am naming my output file ‘results.xml’.

C. Because we’ve already told MagicTree the IP of my target address, I don’t need to include it in nmap. Instead I’ll simply use ‘$host’.

nmap -v -A  -out $results.xml $host //for Environment

nmap -v -A  -i $in -o results.xml $host  //for TabSep

D. Hit the ‘Q*’ button under ‘tree view’, then hit run for it to run the nmap commands.

Step 3: Import Scan Results into Tree to Be Organized

Under the ‘task manager’ tab, once the scan is complete you’ll see your .xml file pop up under ‘Output files’. Hit the ‘import’ button and MagicTree will automatically generate the node structure based on the results of nmap.

MagicTree is one of those tools you need to mess with a bit to get it down and appreciate it’s full power.

magictree output MagicTree


Leave a reply


We're are building as a community and a team. Be a part of it.


©2018 Ztrela Knowledge Solutions Pvt. Ltd

Log in with your credentials

Forgot your details?