
Jul 2, 2010
BackTrack ISO Kernel 2.6.34 Upgrade
BackTrack ISO Kernel 2.6.34 Upgrade
Last night we moved a new kernel package (2.6.34) out of the testing repositories, and into the official ones. This kernel update marks a huge improvement in hardware support and desktop responsiveness. In addition to the kernel, we have added several external wireless drivers – madwifi-ng (ath_pci), broadcom-sta (wl, no injection), r8187 drivers and rt73 k2wrlz drivers.
The following guide will walk you through a BackTrack 4 Final ISO update, which will include the new kernel into your build. The original customise script neglected to take into account kernel changes. Ideally, the ISO update process should be done from within an already updated BackTrack installation.
[cc lang=”bash”]
apt-get update && apt-get dist-upgrade
cd ~ && mkdir ISO && cd ISO
wget offsec.com/bt4.sh && chmod 755 bt4.sh
[/cc]
Then move the bt4-final.iso into the ISO directory you just created and run the customization script. This will bring you into the edited ISO’s chroot environment.
[cc lang=”bash”]
mv /location/of/bt4-final.iso ~/ISO/
./bt4.sh
##############################################################
#[*] BackTrack 4 Final customisation script
#[*] Setting up the build environment…
#[*] Copying over files, please wait …
[/cc]
Once the copy is complete and you are entered into the chroot environment, update and upgrade the chrooted environment.
[cc lang=”bash”]
##############################################################
# [*] Once you have finished your modifications, type “exit”
##############################################################
apt-get update && apt-get dist-upgrade
[/cc]
The upgrade will take a while – you are essentially downloading all the package updates we released since BT4 final. This update will include the new 2.6.34 kernel. Once the upgrade is done, clean out all downloaded deb files and download additional drivers and kernel sources.
[cc lang=”bash”]
apt-get install madwifi-drivers broadcom-sta r8187-drivers linux-source-2.6.34
apt-get clean
[/cc]
Now prepare your kernel sources:
[cc lang=”bash”]
apt-get install madwifi-drivers broadcom-sta r8187-drivers linux-source-2.6.34
depmod -a
apt-get clean
cd /usr/src/
rm -rf linux linux-source-2.6.30.9*
rm -rf /lib/modules/2.6.30.9/
tar jxpf linux-source-2.6.34.tar.bz2
ln -s linux-source-2.6.34 linux
cd linux
cp /boot/config-2.6.34 .config
ln -s /usr/src/linux /lib/modules/2.6.34/build
make scripts && make prepare
apt-get clean && updatedb && history -c
[/cc]
At this point you can modify, add or remove any other tools you wish. When done, exit the chroot by typing:
[cc lang=”bash”]
exit
# [*] Exited the build environemnt, unmounting images.
# [*] Building manifest
# Removing any system startup links for /etc/init.d/inetutils-inetd …
# …
# Max brk space used 0
# 796020 extents written (1554 MB)
# [*] Your modified BT4 is in /root/ISO/bt4-mod.iso
##############################################################
[/cc]
The updated iso will take a while to build, and will be located in the ISO directory (bt4-mod.iso). If you have any issues with the script, post a comment or catch us in the backtrack IRC channel.
Stay in the know: Become an OffSec Insider
Get the latest updates about resources, events & promotions from OffSec!
Latest from OffSec

Research & Tutorials
CVE-2025-29306 – Unauthenticated Remote Code Execution in FoxCMS v1.2.5 via Unserialize Injection
Discover details about CVE-2025-29306, a critical RCE vulnerability in FoxCMS 1.2.5. Learn how unsafe use of PHP’s unserialize() function enables remote attackers to execute arbitrary system commands.
Jul 3, 2025
2 min read

Research & Tutorials
CVE-2024-39914 – Unauthenticated Command Injection in FOG Project’s export.php
Discover details about CVE-2024-39914, a critical unauthenticated command injection vulnerability in FOG Project ≤ 1.5.10.34. Learn how attackers can exploit export.php to execute system commands or deploy persistent webshells.
Jun 26, 2025
2 min read

OffSec News
What It Really Means to “Try Harder”
Discover how OffSec’s “Try Harder” mantra evolved into a mindset, and how it helps learners build grit, creativity, and real-world problem-solving skills.
Jun 23, 2025
7 min read