![]() |
HowTo: Hashcat and hcxtools on Arch Linux Live USB - Printable Version +- hashcat Forum (https://hashcat.net/forum) +-- Forum: Support (https://hashcat.net/forum/forum-3.html) +--- Forum: hashcat (https://hashcat.net/forum/forum-45.html) +--- Thread: HowTo: Hashcat and hcxtools on Arch Linux Live USB (/thread-11349.html) |
HowTo: Hashcat and hcxtools on Arch Linux Live USB - v71221 - 03-19-2023 Hi, there! How to run Hashcat v6.2.6 on Arch Live USB? See below for details, an Internet connection is required. My thanks to ZerBea, his tools inspired me to learn Arch. This post is a continuation of my previous post https://hashcat.net/forum/thread-10548.html Use at your own risk, corrections and improvements are welcome. My main OS is still Windows. I use a Live USB to boot and run Arch. https://en.wikipedia.org/wiki/Live_USB My notebook has an Intel Celeron CPU. Be advised, notebooks are generally not suitable for hashcat. https://hashcat.net/forum/thread-4160.html https://hashcat.net/forum/thread-10788.html Download Arch Linux image (currently the latest version is archlinux-2023.03.01-x86_64.iso) https://archlinux.org/download/ Create a bootable USB flash drive (Live USB) https://wiki.archlinux.org/title/USB_flash_installation_medium I prefer Rufus in ISO image mode. Download the latest hashcat. https://hashcat.net/files/hashcat-6.2.6.7z Extract this archive to folder hashcat-6.2.6 Copy this folder to USB flash drive. Copy also three scripts: pre.sh connecting to wifi, preparing to run the graphical user interface (GUI) hcx.sh installing hcxdumptool and hcxtools hcat.sh installing the software needed to run hashcat on my Intel CPU Edit pre.sh Enter your favorite Arch mirror, wireless device, SSID and passphrase, timezone. Keep in mind, the GUI is just for user convenience. Hashcat, hcxdumptool and hcxtools do not need GUI. Use CLI instead of GUI to save memory and CPU cycles. Boot from USB flash drive. Then check which device corresponds to flash drive. lsblk -f Usually it is sdb1 mount -m /dev/sdb1 /mnt/sdb1 /mnt/sdb1/pre.sh After pre.sh is finished, run hcx.sh or hcat.sh To run the GUI as non-root, switch to tty2 and run from there: Ctrl + Alt + F2 startx Main key combinations of i3 (a tiling window manager) mod + Shift + e to exit i3 mod + Enter to open terminal mod + d to open dmenu mod + 1 to switch to 1st workspace mod + 2 to switch to 2nd workspace mod is the Win key or the Alt key https://i3wm.org/docs/userguide.html#_default_keybindings https://i3wm.org/docs/refcard.html https://wiki.archlinux.org/title/i3 Code: pre.sh Code: hcx.sh Code: hcat.sh RE: HowTo: Hashcat and hcxtools on Arch Linux Live USB - marc1n - 03-19-2023 Ok but is it possible to make the NVIDIA GPU work too? RE: HowTo: Hashcat and hcxtools on Arch Linux Live USB - ZerBea - 03-19-2023 On Arch Linux hashcat, hcxdumptool and hcxtools are running out of the box. They are part of the repository: https://archlinux.org/packages/extra/x86_64/nvidia/ https://archlinux.org/packages/community/x86_64/cuda/ https://archlinux.org/packages/community/x86_64/hashcat/ https://archlinux.org/packages/community/x86_64/hcxdumptool/ https://archlinux.org/packages/community/x86_64/hcxtools/ Unfortunately there is a race condition between latest CUDAupdate and current NVIDIA driver) regarding CUDA 12.1, because the version inside the repository doesn't match to the driver inside the repository: https://bugs.archlinux.org/task/77800 BTW: I suggest to test hcxlabtool. Mostly everything is refactored, e.g.: moved from WIRELESS EXTENSIONS to NL80211) get benefit of active monitor RE: HowTo: Hashcat and hcxtools on Arch Linux Live USB - v71221 - 03-20-2023 Thank you, ZerBea, for your valuable comments. However, hashcat doesn't work on my laptop out of the box. Still complains "You are probably missing the OpenCL, CUDA or HIP runtime installation". Based on my experience, on my laptop hashcat needs these dependencies: 1 ncurses5-compat-libs-6.3-1-x86_64.pkg.tar.zst 2 libpciaccess-0.17-1-x86_64.pkg.tar.zst 3 hwloc-2.9.0-1-x86_64.pkg.tar.zst 4 tbb-2021.5.0-2-x86_64.pkg.tar.zst 5 intel-opencl-runtime-1:18.1.0.015-3-x86_64.pkg.tar.zst 6 ocl-icd-2.3.1-1-x86_64.pkg.tar.zst I copied them onto a flash drive, then installed as pacman -U /mnt/sdb1/ncurses5-compat-libs-6.3-1-x86_64.pkg.tar.zst ... @marc1n Can't help you at the moment. Just don't have NVIDIA. By the way, found a typo in pre.sh instead of iw device wlan0 link should be iw dev wlan0 link RE: HowTo: Hashcat and hcxtools on Arch Linux Live USB - v71221 - 05-14-2023 Small corrections: pre.sh iw device wlan0 link iw dev wlan0 link pacman --sync --needed --noconfirm --quiet --color=auto firefox nss pacman --sync --needed --noconfirm --quiet --color=auto firefox nss glib2 hcx.sh hcxdumptool -I ip -4 address hcxdumptool -L RE: HowTo: Hashcat and hcxtools on Arch Linux Live USB - ZerBea - 05-15-2023 Thank you for mentioning the new option -L Starting with kernel 6.3 everything changed, because I got this dmesg warning: Code: [ 2770.939021] warning: hcxdumptool uses wireless extensions which will stop working for Wi-Fi 7 hardware; use nl80211 The good old days of WIRELESS EXTENSIONS (WEXT) are over. Unfortunately up to version 6.2.9 hcxdumptool was a WEXT dinosaur and I had to reactor the entire tool. Starting with v6.3.0 hcxdumtool talk with the kernel via RTNETLINK and NL80211 protocol. The protocol is directly implemented in hcxdumptool. There is no new dependency (like e.g. libnl). Compared to WEXT, NL80211 offers some nice additional features (e.g. active monitor mode). Additional I decided to go back to the roots. Anything that makes hcxdumptool slow has been removed. More information is here: https://github.com/ZerBea/hcxdumptool/blob/master/changelog https://github.com/ZerBea/hcxdumptool/blob/master/README.md and e.g. here: https://bugzilla.kernel.org/show_bug.cgi?id=217205#c62 RE: HowTo: Hashcat and hcxtools on Arch Linux Live USB - v71221 - 11-07-2023 i3 failed to start once. It turned out that a new version of glibc was needed. The frontal solution is to update everything pacman -Syu However, this will increase the overall download time. I suggest update only critical components. pre.sh pacman --sync --needed --noconfirm --quiet --color=auto archlinux-keyring pacman --sync --needed --noconfirm --quiet --color=auto archlinux-keyring glibc glib2 RE: HowTo: Hashcat and hcxtools on Arch Linux Live USB - v71221 - 01-23-2024 I used to update Arch Live USB by downloading the monthly installation ISO. Now I create the USB ISO image myself using Archiso https://wiki.archlinux.org/title/archiso The whole process takes less than 10 minutes on a modern laptop. Optionally you can test the ISO in QEMU sudo pacman -S qemu-desktop qemu-system-x86_64 -m 2048 -enable-kvm -audio none -cdrom /path/to/isofile/archlinux.iso Finally, create a bootable USB flash drive https://wiki.archlinux.org/title/USB_flash_installation_medium |