Hello and welcome back.
In this video, I will show you how to install OpenJDK, which is the Java Development Kit,
and also Ghidra.
I'm now in full screen mode in Kali.
If you want to go back to the Windows mode, just hover your mouse at the bottom and this toolbar
control will open up and click on this icon here and you go back to Windows mode.
I'm going to go back to full screen mode now.
The other thing you can do is Host F.
Host F is the right control on the keyboard and F key will also take you back into Windows mode.
So I'm going to open the terminal now, click on this terminal here.
And now we are going to do an update to our packages. Type sudo apt
update.
Press Enter.
So key in the password for sudo, which is Kali.
Kali.
Press Enter.
And now it is updating.
You can go ahead and download Ghidra too.
Download Ghidra.
Open your browser.
You need to use a browser.
So over here just look for Firefox.
Press F to search for Firefox and click on Firefox to launch it.
OK, so now we will type in
Ghidra. Press Enter and then click the first result that you get.
Now you can download Ghidra.
Click on the link here to download Ghidra. Click Save File. Click
OK.
Now Ghidra has downloaded.
Click on this, go to open the download folder, click on this and this is the download folder.
Now we extract it.
So just
right-click here, right-click and then select Extract Here.
After extracting, there will be a new folder here.
Just open it and you will see inside there are all the folders and files that are needed by Ghidra.
Now we are going to copy this folder or move it to the opt directory.
So before that I'm going to rename this folder.
Right-click, Rename.
Let's shorten the name.
Ghidra 9.2.
Right.
So to move this to the opt folder, I'm going to use the command line to do it.
Open the terminal emulator.
Again, I will go to the download folder.
Here, then I'm going to copy
recursively the Ghidra folder to the opt folder.
Press Enter.
Permission denied.
So I need sudo.
So insert sudo in front and press
Enter. Key in the password again.
Kali, Kali, and hit Enter.
So it has finished copying.
Now we can close Firefox.
And we are ready to launch Ghidra.
So let's move to cd /opt
and ls to check the contents of the directory.
And you can see Ghidra is there.
Now we enter the Ghidra folder.
Press Tab for autocompletion and list the contents of the directory.
I'll close the other terminal. So the contents of the directory shows that there is a ghidraRun script here.
So this is probably the one we want to use to run our Ghidra program.
So to run it, just put a dot forward slash, type ghidra,
press Tab and type R,
press Tab and press Enter.
So it's asking for the path to JDK Home Directory.
So let us try to install Java
since I could not find it on the machine.
So I will type sudo apt install openjdk
and I have all this.
So I'm going to go for
this. So now we are going to...
So after you type sudo apt install openjdk-11-jdk, key in the password for sudo and it is installing.
So press
Y for yes to install.
OK, now that it has finished installing, let's go to our opt folder and enter the Ghidra folder
again and run the Ghidra
Ghidra script.
So Ghidra has detected the new Java which we have installed.
And now we click on Agree and success.
So this is the first screen you see when you launch Ghidra.
All right.
So we have successfully installed Ghidra and this is the Help file and this is the Tip file.
Just click Close.
So that's it.
So we have successfully installed Ghidra.
To close, just click on the X button.
Thank you for watching.