#!/bin/bash
mkdir cfip 2>/dev/null
cd cfip
seq 10 | xargs -I {} ping -c 1 -W 1 help.zengge99.eu.org &>/dev/null
curl -k -o cf.sh https://help.zengge99.eu.org/scancf/scancf_tool/cf.sh
curl -k -o speedlog.txt --user 999:999 https://help.zengge99.eu.org/scancf/openwrt/cf_speed_result.txt
cat speedlog.txt | grep -v " 0.0" | tail -n +2 |  head -n 50 > cfip.txt
rm log.txt 2>/dev/null
chmod 777 cf.sh
./cf.sh
cp speedlog.txt ../
cd ..
rm -r cfip
clear
cat speedlog.txt