Page 1 of 4 123 ... LastLast
Results 1 to 10 of 35

Thread: SOLUTION: Kali Linux on Raspberry Pi Zero W with bluetooth and wifi support

  1. #1
    Senior Member
    Join Date
    Nov 2015
    Location
    Australia
    Posts
    128

    Lightbulb SOLUTION: Kali Linux on Raspberry Pi Zero W with bluetooth and wifi support

    Hi all,

    I've updated the Re4son-Kernel to support the new Raspberry Pi Zero W with onboard bluetooth and wifi.

    There is now one kernel package that provides support for:

    Raspberry Pi 1
    Raspberry Pi 2
    Raspberry Pi 3 with onboard wifi and bluetooth
    Raspberry Pi Zero
    Raspberry Pi Zero W with onboard wifi and bluetooth

    Highlights:

    - Based on 4.4.50 kernel sources
    - Support for all common TFT screens
    - Support for built-in wifi and bluetooth
    - Ethernet gadget support
    - Nexmon drivers with installation instruction
    - Wifi injection patch

    The package, installation guide and unofficial kali images with the re4son-kernel already installed are available here:

    https://www.whitedome.com.au/re4son/re4son-kernel

    Happy hacking,
    Re4son
    Last edited by re4son; 2017-04-02 at 02:51 AM.
    ----------------------------------------
    Check out "Sticky Fingers Kali-Pi":
    https://whitedome.com.au/kali-pi

    Now with mana-toolkit and more goodies!

  2. #2
    Junior Member
    Join Date
    Sep 2015
    Posts
    4
    Awesome Thx!

  3. #3
    Junior Member
    Join Date
    Apr 2017
    Posts
    1
    Hey thanks for creating this build. I'm surprised that Kali.org haven't update their Raspberry Kali image to ensure that it will work on Zero.

    I would like to configure Zero W using headless setup and is automated to:
    1) persistence boot into CLI with an option to start GUI on-demand using startx. This due to laggy GUI.
    2) enable SSH at boot
    3) enable VNC at boot
    4) auto connect by WiFi to a known network at boot
    5) enable on-demand remote access to Zero W outside of local network

    What do I need to do to achieve all of the above objectives? Thanks!

  4. #4
    Senior Member
    Join Date
    Nov 2015
    Location
    Australia
    Posts
    128
    Best to use the Sticky Fingers image, it allows for all of these out of the box:

    1) In Sticky Fingers Kali-Pi, run
    Code:
    /usr/local/src/re4son_kali-pi-tft_kernel_4.*/re4son-pi-tft-setup -b cli
    2) SSH is enabled by default
    3)
    Code:
    sudo wget -O /lib/systemd/system/vncserver@.service https://github.com/Re4son/vncservice/raw/master/vncserver@.service
    sudo systemctl enable vncserver@1.service && sudo systemctl start vncserver@1.service
    Note that vnc restricts access to requests from localhost only, you should tunnel your vnc traffic through ssh as described here: https://whitedome.com.au/re4son/topic/vnc/ (and then you might as well just start "vncserver" in the terminal window of your ssh session)
    4) disable network-manager, configure /etc/wpa_supplicant.conf and /etc/network/interfaces: https://whitedome.com.au/re4son/re4son-kernel/#Wifi
    5) As in a wifi AP?
    Last edited by re4son; 2017-04-10 at 05:06 AM.
    ----------------------------------------
    Check out "Sticky Fingers Kali-Pi":
    https://whitedome.com.au/kali-pi

    Now with mana-toolkit and more goodies!

  5. #5
    Junior Member
    Join Date
    Apr 2017
    Posts
    5
    Wow, thanks. I ordered a Zero yesterday and wondered how that would be done on it.

    And the fact that you built in TFT support is, well, awesome. I just picked up an Adafruit one for a Pi 3...

  6. #6
    Junior Member
    Join Date
    Mar 2013
    Posts
    6
    does stickyfingers have Ethernet gadget support out of the box for pi 0 w? tried copying img over to sd card with win32imager and booted but no new network device

  7. #7
    Senior Member
    Join Date
    Nov 2015
    Location
    Australia
    Posts
    128
    It's supported but must be enabled.
    After imaging the card, just leave it in your PC and edit the following two files in the /boot partition:

    – cmdline.txt: Add “modules-load=dwc2,g_ether” after “rootwait”
    – config.txt: Add “dtoverlay=dwc2“

    You can also create an empty file called "avahi" in /boot if you would like to enable avahi name service. With that you can ssh into "kali-pi.local".
    Otherwise just do a ping sweep over 192.168.137.0/24

    Hope that helps.
    ----------------------------------------
    Check out "Sticky Fingers Kali-Pi":
    https://whitedome.com.au/kali-pi

    Now with mana-toolkit and more goodies!

  8. #8
    Junior Member
    Join Date
    Mar 2013
    Posts
    6
    gotcha wasnt sure if it was automatically on the img
    will try to redo the sd card tomorrow to test with an osoyoo lcd


    Edit: mounting it I dont see config.txt, i tried creating one and didnt work , also tried copying a default one from raspian that had text already adding text and still not pulling up an IP from DHCP when the rdnis device is up
    Last edited by illwill; 2017-05-03 at 02:39 PM.

  9. #9
    Senior Member
    Join Date
    Nov 2015
    Location
    Australia
    Posts
    128
    Good point with the config.txt. Just create a blank one and add that one line.
    Windows is a bit moody when it comes to gadgets. I religiously stick to the following order and it's always worked for me:

    Disable ICS
    Attach gadget
    Wait a few minutes
    Enable ICS
    Wait a few minutes
    ping -4 kali-pi.local

    If you don't get a reply, just wait a few minutes and ping again.

    Hope that helps
    ----------------------------------------
    Check out "Sticky Fingers Kali-Pi":
    https://whitedome.com.au/kali-pi

    Now with mana-toolkit and more goodies!

  10. #10
    Junior Member
    Join Date
    Jun 2017
    Posts
    1
    Hi, Re4son you wrote you include nexmon driver in new kernel, how i can enable this driver in pi0w on Kali-pi 4.4.50-Re4son+ armv61, because i have many error if i follow your instruction( I think it's because your kernel don't have raspberrypi-kernel-headers

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •