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

Stuck at Starting Captive Portal access point service... #579

Closed
lordxiniog opened this issue Aug 3, 2018 · 60 comments
Closed

Stuck at Starting Captive Portal access point service... #579

lordxiniog opened this issue Aug 3, 2018 · 60 comments
Labels
Priority: High Type: Bug The issue is a bug, and has been proven to be reproducible across multiple users.

Comments

@lordxiniog
Copy link

Bug Report

Summary

Cannot get Fluxion starts the Captive Portal AP, it always gets stuck at that step of the attack.
I know this issue has been treated many times, but I've been unable to solve and that's why I'm asking for your help.

What is the current behaviour?

Stuck at this point (for ages...)
captura de pantalla 2018-08-03 a las 11 35 17

How to reproduce

Just follow the Fluxion guide to attack: first got the handshake using the only-monitor mode (slower but I was surer that it would work).
captura de pantalla 2018-08-02 a las 18 45 17
After that, I started the second part of the attack, but it always gets stuck, no matter what option I choose (hostapd, airbase-ng, pyrit, cowpatty verification, SSL certificate, disconnected, any language...).

If the current behaviour is a bug, please provide the steps to reproduce it.

I do not really think it is a bug but a misbehaviour or incompatibility between certain components or drivers (despite mine are supposed to be supported).

What do you think the expected behaviour should be?

Fluxion should open windows in order to follow the Captive Portal access point attack, but it does not.

If this is a feature request, what is the motivation or use case for the added feature?
Specs

root@kali:~/fluxion/scripts# ./diagnostics.sh wlan0

./diagnostics.sh: línea 13: ../lib/ChipsetUtils.sh: No existe el fichero o el directorio

FLUXION Info

FLUXION V4.15

BASH Info

GNU bash, versión 4.4.23(1)-release (x86_64-pc-linux-gnu)
Copyright (C) 2016 Free Software Foundation, Inc.
Licencia GPLv3+: GPL de GNU versión 3 o posterior 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 (wlan0) Info

Device: phy0
Driver: 8812au
Chipset: Realtek Semiconductor Corp. RTL8812AU 802.11a/b/g/n/ac WLAN Adapter
Master Modes Yes
Injection Test: Injection is working!

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

EXIT
(null) - (C) 2006-2018 Thomas d'Otreppe
https://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 and above. 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.17.0-kali1-amd64 (devel@kali.org) (gcc version 7.3.0 (Debian 7.3.0-25)) #1 SMP Debian 4.17.8-1kali1 (2018-07-24)

Chipset

Chipset: 8812au
./diagnostics.sh: línea 111: check_chipset: no se encontró la orden

There you can see all my other specs. As seen above, everything is up to date and compatible (except Pyrit, but I don't really think that might be the cause of this matter).

Expected behavior

Fluxion should open windows in order to follow the Captive Portal access point attack, but it does not.

I've read almost every post available about this issue, including this one about my specific driver (which hasn't been updated in about a year) trying to unsuccessfully solve the problem.

Any comment would be of extreme help.
Thanks in advance!

@usama7628674
Copy link
Contributor

@lordxiniog Maybe you will get luck with this tool.It has many features including evil twin method like fluxion.

@ZiedHf
Copy link

ZiedHf commented Aug 3, 2018

I'm facing the same issue, it's stuck there for decade and freezes the system. I'm using the latest Fluxion version on Ubuntu 18.04, Dell n5110 computer.

@usama7628674
Copy link
Contributor

@ZiedHf Run the diagnostic script and paste the output here.

@deltaxflux
Copy link
Member

@usama7628674 please stop commenting you don't have any idea. I'm pretty sure this is a driver problem and additional this issue could be connected that you use Ubuntu. In like 3h I'm back at home and I will run this in a VM. Let's see

@usama7628674
Copy link
Contributor

@deltaxflux I just commented cuz I've read people having luck with airgeddon that does support some realtek chipsets and yes I know about ubuntu stuff.

@rad4day
Copy link
Contributor

rad4day commented Aug 3, 2018

@ZiedHf @lordxiniog couldn't replicate your exact issue but found some other problems with ubuntu / systemd-resolved.

@lordxiniog
Copy link
Author

Thanks for the suggestion, @usama7628674. I'll give it a try.
Thank all of you meanwhile.

@deltaxflux deltaxflux added the Type: Bug The issue is a bug, and has been proven to be reproducible across multiple users. label Aug 4, 2018
@deltaxflux
Copy link
Member

