Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

captive.gateway.lan loading indefinitely #551

Closed
NavjotSinghMinhas opened this issue Jun 24, 2018 · 40 comments
Closed

captive.gateway.lan loading indefinitely #551

NavjotSinghMinhas opened this issue Jun 24, 2018 · 40 comments
Labels
Need More Info This issue lacks information to determine the source of fault. Priority: High

Comments

@NavjotSinghMinhas
Copy link

Bug Report

Summary

After connecting to the AP from my mobile, the browser connects to captive.gateway.lan and it doesn't open anything, it just keeps on loading and loading

What is the current behaviour?

It is not showing the enter password screen when connected to the AP

How to reproduce

Just open captive.gateway.lan on the browser in kali linux arm and it will load indefinitely.
screenshot:

What do you think the expected behaviour should be?

It should display the user to enter the wifi password when it loads captive.gateway.lan

Specs

FLUXION Info

FLUXION V4.12

BASH Info

GNU bash, version 4.4.18(1)-release (arm-unknown-linux-gnueabihf)
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

Interface (wlan1) Info

Device: phy0
Driver: ath9k_htc
Chipset: Atheros Communications, Inc. AR9271 802.11n
Master Modes Yes
Injection Test: ioctl(SIOCSIWMODE) failed: Device or resource busy
No Answer...

XTerm Infos

Version: XTerm(333)
Path: /usr/bin/xterm
Test: XServer/XTerm success!

HostAPD Info

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 Info

Aircrack-ng 1.2 rc4 - (C) 2006-2015 Thomas d'Otreppe
http://www.aircrack-ng.org

Pyrit Info

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.4.0
Warning: Pyrit has been reported to be incompatible with scapy version 2.4.0. Consult the wiki for further information. This should not affect you, if you don't choose to use pyrit in the script.

System Info

Chipset: Linux version 4.9.80-Re4son-v7+ (root@builder) (gcc version 4.9.4 (Linaro GCC 4.9-2017.01) ) #1 SMP Thu Apr 26 17:45:16 CDT 2018

@NavjotSinghMinhas
Copy link
Author

Is there anyone monitoring for bugs?

@rad4day
Copy link
Contributor

rad4day commented Jun 29, 2018

Sorry, we seem to be all very busy right now

@NavjotSinghMinhas
Copy link
Author

Okay, thanks.

Will wait then :)
No problem.

@MPX4132
Copy link
Member

MPX4132 commented Jul 6, 2018

@NavjotSinghMinhas Sorry for the wait, like @rad4day said, we've been busy. From what I recall, checking with the host machine will no longer work because of a change I made to keep things isolated. However, you can check using linux tools. Try the following when the Captive Portal attack is running:

# Check the DNS service
nslookup somebsdomain.lulz 192.168.254.1
# Should route you to 192.168.1.254.1, but any domain you input should route you to it.

# Check the Web service (by host address)
firefox http://192.168.254.1
# Or just navigate to that on a browser.

If those two work, the image you've shown shouldn't matter.

@NavjotSinghMinhas
Copy link
Author

But i connected my mobile to this AP, captive.gateway.lan opens up and loads indefinitely on that device also.

@MPX4132
Copy link
Member

MPX4132 commented Jul 7, 2018

@NavjotSinghMinhas Did you try what I mentioned, and did you get anything?

@MPX4132
Copy link
Member

MPX4132 commented Jul 7, 2018

Also, there should be no problem with your driver. I use the exact same one for testing.

@MPX4132 MPX4132 added the Need More Info This issue lacks information to determine the source of fault. label Jul 7, 2018
@NavjotSinghMinhas
Copy link
Author

firefox reditects 192.168.254.1 to captive.gateway.lan and then server not found error.

@MPX4132
Copy link
Member

MPX4132 commented Jul 12, 2018

Make sure to use the protocol http:// and don't assume it's there.

@MPX4132
Copy link
Member

MPX4132 commented Jul 15, 2018

I'm closing this, since there was no response and I can't seem to be able to reproduce the issue. Once you respond we can reopen the issue if you can give us more information.

@MPX4132 MPX4132 closed this as completed Jul 15, 2018
@nicolas4d
Copy link

@NavjotSinghMinhas Sorry for the wait, like @rad4day said, we've been busy. From what I recall, checking with the host machine will no longer work because of a change I made to keep things isolated. However, you can check using linux tools. Try the following when the Captive Portal attack is running:

# Check the DNS service
nslookup somebsdomain.lulz 192.168.254.1
# Should route you to 192.168.1.254.1, but any domain you input should route you to it.

# Check the Web service (by host address)
firefox http://192.168.254.1
# Or just navigate to that on a browser.

