OpenWrt x86 64 - jhu-information-security-institute/NwSec GitHub Wiki

  • Download latest point release live image for Kali here
  • Boot the system without an OS using the Kali live image
  • Download into the VM the latest generic-ext4-combined.img.gz for PC BIOS systems here
    • Disk image uses a single read-write ext4 partition without a read-only squashfs root filesystem. As a result, the root partition can be expanded to fill a large drive (e.g. SSD/SATA/mSATA/SATA DOM/NVMe/etc).
  • Unpack image $ gunzip openwrt-*.img.gz
  • Identify disk to replace sdX in the following command below (likely to be sda) $ lsblk
  • Use dd to write image to /dev/sdX $ sudo dd if=openwrt-22.03.3-x86-64-generic-ext4-combined.img of=/dev/sda bs=1M
  • Use gparted to expand rootfs on partition 2 (e.g., /dev/sda2)
  • Boot the OpenWrt image
  • Setup networking for it by editing "config interface 'lan' in /etc/config/network
option device 'br-lan'
option proto 'static'
option ipaddr '<REPLACEME>'
option netmask '255.255.255.0'
option gateway '<REPLACEME>'
list dns '<REPLACEME>'
list dns '8.8.8.8'
list dns '1.1.1.1'
  • Reload network settings # service network reload
  • Update # opkg update
  • Set the root password using passwd
  • Open a browser from another system on the same network and open the OpenWrt Luci interface by going to the IP address of the VM

References

⚠️ **GitHub.com Fallback** ⚠️