This program downloads and organizes videos from the Hak5 network of shows.
Original idea by Phil Kauffman. https://github.com/papamoose/hak5
My idea is to have Plex understand this archive on the disk. We will see if that works out.
Supported shows include:
- Hak5
- HakTip
- Metasploit_Minute
- Pineapple_University
- TekThing
- Threat_Wire
The program will probably only work on a Linux machine, but you can try on Windows or Mac if you want~
You will need Perl.
sudo apt-get install git youtube-dl libconfig-simple-perl
sudo yum install git youtube-dl perl-Config-Simple perl-Digest-MD5 perl-Digest-SHA
git clone https://github.com/nateinu/hak5
cd hak5
- Set the download folder.
- Select which levels of subfolders you want to organize the files with.
- Set maximum number of threads to use when hashing.
cp hak5-download.cfg-example hak5-download.cfg
Edit the hak5-download.cfg file.
gedit hak5-download.cfg
git pull
./bin/hak5-download
./bin/hak5-download --show Metasploit_Minute
./bin/hak5-download --show TekThing --episode 14
The "--episode" flag uses regex, not numbers. This means crazy things can happen. (Or if you know regex, you can download season 18 of Hak5 for example. '--18..--')
./bin/hak5-update
Add this to your crontab:
0 0 * * 0 /usr/bin/perl /home/$USER/hak5/bin/hak5-update 2>&1 >/dev/null
or
0 0 * * 0 /bin/bash -c "cd /home/$USER/hak5 ; git pull ; bin/hak5-download" 2>&1 >/dev/null
./bin/hak5-hash --check --md5
or
./bin/hak5-hash --check --sha256 --remove --redownload
./bin/hak5-hash --make
Instructions below are tested for when client and server are running Ubuntu 14.04.
TODO: Figure out how to get vlc to transcode the audio to a lower bitrate on the fly.
Setup
sudo apt-get install socat
socat TCP-LISTEN:22255,fork UNIX-CONNECT:$(pax11publish | awk -F ":" '{print $3; exit}') &
ssh -R 22255:localhost:22255 <user>@<server>
sudo apt-get install vlc libaa1-dev libcaca-dev
Watch
./bin/hak5-watch --show Metasploit_Minute --episode 34
or
./bin/hak5-watch --show Metasploit_Minute --episode 34 --color