Ethan Chiu My personal blog

Fix for ~Module w1 not found in directory~ for USB Persistence Users

This is a crosspost from my Kali Linux Forum post.

I finally installed my wifi correctly after a week of debugging.

For some reason even after I “apt-update”, “apt-upgrade”, “apt dist-upgrade”, and rebooted, my kernel was not updated. So, basically I downloaded the old 4.3.0 headers and installed them.

Here is some basic information about my perstistence usb drive and how I installed it:

  • 500 GB Hard Drive (Seagate)
  • Installed using most recent (2016.1) kali iso from torrent
  • Drive is persistent
  • I’m running side by side with Mac OSX El Capitan
  • I’m using rEFind as my boot manager
  • I have BCM4360 driver

Tutorial:

  1. Navigate to /etc/apt/list and copy and paste this:
    • deb http://http.kali.org/kali kali-rolling main contrib non-free
    • deb-src http://http.kali.org/kali kali-rolling main contrib non-free
    • deb http://httpredir.debian.org/debian/ jessie main contrib non-free
    • deb http://old.kali.org/kali moto main non-free contrib
  2. run apt-get update
  3. Download from http://ftp.tku.edu.tw/kali/pool/main/l/linux/:
    • linux-headers-4.3.0-kali1-amd64_4.3.3-5kali4_amd64.deb” and “linux-headers-4.3.0-kali1-common_4.3.3-5kali4_amd64.deb
  4. Download from http://http.kali.org/kali/pool/main/l/linux-tools/ , “linux-kbuild-4.3_4.3.1-2kali1_amd64.deb”
  5. Download package gdebi package (both gui and main one) through the package manager
  6. Open up gdebi GUI
  7. Install each package listed above using gdebi GUI, starting with the “linux-kbuild” package, followed by the “linux_headers_common”, then the “linux_headers”
  8. Ok, here’s the important part: DO NOT RUN “apt-update” right after!!!
  9. Instead, run: “apt-get install broadcom-sta-dkms”
  10. Run: “modprobe -r b44 b43 b43legacy ssb brcmsmac”
  11. Run: “modprobe wl”
  12. Run: “reboot”
  13. And boom! Your wifi should be working!

If you want to see how I installed my live persistence usb, just look for my last post!

Hopes this helps! I’m sure relieved that I finally figured it out . It took me more than 80 hours to figure it out after looking all over google, stackoverfow, reddit, and kali forums .

Here’s my rambling about my debugging problems if you are interested: The problem with kali’s usb persistence is that the kernel seems to not be able to upgrade, even after “apt-update”, “apt-upgrade”, “apt dist-upgrade”.(when I ran “uname -r” it returned 4.3.0 instead of 4.5.0). Still, when I ran “apt-get install linux-headers-$(uname -r|sed ‘s,[^-]-[^-]-,,’) broadcom-sta-dkms” I got drivers for 4.5.0… weird…

So, yeah I tried the debian broadcom “wl” tutorial and had no luck

Tutorial for Creating a Live Persistence USB on Mac OSX (El Capitan)

This is a crosspost from my Kali Linux Forums post

Hi everyone!

Unfortunately my first post about my sucess with using Mac Linux Loader was short lived . I had a lot of issues with memory storage and wifi. So, I started over from scratch. Now after a whole week of trying many if not all tutorials, I have finally found a way to make live usb persistence work on OSX . So, I thought I’d share it with the Kali Forum to see if anyone else is successful with this way.

Here are the following methods which did not work for me (I’m using a Macbook air 2015 with El Calpitan):

  • Using Mac Linux Loader didn’t work for persistence for some reason
  • Using Ubuntu to create live usb and partition.
  • Using Windows to create live usb and partition.

Here is the hardware/software I used to make this work:

So, here is a list of steps I followed for creating the USB Persistence:

  1. Downloaded 64GB Kali image from official website with torrent. Then verified the SHA1SUM.
  2. I followed this: http://docs.kali.org/downloading/kal…ve-usb-install
  3. Disabled SIP by booting OSX in recovery (Hold Command + R while rebooting). When “OS X Utilities” shows up, I loaded Terminal up and typed: ` csrutil disable; reboot `
  4. I installed rEFInd and ran it.
  5. I opened up Finder and navigate to the boot folder and changed syslinux.cfg so that instead of vesamenu.c32 the default is menu.c32.
  6. Rebooted computer.
  7. rEFInd boot screen loads up and I choose the Kali EFI drive
  8. I enter Kali Live.
  9. Then I type in the terminal: gparted
  10. I saw /dev/sda1 and /dev/sda2 with Kali Live. I pressed “unallocated space” and pressed “new” (under partition).
  11. I labeled the partition “persistence” and chose “ext4” as the file system.
  12. I then typed these commands:
    • mkdir -p /mnt/my_usb
    • mount /dev/sda3 /mnt/my_usb
    • echo “/ union” > /mnt/my_usb/persistence.conf
    • umount /dev/sda3
  13. I rebooted my computer and loaded into “Live USB Persistence”. I gedited a file on the desktop and rebooted the computer again to see if it worked. And Voila! It saved!

Here is a list of steps I followed for installing the WIFI:

  1. edited etc/apt/sources.list so that only this:
    • deb http://http.kali.org/kali kali-rolling main contrib non-free appeared
  2. Typed
    • apt-get update && apt-get dist-upgrade -y
  3. Rebooted computer
  4. Typed:
    • apt-get install linux-headers-$(uname -r sed ‘s,[^-]-[^-]-,,’) broadcom-sta-dkms
    • modprobe -r b44 b43 b43legacy ssb brcmsmac
    • modprobe wl
  5. Then WiFI worked!

Hopes this helps for the struggling OSX users! I will try to update this post with all my sources after I find them all!

EDIT: WIFI DOES NOT WORK NOW BECAUSE OF KALI ROLLING. SEE MY OTHER TUTORIAL TO INSTALL WIFI CORRECTLY ON USB PERSISTENCE!