If those two work, the image you've shown shouldn't matter.

hi @MPX4132
I did check the DNS service. this route to 192.168.254.1
but when I check the web service. It's responed "Server Not Found". how can I fix this? Please!

@nicolas4d
Copy link

@NavjotSinghMinhas Sorry for the wait, like @rad4day said, we've been busy. From what I recall, checking with the host machine will no longer work because of a change I made to keep things isolated. However, you can check using linux tools. Try the following when the Captive Portal attack is running:

# Check the DNS service
nslookup somebsdomain.lulz 192.168.254.1
# Should route you to 192.168.1.254.1, but any domain you input should route you to it.

# Check the Web service (by host address)
firefox http://192.168.254.1
# Or just navigate to that on a browser.

If those two work, the image you've shown shouldn't matter.

hi @MPX4132
I did check the DNS service. this route to 192.168.254.1
but when I check the web service. It's responed "Server Not Found". how can I fix this? Please!

thanks @MPX4132 @rad4day @NavjotSinghMinhas first.
I fixed this problem.
vim /etc/resolv.conf:
nameserver 192.168.254.1
put this first as first dns.

@NavjotSinghMinhas
Copy link
Author

NavjotSinghMinhas commented Mar 1, 2019

i tried both http://192.168.254.1 and captive.gateway.lan on both client and host, loads indefinitely. Though routing of domains are being done to captive.gateway.lan, but problem is captive.gateway.lan OR http://192.168.254.1 gives server not found after loading indefinitely.

As mentioned by @nicolas4d i tried adding nameserver 192.168.254.1 in /etc/resolv.conf
But still the same.

May be open the issue again (@strasharo) and sorry for not responding earlier as i removed kali at that time.

@nicolas4d
Copy link

@NavjotSinghMinhas can you post the "/etc/resolv.conf" contents after you created the rogue ap with fluxion?

@NavjotSinghMinhas
Copy link
Author

I selected no SSL, Disconnected emulation and TP-Link landing page (ID: 64 in options)

Also https calls were not routing to captive portal, may be i think it is because of no SSL selected.

screenshot from 2019-03-01 14-50-48

@nicolas4d
Copy link

@NavjotSinghMinhas try SSL brother! and tell me what happend! please

@NavjotSinghMinhas
Copy link
Author

