#!/bin/bash
echo "Use this script at your own responsability."
echo
echo "That said, nothing should go wrong. If you are now in a directory"
echo "where you have all the privs, and want to make a similar experiment"
echo "to test your SNAT'ing (Source Network Address Translation) skills"
echo "and on top of that decrypt some SSL traffic,"
echo ""
echo "And you should be fine just running this (primitive) script."
echo
echo "Hit Enter, and this will create a directory, and download"
echo "all the files that you can see on:"
echo
echo "http://www.croatiafidelis.hr/foss/router/SNAT-demo/"
echo
echo "for you. (Hit Enter now!)"
read FAKE

mkdir -pv SNAT-inet

cd SNAT-inet/

wget -nc http://www.croatiafidelis.hr/foss/router/SNAT-inet/dump_160903_1932_g0n_messages.log
wget -nc http://www.croatiafidelis.hr/foss/router/SNAT-inet/dump_160903_1932_g0n_SOLO.pcap
wget -nc http://www.croatiafidelis.hr/foss/router/SNAT-inet/dump_160903_1932_gcn.pcap
wget -nc http://www.croatiafidelis.hr/foss/router/SNAT-inet/dump_160903_2355_g0n_SOLO.pcap
wget -nc http://www.croatiafidelis.hr/foss/router/SNAT-inet/dump_160903_2355_gcn.pcap
wget -nc http://www.croatiafidelis.hr/foss/router/SNAT-inet/dump_160903_2355_gcn_SSLKEYLOGFILE.txt
wget -nc http://www.croatiafidelis.hr/foss/router/SNAT-inet/ipt_conf_states.sh
wget -nc http://www.croatiafidelis.hr/foss/router/SNAT-inet/LICENSE
wget -nc http://www.croatiafidelis.hr/foss/router/SNAT-inet/messages_160903_1801_g0n_dhcpcd_confused
wget -nc http://www.croatiafidelis.hr/foss/router/SNAT-inet/README.html
wget -nc http://www.croatiafidelis.hr/foss/router/SNAT-inet/README_tent1.html
wget -nc http://www.croatiafidelis.hr/foss/router/SNAT-inet/README_tent2.html
wget -nc http://www.croatiafidelis.hr/foss/router/SNAT-inet/rules_SNATpriv2pub_2.sh
wget -nc http://www.croatiafidelis.hr/foss/router/SNAT-inet/rules_SNATpriv2pub_3.sh
wget -nc http://www.croatiafidelis.hr/foss/router/SNAT-inet/rules_SNATpriv2pub.sh
wget -nc http://www.croatiafidelis.hr/foss/router/SNAT-inet/Screen_160822_2159_g0n.webm
wget -nc http://www.croatiafidelis.hr/foss/router/SNAT-inet/Screen_160903_2355_gcn.webm
wget -nc http://www.croatiafidelis.hr/foss/router/SNAT-inet/SUMS
wget -nc http://www.croatiafidelis.hr/foss/router/SNAT-inet/SUMS.sig
wget -nc http://www.croatiafidelis.hr/foss/router/SNAT-inet/ZTE_160822_2205.log
wget -nc http://www.croatiafidelis.hr/foss/router/SNAT-inet/ZTE_160903_1931.log
wget -nc http://www.croatiafidelis.hr/foss/router/SNAT-inet/ZTE_160903_1939.log
wget -nc http://www.croatiafidelis.hr/foss/router/SNAT-inet/ZTE_160903_2359.log
wget -nc http://www.croatiafidelis.hr/foss/router/SNAT-inet/Zxdsl931_lanDHCPbnd.htm
wget -nc http://www.croatiafidelis.hr/foss/router/SNAT-inet/Zxdsl931_logs_160822-160830.html
wget -nc http://www.croatiafidelis.hr/foss/router/SNAT-inet/Zxdsl931_logs_160822-160830.txt