Yeah, definitely a bug. Fixed in futher releases.

@rad4day
Copy link
Contributor

rad4day commented Aug 8, 2018

Seems to not be fixed in 5.0

@rad4day rad4day reopened this Aug 8, 2018
@lordxiniog
Copy link
Author

I was able to find out the password cracking the .cap file using Airgeddon (actually, I think I used aircrack, but am not sure) and a dictionary, though.
But it would be nice that it were solved in further versions.

Thanks to all the developers by the way.

@usama7628674
Copy link
Contributor

usama7628674 commented Aug 8, 2018

@lordxiniog So you didn't use evil twin method of airgeddon.Did your chipset(RTL8812AU) work properly with airgeddon?

@lordxiniog
Copy link
Author

@usama7628674, Indeed I tried, but I got some errors as well (I can send you screenshots if needed, though I don't think this is the appropriate channel to do so).

However, I did use the Offline password tool recovery from Airgeddon to get the pass.

deltaxflux pushed a commit that referenced this issue Aug 13, 2018
- Move external git repository to fluxion
- Modify fluxion internals
- Fix issue #587, check if systemd-resolver is running and kill it
- Fix issue #579, kill running network manager service
- Rewrite instructions
- Bump revision
@Gvain
Copy link

Gvain commented Aug 26, 2018

I got the same problem stuck at Starting AP service. But I successfully use evil twin method of Airgeddon without any change.
My OS is Kali 2018.04 (4.15.0-kali2-amd64), and WIFI driver is ath9k, chipset (Qualcomm Atheros AR9285 Wireless Network Adapter)

@usama7628674 @deltaxflux

@usama7628674
Copy link
Contributor

@Gvain Yes fluxion throws kernal bug but airgeddon is right.I wonder why?

@anuselesscharacter
Copy link

Having same issue in latest release.

@FluxionNetwork FluxionNetwork deleted a comment from usama7628674 Sep 6, 2018
@anuselesscharacter
Copy link

@usama7628674 bro that's not the comment I expected.

@deltaxflux
Copy link
Member

Ok, I will take a look on it. You tried fluxion 5.6 ?

@anuselesscharacter
Copy link

yes.

@hasanalizxc
Copy link

#212

Your wifi adapter's chipset is NOT compatible with hostapd.

@merlon2018
Copy link

Can you help me with this ?
root@kali:~/fluxion/scripts# ./diagnostics.sh wlan0

FLUXION Info

FLUXION V5.6

BASH Info

GNU bash, version 4.4.12(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

Interface (wlan0) Info

Device: phy0
Driver: iwlwifi
Chipset: Intel Corporation Centrino Ultimate-N 6300 (rev 35)
Master Modes Yes
Injection Test: ./diagnostics.sh: line 65: /usr/sbin/aireplay-ng: Input/output error
Failed

XTerm Infos

Version: XTerm(331)
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

./diagnostics.sh: line 88: /usr/bin/python2: Input/output error
./diagnostics.sh: line 89: /usr/bin/pyrit: Input/output error
Scapy Version:
Warning: Pyrit has been reported to be incompatible with scapy version 2.4.0 and above. 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.14.0-kali3-amd64 (devel@kali.org) (gcc version 7.2.0 (Debian 7.2.0-18)) #1 SMP Debian 4.14.12-2kali2 (2018-01-11)

Chipset

Chipset: iwlwifi
Don't reseve all required information

@strasharo
Copy link
Contributor

You have an issue with your Linux install, commands are failing. This has nothing to do with fluxion itself.

@merlon2018
Copy link

@strasharo I've installed linux 2018.1 using unetbootin do I have to change any options ? Also is my chipset compatible with fluxion's attacks. Thank you for your answers :)

@icnahom
Copy link

icnahom commented Feb 8, 2020

Here's a fix:
Make sure you run "airmon-ng check kill" before you run fluxion.
Or I think "./fluxion.sh -k" should do the trick as well. But try the above command.

@quycao
Copy link

quycao commented Feb 18, 2020

Here's a fix:
Make sure you run "airmon-ng check kill" before you run fluxion.
Or I think "./fluxion.sh -k" should do the trick as well. But try the above command.

You are save my time. Thank you!

@miracle224
Copy link

20200409_024849
Hi, I got the same problem. Any option? How dono Fix it. Im using wifislax and fluxion 6.5

@xpz3
Copy link
Contributor

xpz3 commented Apr 9, 2020

Before starting fluxion restart your pc/laptop and then in a terminal run the command
airmon-ng check kill
After that run fluxion

@miracle224
Copy link

miracle224 commented Apr 9, 2020

Thx, I dont it is work, cruz i got another problem. Idk why handshake does not capture de file.

20200409_141718
20200409_141702

Yesterday it did. Even that I used fluxion 2 and I could get handshake quickly corrupted but quick. Any sugges?

@xpz3
Copy link
Contributor

xpz3 commented Apr 9, 2020

Try restarting the pc or vm then run airmon-ng check kill and then try handshake again. Handshake capture works only if the target ap has clients connected to it.

@miracle224
Copy link

Thx u máster, its work 100%. Another cuestión. Is there any guide for edit Index of the sites?

@BlackNight192
Copy link

same problem here i did everything but it doesn't fix...

@thiago3384
Copy link

Estou com o mesmo problema

@blank29
Copy link

blank29 commented Nov 17, 2020

same problem, I'll listen.

@cjb900
Copy link
Collaborator

cjb900 commented Nov 17, 2020

@blank29 if you are having issues starting the captive portal and the above mentioned fixes do not help. this is usually a cause of the the chipset in the wifi adapter you are using not supporting VIF or AP mode. If thats the case you would have to either see if you can find a driver/firmware that can make that adapter work or look into getting a new adapter all together that is known to work properly for wifi hacking

@blank29
Copy link

blank29 commented Nov 17, 2020

@ blank29 jika Anda mengalami masalah saat memulai portal tawanan dan perbaikan yang disebutkan di atas tidak membantu. ini biasanya karena chipset di adaptor wifi yang Anda gunakan tidak mendukung mode VIF atau AP. Jika itu masalahnya, Anda harus melihat apakah Anda dapat menemukan driver / firmware yang dapat membuat adaptor itu berfungsi atau mencari adaptor baru yang semuanya berfungsi dengan baik untuk peretasan wifi.

actually I don't really understand what you mean. because this is the 3rd day i use kali linux. but if you can teach me patiently, I will be very grateful and hope to be friends with you. yesterday I tried to hack wifi with aircrak, using wordlist and it worked fine. but brutforce was very inefficient in my opinion, so I looked for other ways. and I found fluxion on the internet, when I tried it for the first time, it was stuck in the initial process (wifi scan). until finally resolved with the command airmon-ng check kill. but now there is another problem in the captive portal, I still think the problem is in fluxion. sorry for the developers, this is because to get a handshake with aircrack is very easy, but in fluxion it has problems as I explained earlier.

@cjb900
Copy link
Collaborator

cjb900 commented Nov 17, 2020

so getting a handshake has nothing to due with fluxion creating the captive portal. To do that you have to have a wifi adapter/chipset that supports AP mode(used to create the fake AP with the captive portal) and support VIF (which is used to both deauth at the same time as creating the fake AP). If the wifi adapter you are using does not support both of those there is no way for fluxion to get past the "starting captive portal access point service". So just because your wifi adapter works for other types of wifi hacking does not mean it will work for an evil twin attack which is what fluxion is performing.

@blank29
Copy link

blank29 commented Nov 17, 2020

Oh, I see. thanks, then I'll try Airgedon. Or maybe you can tell me what to do to solve this. I followed this video when running fluxion .. https://youtu.be/mnsx6dIoGyU

@cjb900
Copy link
Collaborator

cjb900 commented Nov 17, 2020

Well since you were unable to create the captive portal with fluxion you most likely will run into issues with airgeddon as well. But without knowing what wifi adapter you have I can't say for sure on that. Can you post a screenshot of sudo airmon-ng && sudo iw list | grep "Supported interface modes" -A 8 from a terminal

@blank29
Copy link

blank29 commented Nov 17, 2020

sorry i'm at work right now, will try to come back later tonight. oh yes I remembered ... when I use windows 10, I can use wifi and turn on the hostpot, I think this is a process related to how the fluxion captive portal works, is it true ??? but until now I can't turn on the hostpot at kali linux while using wifi .. wifi always turns off when I try to open the hostpot, and it fails. is it true that all this is related ?? thanks for your time.

@cjb900
Copy link
Collaborator

cjb900 commented Nov 17, 2020

Well, the drivers/firmware from Windows to Linux does not always have the same feature parity. So just because you are able to do something in Windows does not always mean you will be able to in Linux. So I'm not surprised you can create a hotspot in Windows and not in Kali.

@blank29
Copy link

blank29 commented Nov 18, 2020

Well since you were unable to create the captive portal with fluxion you most likely will run into issues with airgeddon as well. But without knowing what wifi adapter you have I can't say for sure on that. Can you post a screenshot of sudo airmon-ng && sudo iw list | grep "Supported interface modes" -A 8 from a terminal

Screenshot 2020-11-18 20:01:09

@cjb900
Copy link
Collaborator

cjb900 commented Nov 18, 2020

So based of the supported interfaced that adapter supports AP and VIF. So in theory it should work. But I don't have this adapter so I have no way to test this. Also being that its an internal wifi adapter they are notoriously problematic. Some have nothing but problems with them and others have no issues at all. They also have limited range for when deauthing and creating an AP so they are not recommended unless the AP you are attacking is right next to you. You can try running airmon-ng check kill before running fluxion and see if that helps. If not you are going to have to look into getting a USB wifi adapter. I have listed some known supported ones below

Atheros AR9271 <- present in TP-Link TL-WN722N v1 or Alfa AWUS036NHA (2.4Ghz - USB)
Ralink RT2770 <- present in Alfa AWUS051NH (2.4Ghz/5Ghz - USB)
Ralink RT3070 <- present in TP-Link TL-WN7200ND or Alfa AWUS036NH (2.4Ghz - USB)
Ralink RT3572 <- present in Alfa AWUS052NHS (2.4Ghz/5Ghz - USB)
Ralink RT5372 <- present in D-Link DWA-137 (2.4Ghz - USB)
Ralink RT5572 <- present in Panda PAU09 (2.4Ghz/5Ghz - USB)
Realtek RTL8723BE <- present in Realtek RTL8723BE card (2.4Ghz - PCIe)

@blank29
Copy link

blank29 commented Nov 18, 2020

finally you come, I have run airmon-ng check kill yesterday. and it's disappointing .... but if you have time now I'll try and report whatever happens.

@cjb900
Copy link
Collaborator

cjb900 commented Nov 18, 2020

well if everything you have tried does not get it to work and the only issue is that it will not get past "Starting captive portal". You can try and make sure everything in kali is up to date with sudo apt update && sudo apt upgrade -y && sudo apt dist-upgrade -y and see if that makes any difference. You could also try a different OS like Parrot OS and see if that works. But that's not a guarantee either. As mentioned before I don't have this adapter so unless there is someone else here with that exact card and has been able to get it to work you are just going to have to look into getting an external USB wifi adapter. As mentioned before internal wifi adapters are notoriously problematic for some and most of the time there is no easy fix other than to switch to a known good card/chipset.

@blank29
Copy link

blank29 commented Nov 18, 2020

I have tried everything but failed, but then I changed targets .. it worked fine. thanks for the time ... nice to meet you

@messaouddhia
Copy link

Seems to be not fixed in 2021.

@cjb900
Copy link
Collaborator

cjb900 commented Jul 21, 2021

@messaouddhia this is normally not an actual issue with fluxion. 99% of the time i see this is when you are not using a wifi adapter/chipset that supports AP mode or VIF. meaning the card can not create the fake AP or it can't deauth and create teh fake AP at the same time. This can also sometimes be ab issue of the network manager in your OS. You can try running sudo ./fluxion.sh -k and see if that help. If not you will most likely have to look into getting a new wifi adapter with a supported chipset.

@Delayless
Copy link

choose the "airbase-ng" instead of "hostapd"

@messaouddhia
Copy link

messaouddhia commented Jan 8, 2022

@Delayless It worked omg!, thank you i truly appreciate it man !

@r0x5r
Copy link

r0x5r commented Jul 15, 2022

@ZiedHf Run the diagnostic script and paste the output here.

where is diagnostic scipt

@cjb900
Copy link
Collaborator

cjb900 commented Jul 15, 2022

@rohit0x5 it can be found under fluxion/scripts/ there you can find the diagnostics.sh

@Jaypanchal1401
Copy link

I have same issue i tried all commands but didn't work

@cjb900
Copy link
Collaborator

cjb900 commented Nov 22, 2022

@Jaypanchal1401 commenting on old issues is not going to get anyone to help you. Create a new issue and fill out the issue template and then we can help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority: High Type: Bug The issue is a bug, and has been proven to be reproducible across multiple users.
Projects
None yet
Development

No branches or pull requests