How to install Backtrack 5 r1 in Oracle VirtualBox, prepare the kernel headers, and install the VBoxLinuxAdditions

Here are the download links: Virtualbox

Backtrack 5 r1

Preparing the kernel headers

Simplified version on how to prepare the headers then install the vboxadditions

I'll be taking requests for the next tutorial, or I might just cover the basics of nmap/wireshark.

Edit: The VBoxGuestAdditions that I used in the tutorial is not the most up to date version, it still works but if you want to upgrade it just run:

wget http://download.virtualbox.org/virtualbox/4.1.6/VBoxGuestAdditions_4.1.6.iso

instead of

wget http://download.virtualbox.org/virtualbox/4.0.8/VBoxGuestAdditions_4.0.8.iso

EDIT: I meant to post this link but for some reason it submitted a self-post instead.

Posted Nov 16, 2011, 3:41 AM UTC · edited

2720
beefjerkier•

I feel like i know a lot of stuff but this post is awesome because i was failing at doing this exact same thing the other day. I am now totally frontpage'ing this subreddit.

edit- by the way, it would be really helpful if you could explain why each command needs to be done. I can copy paste all day but I seriously need a deeper understanding of Linux so anything helps.

4
I_RAPE_CATDOGSOP•

I'm glad that I could help!

I tried to provide as much detail in the but it's always good to make sure that the kernel sources have been prepared but it's not mandatory. To get a deeper understanding I'd start by reading the man page of any command that you aren't familiar with.

man cd
man cp 
cd ~/ # This navigates to your home directory
man wget 
man mkdir 
mount –o loop VBoxGuestAdditions_4.0.8.iso /a # this mounts the .iso file that you downloaded to /a
chmod a+x VBoxLinuxAdditions.run # changes the permissions of the file and allows for it to be executed
./VBoxLinuxAdditions.run # executes the VBoxLinuxAdditions.run script

Preparing the kernel isn't required but if you want to compile modules in order to use a graphics card, wireless adapter, webcam, etc.

2
revpjbbq•

Is there a reason I am unaware of that would have you using the 4.0.8 version of VBoxGuestAdditions?

http://download.virtualbox.org/virtualbox/4.1.6/VBoxGuestAdditions_4.1.6.iso is the latest for use with the latest VirtualBox.

2
I_RAPE_CATDOGSOP•

I guess the wiki on backtrack-linux is not up to date, if I had known that it wasn't the latest release I wouldn't have installed it but it seems to work fine.

1
dk01•

Yes. Love this subreddit already. The more nmap/wireshark the better. Also if you specifically cover rdp vulnerabilities or owa, I'd love to see those.

2
I_RAPE_CATDOGSOP•

I'm not too familiar with rpd vulnerabilities but in the next tutorial I'll just demonstrate how to fingerprint a Windows OS that's running on your network. Then I'll use airodump-ng to generate a rather large .cap file so I can use filters to only display the packets that I'm looking for(WPA/WPA2 handshakes). I can also make some pretty in depth tutorials on wireless security (ssl-mitm's, creating soft AP honeypots, mdk3, etc).

4
Crumpins•

I would totally be down to see some tutorials on the creating soft AP honeypots.

2
I_RAPE_CATDOGSOP•

It's amazing how many people will connect to a honeypot with the ESSID of "Free internet". The next time I make one I'll be sure to record it!

1
ngbmameman•

Am I going to have to buy a compatible wifi card for this to work? I know that BT only works with some cards.

2
I_RAPE_CATDOGSOP•

The easiest way would to just buy an alfa awus036h 1000mw with a 5bi gain antenna because it works out of the box in backtrack. I bought mine for $25 and it hasn't disappointed me at all I'm able to pick up around 60 AP's and 100+ wireless clients. The wifi card isn't really what matters it only depends on what chip set the card is using and if that chip set is supported by aircrack-ng all you would need to do is blacklist the legacy drivers and apply a patch to the supported driver.

2
[deleted]MOD•

You basically want a network card that's supported on BT5.

This link should help you out: http://www.backtrack-linux.org/wiki/index.php/Wireless_Drivers

1
boneseh•

Thanks for doing this, and as beefjerkier stated, explaining what the commands are doing would add for greater understanding. Also, one suggestion I just thought of is to maybe give the pronunciation of words to prevent "tracer-t" pronunciations and Lienix. Thanks again for doing this!

2
I_RAPE_CATDOGSOP•

You're welcome, a good way to become familiar with the different functionalties of commands you can always either append the -h or --help to display the help banner and for a more detailed explanation of a command you can just run 'man <insert command here>' to bring up the man page. I'll be sure to add that when trying to explain stuff that's difficult to pronounce.

1
GnarlinBrando•

info does the same thing, sometimes there are slightly better docs in one or the other.

1
atomicfrog•

Outstanding sir, can't thank you enough for this post and this sebreddit!

2
drew3000•

Hello, this isn't exactly related to this style of install but I think a Backtrack USB stick tutorial could be useful. I've not had much luck getting backtrack working on a usb stick. I get it installed, but it generally tends freeze, just showing the desktop background but not doing anything else.

1
I_RAPE_CATDOGSOP•

Are you using KDE or GNOME? It could be an issue with the x server not starting try running this and see if it fixes the problem:

dpkg-reconfigure xserver-xorg

If you're using KDE run these commands:

rm /root/.kde/cache-*
rm -rf /var/tmp/kdecache-*

Try re downloading the .iso and format the USB stick to fat32 then extract all the files, if you still can't get it installed try burning the iso to a dvd and installing it that way.

2
I_RAPE_CATDOGSOP•

I just realized that the link to the video was never posted.

http://vimeo.com/32181794

1
mwerte•

I just found this place, and it looks pretty nice. Is the process generally the same for installing Backtrack in it's own partition?

I already ordered the wifi card you mentioned further up.

1
[deleted]•

[deleted]

1
I_RAPE_CATDOGSOP•

Try connecting to the wireless access point with your Alfa AWUS036H in windows then go to the settings of you VM, go to the network adapters and select bridged, and make sure you select the RTL8187. Once you boot the VM to get an IP type 'dhclient3 eth0' in terminal then 'ping google.com'

1
[deleted]•

[deleted]

1