This is not the best way to go about getting any old program running in Kali, but it works in this case and is quicker and easier than compiling from source, which I couldn't get to work.
To get the PPA repository working in Kali we need to get add-apt-repository working:
apt-get install python-software-properties apt-get install apt-file apt-file update
This can take a minute or more. Then try searching for add-apt-repository:
apt-file search add-apt-repository
Which should output something like this:
python-software-properties: /usr/bin/add-apt-repository python-software-properties: /usr/share/man/man1/add-apt-repository.1.gz
If it doesn't, like in my first attempt, we need to clean out some old packages
apt-get remove python-software-properties apt-get autoremove
Then start from the beginning again and you should get the correct search output. Next we supply the code for add-apt-repository:
cd /usr/sbin nano add-apt-repository
Then copy the following into nano, save and exit:
#!/bin/bash if [ $# -eq 1 ] NM=`uname -a && date` NAME=`echo $NM | md5sum | cut -f1 -d" "` then ppa_name=`echo "$1" | cut -d":" -f2 -s` if [ -z "$ppa_name" ] then echo "PPA name not found" echo "Utility to add PPA repositories in your debian machine" echo "$0 ppa:user/ppa-name" else echo "$ppa_name" echo "deb http://ppa.launchpad.net/$ppa_name/ubuntu oneiric main" >> /etc/apt/sources.list apt-get update >> /dev/null 2> /tmp/$_apt_add_key.txt key=`cat /tmp/$_apt_add_key.txt | cut -d":" -f6 | cut -d" " -f3` apt-key adv --keyserver keyserver.ubuntu.com --recv-keys $key rm -rf /tmp/$_apt_add_key.txt fi else echo "Utility to add PPA repositories in your debian machine" echo "$0 ppa:user/ppa-name" fi
Quickly fix ownership and permissions:
chmod o+x /usr/sbin/add-apt-repository chown root:root /usr/sbin/add-apt-repository
Then add the PPA repository and install WinUSB:
add-apt-repository ppa:colingille/freshlight apt-get update apt-get install winusb
It's probably a good idea to remove the PPA repository from your sources once you've installed WinUSB to avoid installing other incompatible packages:
nano /etc/apt/sources.list
And delete the last line before closing and saving. The WinUSB GUI is now in the System Tools sub-menu and the command line tools should also work. Best of luck!