BASH   25

wget sh

Guest on 11th July 2022 02:09:31 AM

  1. #! /bin/bash
  2. case "$1" in -a) echo GET $URL; echo Host: $HOST; echo ;; -b) nc $HOST 80 ;; *) HOST="${1##http://}"; export HOST="${HOST%%/*}"; export URL="$1"; $0 -a | $0 -b > ${2:-/proc/self/fd/1};; esac

Raw Paste


Login or Register to edit or fork this paste. It's free.