Yea, I know its the edgy kid distro, just trying some stuff with it on live USB. I’m not doing this on my Debian install to save time

I’ve been trying to use wifite to pentest my home network but I’m running into an issue. I noticed my iso does not have the packages hcxtools.

Tried installing from terminal but didn’t work and the command from Kali documentation did not work

The error so the following

E: Unable to locate package hcxtools

The command leading to it was

Sudo apt install hcxtools.

What am I doing wrong?

  • KISSmyOS@lemmy.world
    link
    fedilink
    arrow-up
    4
    ·
    edit-2
    1 year ago

    First, make sure your VM has access to the internet, for example with ping 8.8.8.8
    Then do sudo nano /etc/apt/sources.list

    The file should include a line that is exactly this:
    deb http://http.kali.org/kali kali-rolling main contrib non-free non-free-firmware
    (or it could have kali-last-snapshot in place of kali-rolling)
    If not, replace everything in the file with the line above and save the file with Ctrl+O, then close the editor with Ctrl+X
    Then run:

    sudo apt update   
    sudo apt dist-upgrade   
    sudo apt install hcxtools
    
  • Moobythegoldensock@lemm.ee
    link
    fedilink
    arrow-up
    4
    ·
    edit-2
    1 year ago

    Did you try apt update and apt search? Is it in the repositories you’re searching? Do you need to add a repository and/or build it from GitHub?

    The reason Kali is a meme is because it’s intended for professionals but often used by newbies, and you’re asking a rather basic question about package management.

    • Bicyclejohn@lemmy.mlOP
      link
      fedilink
      arrow-up
      1
      ·
      1 year ago

      Will run apt update, just didn’t think to was needed cos it was a new iso.

      I’m not very technical. Not good with terminals

      • Moobythegoldensock@lemm.ee
        link
        fedilink
        arrow-up
        1
        ·
        1 year ago

        You’re running a live image, so the list of packages in the external repositories may be blank depending on how Kali does its defaults. Having apt fetch a package list is a very easy first troubleshooting step.

  • Nibodhika@lemmy.world
    link
    fedilink
    arrow-up
    2
    ·
    1 year ago

    You need to run sudo apt update before trying to install things. Notice that you’ll need to do this every time unless you installed Kali with some permanent storage. Which is why it’s usually a better idea to just use your day-to-day Linux box for stuff, Kali is for when you want to not leave traces and not allow any backtrack to get to your actual system, for most non red team related stuff you don’t need Kali.