Getting DirBuster to work at Ubuntu
DirBuster is a great tool. It can be used reconstruct remove website structure. I think it is a required tool for every penetration tester. Today I decided to install this application on my Ubuntu box.
Installation process was not that smooth. I had to do some hacking. As a result, I decided to create this tutorial.
Download the tool
You can pick application from the OWASP website here:
http://www.owasp.org/index.php/Category:OWASP_DirBuster_Project
Test run on the application
#java -jar ./DirBuster-0.9.10.jar
Exception in thread "main" java.awt.AWTError: Cannot load AWT toolkit: gnu.java.awt.peer.gtk.GtkToolkit
at java.awt.Toolkit.getDefaultToolkit(libgcj.so.70)
at java.awt.EventQueue.invokeLater(libgcj.so.70)
< ----- skipped ----- >
Troubleshoot
After some Internet research, it turns out that GNU java does not support AWT library. I used the following command to check which version I am using:
#java -version
java version "1.4.2"
gij (GNU libgcj) version 4.1.2 (Ubuntu 4.1.2-0ubuntu5)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Installation of sub java was pretty straightforward. Just run the following shell command:
#sudo apt-get install sun-java6-bin
After installation check again java version in order to make sure the right one is used:
#java -version
java version "1.6.0"
Java(TM) SE Runtime Environment (build 1.6.0-b105)
Java HotSpot(TM) 64-Bit Server VM (build 1.6.0-b105, mixed mode)
Run the application
Now you can start the application again. Just execute the following command:
#java - jar DirBuster-0.9.10.jar











