Exercise 4, Chapter 8 - Kali MultiArch
This will be a fun exercise because it is fairly simple, uses some of the package commands you've learned and allows you to run Windows programs from within Kali, thanks to Wine. However, it may sound a lot more complicated than it is because you will have to install a foreign architecture (i386).
- Add the 32 bit architecture option to your Kali instance using dpkg.
- Install wine32
- Run the Windows ipscan program using Wine.
Asciinema solution (copy and paste from video permitted). Note that asciinema didn't handle the final wget command properly. See the text solution for the details:
The solution is fairly straight-forward. However, do not miss the i386 command. This is the turning point of the exercise, where we operate in a
root@kali:~# wine it looks like wine32 is missing, you should install it. multiarch needs to be enabled first. as root, please execute "dpkg --add-architecture i386 && apt-get update && apt-get install wine32" Usage: wine PROGRAM [ARGUMENTS...] Run the specified program wine --help Display this help and exit wine --version Output version information and exit root@kali:~# dpkg --print-architecture root@kali:~# dpkg --add-architecture i386 root@kali:~# dpkg --print-foreign-architectures root@kali:~# i386 # change architecture in new program environment # apt update # apt install wine32 # wget https://sourceforge.net/projects/ipscan/files/ipscan2-binary/2.21/ipscan221.exe/download -O ipscan221.exe # wine ipscan221.exe
Food for thought
- apt-cache search nmap….why is the tool “atac" in the results?