Delete status from output

This commit is contained in:
g1n 2021-07-08 09:09:18 +00:00
parent d94d7e71a1
commit 07fbb388da
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ request(){
status=$(echo $page | awk 'NR == 1 {print $1}')
meta=$(echo $page | awk 'NR == 1 {print $2}')
if [[ $status == 2 ]]; then
printf "$host /$path $( $post | wc -c )\r\n$post" | nc $host $port
printf "$host /$path $( $post | wc -c )\r\n$post" | nc $host $port | awk 'NR > 1 {print}'
elif [[ $status == 3 ]]; then
path=$meta
printf "$host $path 0\r\n" | nc $host 300