MoinMoin Logo
  • Comments
  • Immutable Page
  • Menu
    • Navigation
    • RecentChanges
    • FindPage
    • Local Site Map
    • Help
    • HelpContents
    • HelpOnMoinWikiSyntax
    • Display
    • Attachments
    • Info
    • Raw Text
    • Print View
    • Edit
    • Load
    • Save
  • Login

Navigation

  • Start
  • Sitemap
Revision 4 as of 2019-07-06 19:07:53
  • kali

kali

Linux distribution debian based focosued on security.

  • https://docs.kali.org/introduction/what-is-kali-linux

Build bootable USB live

  • Get https://archive-4.kali.org/kali-images/kali-2019.2/kali-linux-light-2019.2-amd64.iso

   1 # output /var/log/messages when pen was attached
   2 # Jul  6 18:17:12 nb200 kernel: [10389.761660] scsi 4:0:0:0: Direct-Access     Philips  USB Flash Drive  PMAP PQ: 0 ANSI: 4
   3 # Jul  6 18:17:14 nb200 kernel: [10391.687146] sd 4:0:0:0: [sdb] 15133248 512-byte logical blocks: (7.75 GB/7.22 GiB)
   4 # Jul  6 18:17:14 nb200 kernel: [10391.687845] sd 4:0:0:0: [sdb] Write Protect is off
   5 # Jul  6 18:17:14 nb200 kernel: [10391.715891]  sdb: sdb1
   6 # Jul  6 18:17:14 nb200 kernel: [10391.722619] sd 4:0:0:0: [sdb] Attached SCSI removable disk
   7 
   8 dd if=kali-linux-light-2019.2-amd64.iso of=/dev/sdb bs=512k
   9 
  10 # 1902+1 records in
  11 # 1902+1 records out
  12 # 997208064 bytes (997 MB, 951 MiB) copied, 259.342 s, 3.8 MB/s
  13 

Make USB live persistent

  • Insert pen
  • fdisk -l

   1 end=7gb
   2 read start _ < <(du -bcm kali-linux-light-2019.2-amd64.iso | tail -1); echo $start
   3 parted /dev/sdb mkpart primary $start $end
   4 
   5 #Warning: You requested a partition from 952MB to 7000MB (sectors
   6 #1859375..13671875).
   7 #The closest location we can manage is 997MB to 7000MB (sectors
   8 #1947072..13671875).
   9 #Is this still acceptable to you?
  10 #Yes/No? Yes                                                               
  11 #Warning: The resulting partition is not properly aligned for best performance.
  12 #Ignore/Cancel? Ignore                                                     
  13 #Information: You may need to update /etc/fstab.
  14 
  15 #create an ext3 file system 
  16 mkfs.ext3 -L persistence /dev/sdb3
  17 e2label /dev/sdb3 persistence
  18 # create the configuration file to enable persistence
  19 mkdir -p /mnt/my_usb
  20 mount /dev/sdb3 /mnt/my_usb
  21 echo "/ union" > /mnt/my_usb/persistence.conf
  22 umount /dev/sdb3
  • MoinMoin Powered
  • Python Powered
  • GPL licensed
  • Valid HTML 4.01