From 5827d3afd753d7b768b8495394f9976bbd654188 Mon Sep 17 00:00:00 2001 From: 0x <53162434+ovhx@users.noreply.github.com> Date: Fri, 6 May 2022 15:40:31 +0300 Subject: [PATCH] Public IP detection fix myip.opendns.com no longer exists so i replaced it with a working one --- fatrat | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"