mkdir -pv ipt_conf_states_160903_1927_gcn.d
cd ipt_conf_states_160903_1927_gcn.d
wget -nc http://www.croatiafidelis.hr/foss/router/SNAT-inet/ipt_conf_states_160903_1927_gcn.d/ip_addr_show_160903_1927_gcn
wget -nc http://www.croatiafidelis.hr/foss/router/SNAT-inet/ipt_conf_states_160903_1927_gcn.d/ip_link_show_160903_1927_gcn
wget -nc http://www.croatiafidelis.hr/foss/router/SNAT-inet/ipt_conf_states_160903_1927_gcn.d/ip_rout_show_160903_1927_gcn
wget -nc http://www.croatiafidelis.hr/foss/router/SNAT-inet/ipt_conf_states_160903_1927_gcn.d/ipt-t_flt-L-n-v_160903_1927_gcn
wget -nc http://www.croatiafidelis.hr/foss/router/SNAT-inet/ipt_conf_states_160903_1927_gcn.d/ipt-t_mgl-L-n-v_160903_1927_gcn
wget -nc http://www.croatiafidelis.hr/foss/router/SNAT-inet/ipt_conf_states_160903_1927_gcn.d/ipt-t_nat-L-n-v_160903_1927_gcn
wget -nc http://www.croatiafidelis.hr/foss/router/SNAT-inet/ipt_conf_states_160903_1927_gcn.d/ipt-t_raw-L-n-v_160903_1927_gcn
wget -nc http://www.croatiafidelis.hr/foss/router/SNAT-inet/ipt_conf_states_160903_1927_gcn.d/resolv_conf_160903_1927_gcn
cd -

mkdir -pv ipt_conf_states_160903_1932_g0n.d
cd ipt_conf_states_160903_1932_g0n.d
wget -nc http://www.croatiafidelis.hr/foss/router/SNAT-inet/ipt_conf_states_160903_1932_g0n.d/ip_addr_show_160903_1932_g0n
wget -nc http://www.croatiafidelis.hr/foss/router/SNAT-inet/ipt_conf_states_160903_1932_g0n.d/ip_link_show_160903_1932_g0n
wget -nc http://www.croatiafidelis.hr/foss/router/SNAT-inet/ipt_conf_states_160903_1932_g0n.d/ip_rout_show_160903_1932_g0n
wget -nc http://www.croatiafidelis.hr/foss/router/SNAT-inet/ipt_conf_states_160903_1932_g0n.d/ipt-t_flt-L-n-v_160903_1932_g0n
wget -nc http://www.croatiafidelis.hr/foss/router/SNAT-inet/ipt_conf_states_160903_1932_g0n.d/ipt-t_mgl-L-n-v_160903_1932_g0n
wget -nc http://www.croatiafidelis.hr/foss/router/SNAT-inet/ipt_conf_states_160903_1932_g0n.d/ipt-t_nat-L-n-v_160903_1932_g0n
wget -nc http://www.croatiafidelis.hr/foss/router/SNAT-inet/ipt_conf_states_160903_1932_g0n.d/ipt-t_raw-L-n-v_160903_1932_g0n
wget -nc http://www.croatiafidelis.hr/foss/router/SNAT-inet/ipt_conf_states_160903_1932_g0n.d/resolv_conf_160903_1932_g0n
cd -

mkdir -pv ipt_conf_states_160903_2355_g0n.d
cd ipt_conf_states_160903_2355_g0n.d
wget -nc http://www.croatiafidelis.hr/foss/router/SNAT-inet/ipt_conf_states_160903_2355_g0n.d/ip_addr_show_160903_2355_g0n
wget -nc http://www.croatiafidelis.hr/foss/router/SNAT-inet/ipt_conf_states_160903_2355_g0n.d/ip_link_show_160903_2355_g0n
wget -nc http://www.croatiafidelis.hr/foss/router/SNAT-inet/ipt_conf_states_160903_2355_g0n.d/ip_rout_show_160903_2355_g0n
wget -nc http://www.croatiafidelis.hr/foss/router/SNAT-inet/ipt_conf_states_160903_2355_g0n.d/ipt-t_flt-L-n-v_160903_2355_g0n
wget -nc http://www.croatiafidelis.hr/foss/router/SNAT-inet/ipt_conf_states_160903_2355_g0n.d/ipt-t_mgl-L-n-v_160903_2355_g0n
wget -nc http://www.croatiafidelis.hr/foss/router/SNAT-inet/ipt_conf_states_160903_2355_g0n.d/ipt-t_nat-L-n-v_160903_2355_g0n
wget -nc http://www.croatiafidelis.hr/foss/router/SNAT-inet/ipt_conf_states_160903_2355_g0n.d/ipt-t_raw-L-n-v_160903_2355_g0n
wget -nc http://www.croatiafidelis.hr/foss/router/SNAT-inet/ipt_conf_states_160903_2355_g0n.d/resolv_conf_160903_2355_g0n
cd -

