Tunnelled burp: Add more logging

This commit is contained in:
fruchti 2024-11-19 08:52:46 +01:00
parent 76cabab60a
commit f0fa05faec

View file

@ -98,9 +98,12 @@
cat > $out/sbin/burp <<-EOF cat > $out/sbin/burp <<-EOF
#!/${pkgs.bash}/bin/bash #!/${pkgs.bash}/bin/bash
set -e set -e
echo "Ensuring rupert.gvfr.de is up."
${pkgs.dig}/bin/nslookup rupert.gvfr.de ${pkgs.dig}/bin/nslookup rupert.gvfr.de
${pkgs.unixtools.ping}/bin/ping -c1 rupert.gvfr.de >/dev/null ${pkgs.unixtools.ping}/bin/ping -c1 rupert.gvfr.de >/dev/null
echo "Opening SSH tunnel."
${pkgs.openssh}/bin/ssh -i /secrets/id_burp_remote -o IdentitiesOnly=yes -o ExitOnForwardFailure=yes -L 4971:localhost:4971 burp-remote@rupert.gvfr.de -f true ${pkgs.openssh}/bin/ssh -i /secrets/id_burp_remote -o IdentitiesOnly=yes -o ExitOnForwardFailure=yes -L 4971:localhost:4971 burp-remote@rupert.gvfr.de -f true
echo "Beginning backup operation."
$out/sbin/burp-untunneled \$@ $out/sbin/burp-untunneled \$@
EOF EOF
chmod +x $out/sbin/burp chmod +x $out/sbin/burp