diff --git a/fatrat b/fatrat index 9323aab7..0366c929 100644 --- a/fatrat +++ b/fatrat @@ -163,7 +163,7 @@ outf="app_backdoor.apk" msploit="${path}/logs/msploit.log" lanip=$(ip addr | grep 'state UP' -A2 | tail -n1 | awk '{print $2}' | cut -f1 -d'/') lanip6=$(ip addr | grep 'state UP' -A4 | tail -n1 | awk '{print $2}' | cut -f1 -d'/') -publicip=$(dig +short myip.opendns.com @resolver1.opendns.com) +publicip=$(wget -O - -q https://checkip.amazonaws.com) hostn=$(host "$publicip" | awk '{print $5}' | sed 's/.$//') list="${path}/config/listeners" log="${path}/logs/apk-old.log"