= 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 {{{#!highlight bash # output /var/log/messages when pen was attached # 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 # 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) # Jul 6 18:17:14 nb200 kernel: [10391.687845] sd 4:0:0:0: [sdb] Write Protect is off # Jul 6 18:17:14 nb200 kernel: [10391.715891] sdb: sdb1 # Jul 6 18:17:14 nb200 kernel: [10391.722619] sd 4:0:0:0: [sdb] Attached SCSI removable disk dd if=kali-linux-light-2019.2-amd64.iso of=/dev/sdb bs=512k # 1902+1 records in # 1902+1 records out # 997208064 bytes (997 MB, 951 MiB) copied, 259.342 s, 3.8 MB/s }}} == Make USB live persistent == * Insert pen * fdisk -l {{{#!highlight bash end=7gb read start _ < <(du -bcm kali-linux-light-2019.2-amd64.iso | tail -1); echo $start parted /dev/sdb mkpart primary $start $end #Warning: You requested a partition from 952MB to 7000MB (sectors #1859375..13671875). #The closest location we can manage is 997MB to 7000MB (sectors #1947072..13671875). #Is this still acceptable to you? #Yes/No? Yes #Warning: The resulting partition is not properly aligned for best performance. #Ignore/Cancel? Ignore #Information: You may need to update /etc/fstab. #create an ext3 file system mkfs.ext3 -L persistence /dev/sdb3 e2label /dev/sdb3 persistence # create the configuration file to enable persistence mkdir -p /mnt/my_usb mount /dev/sdb3 /mnt/my_usb echo "/ union" > /mnt/my_usb/persistence.conf umount /dev/sdb3 }}} * Boot using Esc/F9 in HP laptop (legacy) * Choose persistence option * Run set xkbmap pt to have portuguese keyboard