Hi @nicolas4d It works with SSL, BUT hold on....

  1. All HTTPS calls resulted certificate error (I knew it would happen, that's why always selected no ssl)
  2. HTTP requests works and routes to captive gateway. (BUT after opening 2-3 times, it wasn't loading OR was loading VERY VERY slow)

@nicolas4d
Copy link

Hi @nicolas4d It works with SSL, BUT hold on....

  1. All HTTPS calls resulted certificate error (I knew it would happen, that's why always selected no ssl)
  2. HTTP requests works and routes to captive gateway. (BUT after opening 2-3 times, it wasn't loading OR was loading VERY VERY slow)

@NavjotSinghMinhas hi! bro.

  1. this is ok
  2. It's fast in host Browser(like firefox or chrome) to me. but very very very slow with client(like Iphone or Android) that connect through rogou AP.

do you have any clue for this reason?
and help us @deltaxflux @MPX4132 . Please! Please! Please! Please!

@NavjotSinghMinhas
Copy link
Author

NavjotSinghMinhas commented Mar 1, 2019

yup, totally agree with you brother and no idea why this happens.

@nicolas4d
Copy link

they don't reopen this Issue, why? @NavjotSinghMinhas bro!

@NavjotSinghMinhas
Copy link
Author

may be busy, or are not getting notifications from a closed ticket.

You can create a new issue and redirect to this one, so they can reach here :)

@rad4day
Copy link
Contributor

rad4day commented Mar 2, 2019

Sorry to leave you waiting.
We are in fact getting notifications. It's just that most of us are pretty busy. Also this project is for most of us not really our top priority project anymore. Therefore it's not that likely that we'll fix much stuff in the next few weeks / months.

Server not found sounds like either the webserver is not running at all or the firewall is misconfigured.

If any of you find the bug in the code, it would be nice submit a PR or give us a heads up.

@rad4day rad4day reopened this Mar 2, 2019
@NavjotSinghMinhas
Copy link
Author

Not a problem, but what could be the reason for slowness in client when host works fine.

I will look into code and learn it, but i am not familiar with Shell at all, i have worked with python, html and c though. So will not be a problem to learn it if you just give a little heads up about the problem. Thanks :)

@nicolas4d
Copy link

Sorry to leave you waiting.
We are in fact getting notifications. It's just that most of us are pretty busy. Also this project is for most of us not really our top priority project anymore. Therefore it's not that likely that we'll fix much stuff in the next few weeks / months.

Server not found sounds like either the webserver is not running at all or the firewall is misconfigured.

If any of you find the bug in the code, it would be nice submit a PR or give us a heads up.

I think this is not a code problem, but the envirenment or wifi card! I will buy another wifi card to test it. (laughing...)

"firewall misiconfigured".
I had barely thouched the firewall.
how to configure firewall? @rad4day

@nicolas4d
Copy link

I tested with rt3070. It's still slow.
who can give me a clue?????? please!!!!!!

@nicolas4d
Copy link

Sorry to leave you waiting.
We are in fact getting notifications. It's just that most of us are pretty busy. Also this project is for most of us not really our top priority project anymore. Therefore it's not that likely that we'll fix much stuff in the next few weeks / months.

Server not found sounds like either the webserver is not running at all or the firewall is misconfigured.

If any of you find the bug in the code, it would be nice submit a PR or give us a heads up.

webserver in not running at all. @rad4day
I checked lighttpd server status is inactive.
I try to manully start lighttpd, but always failed. how can I fix this? @rad4day

@Pride100
Copy link

Pride100 commented Mar 5, 2019

Yeah!!! You guys are right!! Almost the same problem here but mine is much worser!!
Busy?? Busy my ass 8 months ago!!!
Soooo many problems with fluxion program and the Developers!!!

Please gave me a link fluxion v4.10. Its more stable than v5 up.
Watch this so that u can see the problem.

https://youtu.be/48fr3BjMUCU

Also you guys make a video so that they can see how big is the issue is. Giving them a picture or a comment pssssssshhhh!!! They are all ignoring it.

@Pride100
Copy link

Pride100 commented Mar 5, 2019

Ive been trying to contact u guys on gmail and no responds!

@NavjotSinghMinhas
Copy link
Author

@Pride100 looks like your DHCP is not working at all, but mine works though.

Request you to make a video from start to end i.e video where you run the "sudo ./fluxion.sh" to the hotspot connect.

Thanks

@Pride100
Copy link

Pride100 commented Mar 5, 2019 via email

@NavjotSinghMinhas
Copy link
Author

Ok, have you tried with Atheros instead of Realtek?

@Pride100
Copy link

Pride100 commented Mar 5, 2019 via email

@Pride100
Copy link

Pride100 commented Mar 5, 2019

Thank you so Much! I thought my issue will finally be fixed/////Wow guys they pm at my gmail and I got blocked it they said any respawn will be lead as spam. Thank you for wasting my time. If this message can sent a picture then I will show you guys in print screen. That is called " WE ARE REALLY BUZY".
BUSY My ass!!!

@deltaxflux
Copy link
Member

Yeah we are busy now but I have time after 22.3.

@NavjotSinghMinhas
Copy link
Author

Hi @deltaxflux do you happen to have the original fluxion, the one that was published on github on other repo. I think it was version 2.x something.

@NavjotSinghMinhas
Copy link
Author

Closed?

@muslemomar
Copy link

The same happens for me always, but restarting Fluxion like 2/3 times make it work.

@cjb900
Copy link
Collaborator

cjb900 commented May 1, 2020

this was closed and fluxion has been updated many times since this was initially posted and closed. if you are having issues it would be better to open a new report and post your exact issue with the full details there or join the discord server for help https://discordapp.com/invite/G43gptk

@gladston
Copy link

gladston commented May 1, 2020

Hello, I'm reading this post just today because @cjb900 has just informed that fluxion has been updated and probably the problem is gone.
   I recently had this problem with the TL-WN722N V1 adapter. When the most recent version of fluxion was 6.5.
  After several formatting, downgrade and upgrade of Kali Linix, I solved the problem with these commands. (Note: Atheros AR9271 is wlan1)
Before running the fluxion script:
airmon-ng check kill
airmon-ng start wlan1

  With these two commands the problem solved for me, you will notice that before it appeared to select TL-WN722N as wlan1 and now it is wlan1mon. I belive it's works well for you when it worked for me
  I leave this message here in the hope of helping you who are reading this in the future.

@dasReaver
Copy link

Hi! been having same problem and adding 192.168.254.1 to resolv.conf file finally helped, now every android device connecting to the rogue ap will correctly display captive gateway. Without editing the conf file it only showed on PC-s
But now theres another problem. Rogue AP will be shown as (no internet) and android will ask if u really want to stay connected to that network.

What should be correct entries in resolc.conf file ? Mine works only if theres one nameserver ...254.1 and in this case no internet?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Need More Info This issue lacks information to determine the source of fault. Priority: High
Projects
None yet
Development

No branches or pull requests