#!/bin/bash part=0 step=10000 while [ 1 ]; do end=$(expr $part + $step) 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"` if [ "$?" == "0" ]; then echo "PART $part: $GOT" part=$end fi done