mkdir -pv ipt_conf_states_160903_2355_gcn.d
cd ipt_conf_states_160903_2355_gcn.d
wget -nc http://www.croatiafidelis.hr/foss/router/SNAT-inet/ipt_conf_states_160903_2355_gcn.d/ip_addr_show_160903_2355_gcn
wget -nc http://www.croatiafidelis.hr/foss/router/SNAT-inet/ipt_conf_states_160903_2355_gcn.d/ip_link_show_160903_2355_gcn
wget -nc http://www.croatiafidelis.hr/foss/router/SNAT-inet/ipt_conf_states_160903_2355_gcn.d/ip_rout_show_160903_2355_gcn
wget -nc http://www.croatiafidelis.hr/foss/router/SNAT-inet/ipt_conf_states_160903_2355_gcn.d/ipt-t_flt-L-n-v_160903_2355_gcn
wget -nc http://www.croatiafidelis.hr/foss/router/SNAT-inet/ipt_conf_states_160903_2355_gcn.d/ipt-t_mgl-L-n-v_160903_2355_gcn
wget -nc http://www.croatiafidelis.hr/foss/router/SNAT-inet/ipt_conf_states_160903_2355_gcn.d/ipt-t_nat-L-n-v_160903_2355_gcn
wget -nc http://www.croatiafidelis.hr/foss/router/SNAT-inet/ipt_conf_states_160903_2355_gcn.d/ipt-t_raw-L-n-v_160903_2355_gcn
wget -nc http://www.croatiafidelis.hr/foss/router/SNAT-inet/ipt_conf_states_160903_2355_gcn.d/resolv_conf_160903_2355_gcn
cd -

mkdir -pv ipt_conf_states_160903_2356_g0n.d
cd ipt_conf_states_160903_2356_g0n.d
wget -nc http://www.croatiafidelis.hr/foss/router/SNAT-inet/ipt_conf_states_160903_2356_g0n.d/ip_addr_show_160903_2356_g0n
wget -nc http://www.croatiafidelis.hr/foss/router/SNAT-inet/ipt_conf_states_160903_2356_g0n.d/ip_link_show_160903_2356_g0n
wget -nc http://www.croatiafidelis.hr/foss/router/SNAT-inet/ipt_conf_states_160903_2356_g0n.d/ip_rout_show_160903_2356_g0n
wget -nc http://www.croatiafidelis.hr/foss/router/SNAT-inet/ipt_conf_states_160903_2356_g0n.d/ipt-t_flt-L-n-v_160903_2356_g0n
wget -nc http://www.croatiafidelis.hr/foss/router/SNAT-inet/ipt_conf_states_160903_2356_g0n.d/ipt-t_mgl-L-n-v_160903_2356_g0n
wget -nc http://www.croatiafidelis.hr/foss/router/SNAT-inet/ipt_conf_states_160903_2356_g0n.d/ipt-t_nat-L-n-v_160903_2356_g0n
wget -nc http://www.croatiafidelis.hr/foss/router/SNAT-inet/ipt_conf_states_160903_2356_g0n.d/ipt-t_raw-L-n-v_160903_2356_g0n
wget -nc http://www.croatiafidelis.hr/foss/router/SNAT-inet/ipt_conf_states_160903_2356_g0n.d/resolv_conf_160903_2356_g0n
cd -

mkdir -pv ipt_conf_states_160903_2356_gcn.d
cd ipt_conf_states_160903_2356_gcn.d

wget -nc http://www.croatiafidelis.hr/foss/router/SNAT-inet/ipt_conf_states_160903_2356_gcn.d/ip_addr_show_160903_2356_gcn
wget -nc http://www.croatiafidelis.hr/foss/router/SNAT-inet/ipt_conf_states_160903_2356_gcn.d/ip_link_show_160903_2356_gcn
wget -nc http://www.croatiafidelis.hr/foss/router/SNAT-inet/ipt_conf_states_160903_2356_gcn.d/ip_rout_show_160903_2356_gcn
wget -nc http://www.croatiafidelis.hr/foss/router/SNAT-inet/ipt_conf_states_160903_2356_gcn.d/ipt-t_flt-L-n-v_160903_2356_gcn
wget -nc http://www.croatiafidelis.hr/foss/router/SNAT-inet/ipt_conf_states_160903_2356_gcn.d/ipt-t_mgl-L-n-v_160903_2356_gcn
wget -nc http://www.croatiafidelis.hr/foss/router/SNAT-inet/ipt_conf_states_160903_2356_gcn.d/ipt-t_nat-L-n-v_160903_2356_gcn
wget -nc http://www.croatiafidelis.hr/foss/router/SNAT-inet/ipt_conf_states_160903_2356_gcn.d/ipt-t_raw-L-n-v_160903_2356_gcn
wget -nc http://www.croatiafidelis.hr/foss/router/SNAT-inet/ipt_conf_states_160903_2356_gcn.d/resolv_conf_160903_2356_gcn
cd -
