File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8,11 +8,11 @@ proxy=$!
88sleep 1
99dd if=/dev/urandom of=/tmp/answer bs=1M count=1 2> /dev/null
1010cat /tmp/answer | nc localhost 8800
11+ EXPECTED_SUM=$( cat /tmp/answer | md5sum )
1112
1213SUM=" $( cat /tmp/reply-hash) "
13- echo -e " Gotten: \t $SUM "
14- EXPECTED_SUM=$( cat /tmp/answer | md5sum )
1514echo -e " Expected: \t $EXPECTED_SUM "
15+ echo -e " Gotten: \t $SUM "
1616
1717kill $proxy || true
1818
Original file line number Diff line number Diff line change 22
33dd if=/dev/urandom of=/tmp/reply bs=1M count=1 2> /dev/null
44cat /tmp/reply | nc -w 5 -l -p 8811 &
5+ EXPECTED_SUM=$( cat /tmp/reply | md5sum )
56
67" $1 " -hosting " localhost:8800" -forward " localhost:8811" &
78proxy=$!
89
910sleep 1
1011SUM=$( nc localhost 8800 | md5sum)
1112
12- echo -e " Gotten: \t $SUM "
13- EXPECTED_SUM=$( cat /tmp/reply | md5sum )
1413echo -e " Expected: \t $EXPECTED_SUM "
14+ echo -e " Gotten: \t $SUM "
1515
1616kill $proxy || true
1717
You can’t perform that action at this time.
0 commit comments