A Logo

Feel free to include my content in your page via my
RSS feed

Help Irongeek.com pay for
bandwidth and research equipment:

Subscribestar or Patreon

Search Irongeek.com:

Affiliates:
Irongeek Button
Social-engineer-training Button

Help Irongeek.com pay for bandwidth and research equipment:

paypalpixle


Kali Linux Live Boot USB Flash Drive - Jeremy Druin (Hacking Illustrated Series InfoSec Tutorial Videos)

Kali Linux Live Boot USB Flash Drive - Jeremy Druin

Jeremy Druin (@webpwnize) gave the following presentation on creating a persistent Kali Linux thumbdrive install for the June 2013 meeting of the Kentuckiana ISSA.

 

Download:
https://archive.org/details/KaliLinuxLiveBootUSBFlashDriveJeremyDruinwebpwnized

 

Links:
4. Live project homepage: http://live.debian.net/
5. Live project manual: http://live.debian.net/manual/

Commands:
1. cp command (linux): dd if=kali.iso of=/dev/sdb bs=512k
2. pv command (linux): pv -p -t -b -e -r -b kali.iso > /dev/sdb (Shows progress - install with "apt-get install pv")

What is Kali?
What is a live USB?
Assumptions:
1. Enough space on USB device?
2. USB device is bootable?
3. Host allows boot from USB device?
4. Have access to boot config in host BIOS?
Steps:
1. Insert USB
2. Have USB recognized as device (Note: Virtual box will take more effort)
3. Use dmesg to verify USB device label.
4. Optional: Use gparted to remove existing partitions from USB
5. Copy kali.iso to USB
6. Use gparted to create new partition in unused space (give partition the label "persistence")
7. Create persistence.conf file in root of persistence partition
A "custom persistent mount" has the format: DIR [OPTION]
A custom persistent mount creates a mirror of DIR called the SOURCE directory
DIR must be an absolute path
cannot contain white spaces or the special . and .. path  components
cannot be /live  (or  any  of  its  sub-directories)
options are comma separated
bind-mount is default
union-mount is an option
"source=PATH" stores the persistence changes into PATH on the  persistence media
on conflict, last option wins
source directory created automatically
source directory bootstrapped  by  copying  the  contents of the DIR into its source (except union, link)
All persistence volumes mounted in /live/persistence/<device name>
8. Enter persistence as a boot parameter when booting

 Demos:
1. boot live
2. isolinux menus and append options
3. changes to persistence volume with union
4. changes to persistence volume with bind
5. /live/persistence mount
6. How to do this in windows?

Printable version of this article

15 most recent posts on Irongeek.com:


If you would like to republish one of the articles from this site on your webpage or print journal please contact IronGeek.

Copyright 2020, IronGeek
Louisville / Kentuckiana Information Security Enthusiast