Yes
Bug
loops during initial installation while giving the error "no internet connection found" even though i am connected to the internet.
cd fluxion
./fluxion.sh
that's it...
normally it would download required assets(bc, dhcpd...)
FLUXION V4.8
GNU bash, version 4.4.19(1)-release (x86_64-pc-linux-gnu)
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Path: /bin/bash
Device: phy3
Driver: rtl8192cu
Chipset: Realtek Semiconductor Corp. RTL8188CUS 802.11n WLAN Adapter
Master Modes Yes
Injection Test: Injection is working!
Version: XTerm(332)
Path: /usr/bin/xterm
Test: XServer/XTerm success!
hostapd v2.6
User space daemon for IEEE 802.11 AP management,
IEEE 802.1X/WPA/WPA2/EAP/RADIUS Authenticator
Copyright (c) 2002-2016, Jouni Malinen j@w1.fi and contributors
Path: /usr/sbin/hostapd
Aircrack-ng 1.2 rc4 - (C) 2006-2015 Thomas d'Otreppe
http://www.aircrack-ng.org
Pyrit 0.5.1 (C) 2008-2011 Lukas Lueg - 2015 John Mora
https://github.com/JPaulMora/Pyrit
This code is distributed under the GNU General Public License v3+
Scapy Version: 2.3.3
Chipset: Linux version 4.15.0-kali3-amd64 ([email protected]) (gcc version 7.3.0 (Debian 7.3.0-16)) #1 SMP Debian 4.15.17-1kali1 (2018-04-25)
The code telling you there is no internet connection is the following:
if ! ping -q -w 1 -c 1 8.8.8.8 &> /dev/null; then
format_center_literals "[${CRed}!$CClr] ${CBYel}No internet connection found!$CClr"
echo -e "\n\n$FormatCenterLiterals"
format_center_literals "[ ${CSRed}CANNOT CONTINUE${CClr} ]"
echo -e "$FormatCenterLiterals"
sleep 5
return 3
fi
Have you access to the google dns at 8.8.8.8? If not, this is most likely what causes the bug.
Try running
ping -q -w 1 -c 1 8.8.8.8; echo $?
and please tell us if there are any errors.
If you want to modify the code yourself to circumvent this, it's located in lib/installer/InstallerUtils.sh beginning on line 234
Right so apparently i don't actually have access to the google dns at 8.8.8.8 nor at 8.8.4.4 smh; I keep getting 100% packet loss and i tried looking it up and got bored kek, so i decided to change the code a little so that i ping myself and it worked!
Modified code:
if ! ping -q -w 1 -c 1 192.168.0.101 &> /dev/null; then
format_center_literals "[${CRed}!$CClr] ${CBYel}No internet connection found!$CClr"
echo -e "\n\n$FormatCenterLiterals"
format_center_literals "[ ${CSRed}CANNOT CONTINUE${CClr} ]"
echo -e "$FormatCenterLiterals"
sleep 5
return 3
fi
I changed the 8.8.8.8 to 192.168.0.101 which is the static ip assigned to my laptop and everything worked fine and proper thanks to you!
Doesn't make sense I guess.
@Dick456 Huh, weird that you can't ping Google's DNS servers. Are you in China or something? You don't need to answer that, I'm just curious.
No i live in the middle east and it is weird indeed, but like what's the point of pinning them anyway?
@Dick456 We ping Google's DNS servers because they're usually always guaranteed to be up. When fluxion is launched it performs a dependency check. If dependencies are missing, they're queued to be installed. Before we continue the installation we've got to assure we have a connection to the internet. We test test the connection by pinging Google's DNS servers.
When you on Optima WiFi your ping to ANY is blocked by ISP. The only IPs you can ping is 10.240.205.161 ( their DNS ). You also can ONLY use 10.240.205.161 as DNS - others will be blocked. Big brother... But this... "We ping Google's DNS servers because they're usually always guaranteed to be up"? imho - bad coding. after spending time on manually installing and configuring missing components (dhsp, php bc etc ) - now you saying it is just about ping 8.8.8.8.
"No Internet Connection Found", yet i am connected and have internet access
I have the same issue. The ping command doesnt seems to work under kali linux.
The code telling you there is no internet connection is the following:
if ! ping -q -w 1 -c 1 8.8.8.8 &> /dev/null; then format_center_literals "[${CRed}!$CClr] ${CBYel}No internet connection found!$CClr" echo -e "\n\n$FormatCenterLiterals" format_center_literals "[ ${CSRed}CANNOT CONTINUE${CClr} ]" echo -e "$FormatCenterLiterals" sleep 5 return 3 fiHave you access to the google dns at 8.8.8.8? If not, this is most likely what causes the bug.
Try runningping -q -w 1 -c 1 8.8.8.8; echo $?and please tell us if there are any errors.
If you want to modify the code yourself to circumvent this, it's located in
lib/installer/InstallerUtils.shbeginning on line 234
you can find the file in /fluxion/lib/installer...
Just change 8.8.8.8 to your ethernet or wifi adapter ip address.
Most helpful comment
Right so apparently i don't actually have access to the google dns at 8.8.8.8 nor at 8.8.4.4 smh; I keep getting 100% packet loss and i tried looking it up and got bored kek, so i decided to change the code a little so that i ping myself and it worked!
Modified code:
I changed the 8.8.8.8 to 192.168.0.101 which is the static ip assigned to my laptop and everything worked fine and proper thanks to you!