|
|||||||
| BackTrack3 Howtos Add your howto articles / tutorials here. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
||||
|
Part 2:
10.): In the "General", "Settings", "Advanced" tab you should do the following: Click the "Boot Order", "Floppy" checkbox to uncheck it.11.): In the "General", "Settings", "Description" tab you can type "Backtrack 3". 12.): In the "General", "Settings", "Other" tab you should leave the "Remember Mounted Media" checkbox checked. 13.): In the "Hard Disks" tab you should click the "Enable SATA Controller" checkbox. You could add a second drive as per the instructions in step 7. call it something14.): You have already configured your CD/DVD-ROM settings and can skip the "Floppy" setting (unless you want a floppy drive). 15.): In the "Audio" tab you should click the "Enable Audio" checkbox. Choose "Windows DirectSound" for the "Host Audio Driver".16.): In the "Network", "Adapter 1" tab you should do the following: Leave the "Enable Network Adapter" checkbox checked.17.): In the "Serial Ports", "Port 1" tab click on "Enable Serial Port", choose "Port Number", "COM1" and "Port Mode", "Host Device". This would allow you to add GPS later and causes the Linux OS to notice that you do have serial ports (and install a driver). 18.): In the "USB" tab click the "Enable USB Controller" and the "Enable USB 2.0 (EHCI) Controller" checkboxs. Click your Windows XP "Start" button, click on "Run" and 'Open' "cmd" (to shell to DOS), then type this:19.): You can setup "Shared Folders" and "Remote Display" if you want, I did not. 20.): Prior to leaving the "Settings" panel please ensure that there is no "red warning message" in the bottom panel and "Invalid settings detected". If there is then go back to the suggested entry and see if it is correct. Sometimes a false warning is given and you can simply click, then un-click on something, change the pane to a different one and the message will go away without actually having changed anything. New software can have bugs or you may have made an incompatable choice. Hit "OK" and in the "Sun xVM VirtualBox" window, on the "Details" tab, all the black writing (on the left) will turn blue once you have everthing correctly set. 21.): In the "Sun xVM VirtualBox" window click on "File", "Preferences" and in the "VirtualBox - Settings", "Input" panel you might want to change the "Host Key" before you continue. Remember what it is set to and click "OK". The "Host Key" allows you to swap between Backtrack 3 and Windows. 22.): Now click the green start arrow and Backtrack 3 should start to boot in the Virtual Machine. 23.): When the Virtual Machine starts you will get a reminder about your "Host Key", read the message and then: Click the "OK" button and QUICKLY get ready to hit the "Maximize button (so Backtrack 3 will know your true screen size). You might get a couple of popups about your screen being in 24 bit mode (when you are actually in 32 bit mode), click "OK" to ignore these messages. 24.): You will get a "Found New Hardware" Wizard popup as Backtrack 3 boots. Grab the top and move it out of the way so you can see Backtrack 3's boot screen and ensure that everything is working properly. Remember, before you can use the mouse to grab the "Found New Hardware" Wizard popup you MUST hit your "Host Key". 25.): When you get to Backtrack 3's login prompt you can go back to dealing with the "Found New Hardware" Wizard popup. The first pane of the popup says "Can Windows connect to Windows Update to search for software?", choose "No, not this time" and click "Next". The second pane of the popup says "What do you want the Wizard to do?", choose "Install from a list or a specific location (Advanced)" and click "Next". On the next pane choose the 'Radio Button' labeled "Don't search. I will choose the driver to install. Click next. If you need to locate the driver it might be in this directory: C:\Program Files\Sun\xVM VirtualBox\drivers\USB\device\ . Click "Finish" to close the Wizard. 26.): If you return to Backtrack 3 (using ALT-TAB) you might see a black screen, click on it. Now you might get a message about capturing the mouseclick, choose capture and move your mouse. The screensaver will unblank. 27.): Now login to Backtrack three as user "root" with password "toor". Type "reboot" and Backtrack 3 will eject the virtual CD/DVD-ROM and halt with a Fatal Error. Go to VirtualBox's "File" menu and choose "Reset", when the capture box pops up click "OK" (quickly) and hit the "Down Arrow" to defeat the 4 second countdown. 28.): These Lilo boot options are available under VirtualBox (without mods, with 64MB display memory): Code:
BT3 Graphics mode (Compiz) - Boots but xconfig / startx reboots the X Server.
BT3 Graphics mode (Compiz Nvidia) - Boots but xconfig / startx reboots the X Server.
BT3 Graphics mode (KDE) - Keeps popping up messages about 16-bit mode and rebooting the X Server.
BT3 Graphics mode (Flux) - Keeps popping up messages about 16-bit mode and rebooting the X Server.
BT3 Graphics mode (VESA KDE) - Boots and starts the X session (in 16 bit mode).
...
when the X Server terminates. If you use 120MB (120!) of memory for the "Video Memory Size" then you only get 16 bit display depth (and few errors). Refer to Section 9 (above) in this Tutorial for info about VirtualBox Video Modes. After only a little testing (and messing around) I found that "BT3 Graphics mode (VESA KDE)" was the only true graphics mode that works. You can use the "Compviz" modes if you don't want to use X11 and the GUI. Continued in Part 3. |
|
||||
|
Part 3:
29.): You can install software on Backtrack 3 and save 'Snapshots' to save your place or follow another tutorial about making any changes 'sticky' to preserve your work between boots. Go back to your "Settings" and change the "Radio Button" to finish using the Backtrack 3 installation .ISO image on your HD. 30.): See these threads for info on copying the CD/DVD-ROM .ISO image to VirtualBox's virtual HD drives so you can make changes and update your software without resorting to Snapshots to make things sticky. How to install backtrack 3 final from the shell hxxp://forums.remote-exploit.org/showthread.php?t=14751 Install BT3 live onto flash, save changes, with compiz hxxp://forums.remote-exploit.org/showthread.php?t=14812 TUTORIAL: live install with changes, swap and data partitions hxxp://forums.remote-exploit.org/showthread.php?t=7844 How to install BT3Final onto external USB HDD - Solve the Kernel Panic hxxp://forums.remote-exploit.org/showthread.php?t=16593 I mainly used the fourth Tutorial (and modified the commands from the above suggestions to suit a Virtual HD with Backtrack 3, instead of a USB Drive with BT2). I then went into VirtualBox's "Settings", "Details", "CD/DVD-ROM" settings. I unchecked "Mount CD/DVD-ROM" to unmounted the "bt3final_usb.iso" file and made the first virtual HD the boot drive, upon rebooting all changes were sticky. Use "fdisk /dev/hda" to make your first partition (boot) 1.5GB, your swap 1GB and use the rest for the root (using an 8GB HD). You can type "p" in fdisk and it should print a table as shown below (use "m" as needed, and don't forget to "w"rite). You may prefer to use cfdisk instead of fdisk as it is easier to use and may have fewer bugs. Code:
bt ~ # fdisk -l /dev/hda Disk /dev/hda: 8589 MB, 8589934592 bytes 16 heads, 63 sectors/track, 16644 cylinders Units = cylinders of 1008 * 512 = 516096 bytes Device Boot Start End Blocks Id System /dev/hda1 * 1 2906 1464592+ 83 Linux /dev/hda2 2907 4844 976752 82 Linux swap /dev/hda3 4845 16644 5947200 83 Linux You will now type the following to get setup (thanks to goon123 in thread 16593): Code:
bt ~ # mkswap /dev/hda2
bt ~ # swapon /dev/hda2
bt ~ # mkdir /mnt/backtrack
bt ~ # mount /dev/hda3 /mnt/backtrack/
bt ~ # mkdir /mnt/backtrack/boot
bt ~ # mount /dev/hda1 /mnt/backtrack/boot/
bt ~ # cp --preserve -R /{bin,dev,home,pentest,root,usr,etc,lib,opt,sbin,var} /mnt/backtrack/
bt ~ # mkdir /mnt/backtrack/{mnt,proc,sys,tmp}
bt ~ # mount --bind /dev/ /mnt/backtrack/dev/
bt ~ # mount -t proc proc /mnt/backtrack/proc/
bt ~ # cp /boot/vmlinuz /mnt/backtrack/boot/
bt ~ # chroot /mnt/backtrack/ /bin/bash
bt ~ # nano /etc/lilo.conf
suggested values: "vga=ask" (gives a menu), "vga=normal" (default), or use one of these: Code:
640x480 800x600 1024x768 1280x1024 32K 784 787 790 793 64K 785 788 791 794 16M 786 789 792 795 Code:
# Start LILO global section lba32 boot /dev/hda prompt timeout = 60 change-rules reset compact vga = 792 # End LILO global section # Linux bootable partition config begins image = /boot/vmlinuz root = /dev/hda3 label = Backtrack3 append = ”rootdelay=10” # Linux bootable partition config ends The "BT3 Graphics mode (VESA KDE)" command line is: Code:
/boot/vmlinuz vga=0x317 initrd=/boot/initrd.gz ramdisk_size=6666 root=/dev/ram0 rw autoexec=kdm Save that and then execute lilo (I like to use the very verbose flag) bt ~ # lilo -v -v Exit your chroot enviorment and your Konsole shell. bt ~ # exit bt ~ # exit If you ever wish to edit your lilo.conf after the above create and copy procedure you can return to where you were by using these commands instead of the above procedure. First use the CD/DVD-ROM boot disk to start Backtrack 3 and then enter these commands to adjust your mounts: Code:
bt ~ # umount /dev/hda1 bt ~ # umount /dev/hda3 bt ~ # swapoff -a bt ~ # mkdir /mnt/backtrack bt ~ # mount /dev/hda3 /mnt/backtrack bt ~ # mount /dev/hda1 /mnt/backtrack/boot bt ~ # mount --bind /dev/ /mnt/backtrack/dev/ bt ~ # mount -t proc proc /mnt/backtrack/proc/ bt ~ # chroot /mnt/backtrack/ /bin/bash bt ~ # nano /etc/lilo.conf bt ~ # lilo -v Use the "Start" button "Log Out", "Turn Off Computer" to exit Backtrack3. In VirtualBox's "Settings", "Details", "CD/DVD-ROM" pane you can click on the "Mount CD/DVD-ROM Drive" to disengage the "bt3final_usb.iso" from the CD/DVD-ROM drive or better still go to "Settings", "General", "Advanced", "Boot Order" and click on "Hard Disk" and the "Up Arrow" (to the right) to make the HD boot first. Click "OK" and now click the green "Start" right-arrow to restart Backtrack 3 (from the VHD). Ensure that Backtrack 3 is working and use the "Start" button to "Log Out"," 31.): In some Wireless Network Drivers you are able to use Bridging, and some you can not. If you have a very new computer then, when configuring VirtualBox, you are able to set on the "General", "Settings", "Advanced" tab the "Extended Features", "Enable VT-x/AMD-V" checkbox. With this set you can use VT-d to directly access your Wireless Network card. My computer is new, but not that new so I had to use Bridging, here is what I did: In Windows open the "Network Connections", locate and click on both your "Wireless Network Adapter" and your "VirtualBox TAP Adapter", now right-click and choose Bridge. 32.): When you have everything correctly installed on your HD you can add the Virtual Tools. In the VirtualBox menu "Devices" there is an entry called "Install Guest Additions...". To install these tools go to the VirtualBox Toolbar (bottom right of the window) and right-click on the CD/DVD-ROM, choose "Unmount CD/DVD-ROM" to unmount the Backtrack 3 installation CD/DVD-ROM. Now select "Install Guest Additions..." and it will appear on your Backtrack 3 Desktop as a CD Icon. The file is called VBOXADDITIONS_2.0.2_36486. In order to mount this file you will need to open Konsole and create a new directory called /mnt/hdc first. When you have it mounted in your Konsole type this and then reboot: Code:
cd /mnt/hdc ./VBoxLinuxAdditions-x86.run echo 98vboxadd-xclient > ~/.xinitrc reboot 33.): Start Backtrack 3 in VirtualBox and type "ifconfig", notice that you have "eth1" and "lo". If you can use VT-d then you might have your Wireless Networking already working but for the rest of use that must use Bridging you can enable Promiscuous mode on the Bridge: Code:
ifconfig eth0 up ip link set dev eth0 promisc on Notice your HWaddr, it should be the MAC of your "Wireless Network Adapter". When following tips given you will use eth0 instead of wifi0 or ath0 and likely will need to tweak the tips a bit to get everything working to the extent it is possible. You will find that some programs only work if they can detect a "Wireless Network Adapter". Wireshark works but you might want to filter out "STP" packets. You can also use any of Backtrack 3's tools on capture files saved from OmniPeek (you can use Wireshark to read OmniPeek ".pkt" files and save them to ".cap" format. 34.): Anyone with "mod" privs. is welcome to edit the above info and fix what needs fixing. This Tutorial is complete but I might come back to edit any corrections that are needed. ![]() Nokii |
|
|||
|
I've done everything as you said (except for making the virtual disk a static size) and everything looks cool... I get the boot option menu, but under every normal boot option (yes, even VESA KDE) I get a black screen with the mouse cursor blinking on and off. Kind of like when you run BT3 as a live cd: the cursor starts out as an outlined "x" and then switches to a normal mouse pointer. Mine keeps blinking between the x and a pointer. Nothing else happens. I am using an Ubuntu host (with compiz- do I need to turn off my schweet window effects?).
|
|
|||
|
Has anyone been able to mount the shared folders in Virtualbox?
The additions are installed, im using Virtualbox 2.04 on a XP host and the target folder is on a ntfs partition. I even updated ntfs-3g to the latest just in case but didnt help. I get the "no such device". A grep of "vboxsf" is succesfull. Any ideas? Thx Actually: vboxsf seems not to be loaded. lsmod only shows vbxadd. Modprobing of vboxsf is not succesfull (no such module). The file mount.vboxsf is present in /sbin. Last edited by smarty2; 11-02-2008 at 02:23 AM. |
|
|||
|
Here is what I did to get sharedfolders working.
Add this line to /etc/rc.d/rc.modules: Code:
/sbin/modprobe vboxvfs Make sure the following two files are in the /root/.kde/Autostart folder: Code:
VBoxClient -> /usr/bin/VBoxClient mountvboxfs.sh The second is a script you create which contains the mount command to the shared folder: Code:
mount -t vboxsf SharedFolder /mnt/sharedfolder Make sure both files have execute permissions. I could be mistaken, but I believe you have to use this script rather than an entry in the /etc/fstab file because the vbox client additions aren't loaded at the point in the startup process where the system mounts all the drives. -- Tom |
|
||||
|
Quote:
with all the fragmentation. 1b - I have a few troubles with the Video also. Try what "must" work - VGA, then save your xorg.conf and try a "fancier" mode. I am more familiar with "Debian" than "Ubuntu" (similar but _not_ identical). You might try using "Aptitude" to get the "Debian Patched" version of VirtualBox which might have some patches that would make it work better on your system. Don't forget to install the "VirtualBox Tools". 1c - see 1b answer. 2 - See other posts for installing BT3 to USB. I'd recommend "getting it working" (for your system) before you try anything else (USB installing). Don't forget to install the VBox Tools. Check the VB website for help with VB. What "StriperTS" says looks OK. Thanks. Shop around, you can get an 8GB stick for cheap and use the extra space for more tools or to save capture files. |
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|