Skip to main content

Dual Booting Slax Linux and BartPE (Windows) from a USB Thumbdrive (UFD)

        While I was researching for my PhreakNIC X presentation on Bart's PE Builder I began to play around with booting it from a USB Thumbdrive (Also know as a USB Flash Drive - UFD).
In the process, I began to wonder if you could dual boot it with Slax Linux to make a very handy recovery system you could carry around in your pocket. I found Thibeact's notes on the 911 CD forums ( http://www.911cd.net/forums//index.php?showtopic=10806&st=220&p=98227&#entry98227 ) and modified them to fit my needs.
        What follows are the basic steps for dual booting Slax Linux and BartPE from a simple USB flash drive. I find this very useful for changing password, removing spyware and doing various other security related tasks. Check out my PhreakNIC presentation before you begin so understand the basics of using Pe Builder (Creating a Windows Live CD for System Recovery and Pen-Testing with Bart's PE Builder) then follow these steps to dual boot it with Slax using a Windows XP system to install everything:
1. First, download, install and run MySlax on your Windows PC. You can obtain MySlax from:
        http://myslax.bonsonno.org/
2. Once you have MySlax running choose the ISO-Default radio button, choose the Slax based ISO you wish to use, click the "Mount" button then hit the "USB Stick" button. You should be able to use any Slax based ISO as your source, including normal SlaxBackTrack or Slast.
3. Click the "Create USB Stick" button, then when the format dialog comes up make sure you choose FAT (not FAT32) and click start. The UFD must be formatted as Fat16 for BartPE to work right in the later steps.
4. Click "Next" and MySlax will being putting the need files to boot Linux onto the UFD (USB Flash Disk). When it finishes confirm its completion by click the "Success" button.
 5. Now would be a good time to make sure you have a valid Pe Build to use. Start Pe Builder, set the media output to none since we won't be building a normal CD ISO, then click the "Build" button.
6. Once PE Builder is done building your system, drop out to a command line, go into your Pe Builder install directory and issue the command "pe2usb.cmd <USB-Drive-Letter>" where <USB-Drive-Letter> is whatever drive letter your UFD is mount as. In my case that's F:.
7. Next, edit syslinux.cfg in the root of your UFD and paste in the following contents:
default vesamenu.c32
prompt 0
timeout 0
F1 splash.txt
F2 splash.cfg
SAY Type "bartpe" for Bart's Pe, or type "slax" for Slax.
DISPLAY syslogo.lss
MENU TITLE Irongeek's Boot UFD
MENU BACKGROUND mascot.png
label slax
menu label Slax
kernel vmlinuz
append max_loop=255 initrd=initrd.gz vga=0x317 maxcpus=1 init=linuxrc load_ramdisk=1 prompt_ramdisk=0 ramdisk_size=4444 root=/dev/ram0 rw

label bartpe
menu label Bart's PE
kernel pe2usb.bss

#label cluster
# kernel vmlinuz
# append max_loop=255 initrd=initrd.gz vga=0x317 maxcpus=1 init=linuxrc load_ramdisk=1 prompt_ramdisk=0 ramdisk_size=4444 root=/dev/ram0 rw

#label btdc
# kernel vmlinuz
# append max_loop=255 initrd=initrd.gz init=linuxrc load_ramdisk=1 prompt_ramdisk=0 ramdisk_size=4444 root=/dev/ram0 rw

#label memtest
# kernel memtest
The syslinux.cfg file tells SysLinux (the boot loader) how you want things set up. I based mine on the BackTrack syslinux.cfg file. Take a look at the SysLinux documentation if you want to change things around. The line "MENU BACKGROUND mascot.png" lets me use the following PNG as my background at the boot prompt:
You may want to copy the above image to the root of your USB drive, or make a PNG of your own to use. As long as it's a 640x480 PNG named mascot.png it should work fine with my syslinux.cfg.
8. Download Bart's mkbt.exe from:  
        http://www.nu2.nu/mkbt/
and place it at the root of your UFD. We will be using this tool later to fix the boot sector of the UFD.
9. Copy pe2usb.bin from the root of your PE Builder install (c:\pebuilder3110a in my case) to the root of your UFD and renamed it to pe2usb.bss. This step is very important, the bss extention must be there  so SysLinux knows what sort of kernel/boot sector it is.
10. While Slax comes with a version of SysLinux, I prefer to download it myself and use a few extra tools to make things prettier. You can download SysLinux from:
http://www.kernel.org/pub/linux/utils/boot/syslinux/
I chose the syslinux-3.31.zip archive. Once you have the archive downloaded extract the files \win32\syslinux.exe and \com32\modules\vesamenu.c32 then place them in the root of your Thumbdrive.
11. Go to a command prompt, change to your UFD's drive letter and then issue the commands:
        mkbt -x pe2usb.bss <USB-Drive-Letter>
        syslinux <USB-Drive-Letter>
as seen in the screen shot below:
12. Now you can reboot the system and try to boot from your thumbdrive. Your BIOS must support booting from USB, so it's won't work on all systems.

        A quick side note, one of the great things about Slax is how easy it it to add extra software.  Just download the modules you want from http://www.slax.org/modules.php and put them in the modules folder on your UFD.

        I hope that this tutorial  was helpful to you. If you think I should make a video on this topic just email me and ask.

Comments

Popular posts from this blog

Сбербанк и дропы с площадки Dark Money, и кто кого?

Крупных открытых площадок в даркнете, специализирующихся именно на покупке-продаже российских банковских данных, обнале и скаме около десятка, самая большая из них – это Dark Money . Здесь есть нальщики, дропы, заливщики, связанный с ними бизнес, здесь льют и налят миллионы, здесь очень много денег, но тебе не стоит пока во все это суваться. Кинуть тут может любой, тут кидали и на десятки миллионов и на десятки рублей. Кидали новички и кидали проверенные люди, закономерности нету. Горячие темы – продажи данных, банковских карт, поиск сотрудников в скам и вербовка сотрудников банков и сотовых операторов, взлом аккаунтов, обнал и советы – какими платежными системы пользоваться, как не попасться милиции при обнале, сколько платить Правому Сектору или патрулю, если попались. Одна из тем – онлайн-интервью с неким сотрудником Сбербанка, который время от времени отвечает на вопросы пользователей площадки об уязвимостях системы банка и дает советы, как улучшить обнальные схемы. Чтобы пользова

Где искать залив на банковский счет или карту?

Есть несколько способов сделать банковский перевод на карту или счет или иначе на слэнге дроповодов это называется "сделать залив на карту " для начала работы вам понадобиться зайти в чей-то чужой уже существующий кабинет интернет-банка, причем не важно какого, банк может быть любым, главное чтобы на счету " холдера " были хоть какие-то деньги для того, чтобы зайти в интернет банк вам понадобится узнать логин и пароль, смотрим видео о том, как их получить для того, чтобы зайти в чужой интернет-банк: хотя конечно, скажу тебе честно, только ты не обижайся, сейчас все нормальные сделки по обналу делают краснопёрые, сидящие в банках, всякие там внедрённые агенты ФСО, Mi6 или CIA, а льют сотрудники крупных телекомов или штатные работники NSA и GCHQ, а всё остальное - это просто лоховство или чистой воды развод на бабло в виде предоплаты

Залив на карту или кто на площадке Darkmoney работает с офшором

Современную мировую экономику без преувеличения можно назвать экономикой офшоров. Ситуаций, в которых использование офшорных юрисдикций для бизнеса коммерчески выгодно, но при этом абсолютно законно, множество. Однако как и любой другой инструмент, офшоры могут использоваться в неправомерных целях. Откровенно обнальные схемы хорошо известны специалистам по внутреннему аудиту, но более изощренные могут быть далеко не столь очевидными. На основе опыта финансовых расследований мы проанализировали наиболее распространенные обнальные схемы, которые строятся на использовании преимуществ офшорных юрисдикций, а также составили список типичных индикаторов для распознавания каждой из них. Уклонение от уплаты налогов Использование офшорных юрисдикций — один из наиболее распространенных и вполне законных способов налоговой оптимизации. Другое дело, когда в налоговых декларациях намеренно не указывают уже полученную прибыль, которая, как правило, скрывается в заокеанских фондах. Существует мно

Как найти реального заливщика

Своего первого реального заливщика, который показал мне как можно скачать деньги в интернет с банковских счетов, я нашел случайно, когда еще трудился в Укртелекоме сменным инженером немного подрабатывая продавая трафик налево , но потом этот человек отошел от дел в связи со слишком уж скользкой ситуацией в данной сфере, и я решил поискать партнера на форумах, разместив рекламу на трёх электронных досках объявлений. Честно говоря поначалу даже был готов сразу закинуть 500 000 гривен в Гарант, но потом призадумался, а стоит ли? Ко мне начал обращаться народ обращается разных категорий 1. Дебильная школота, которая что-то любит повтирать про свою серьезность и просит закинуть 10 000 USD им на Вебмани в качестве аванса  2. Реальные мэны, которые  льют сразу большую сумму по SWIFT  без разговоров про гарантии и прочую шнягу, но после того, как им отдаёшь нал, они сразу пропадают, суть данных действий я так и не понял. зачем пропадать, если всё прошло гладко? 3. Мутные личност

Practical Attacks against BGP routers

Attacking BGP Loki contains a universal BGP module, written in python. It implements the most common used BGP packet and data types and can be used to establish a connection to a BGP speaking peer. Once a connection is established, the tool starts a background thread which sends keep-alive packages to hold the connection established and the published routes valid. To publish BGP routing information the module provides built-in data types which can be merged to the appropriated update statement. Once an update statement is set up it can be send once or multiple times to the connected peer. It is possible to use kernel based MD5 authentication, as described in RFC2385. Another module makes it possible to brute force the used MD5 authentication key. An Example for Injecting IPv4 Routing Information The peer is a Cisco 3750ME with a (pre-attack) routing table looking like this: Loki is then used to inject IPv4 routing information: The first step is to configuring the target IP address, th

Всё больше студенток зарабатывают размещая видео на PornHub

Маше 22 года. На ней спортивные штаны и футболка. Она решила спать с мужчинами гораздо старше ее самой, когда она училась в университете. Свои мысли она выражает спокойно и ясно. " Я люблю секс , - говорит Маша, - и хочу заметить, я хорошо знаю, как им заниматься. Так что найти "папочку" или двух не составило никакого труда". Маша в этом смысле не одинока. Все больше и больше самарских студенток, погребенных под горами долгов, решают найти себе богатого мужчину определенного возраста. Они проводят время с такими "папочками" в обмен на деньги и подарки. "Мой женатый "папочка" давал мне примерно три тысячи за ночь", - говорит Маша. - Его интересовал только секс. Мой разведенный "папочка" давал мне около пяти тысяч рублей на мои расходы".   Будучи студенткой, Маша с трудом сводила концы с концами. "В мой первый год у меня было две работы", - говорит она. "Это было ужасно – я работала в баре, гд