- This topic has 10 replies, 2 voices, and was last updated 4 years, 5 months ago by Diego Pérez.
- AuthorPosts
- June 15, 2020 at 9:46 am #40006mz001Participant
Hello hope u well, so i tried to create a fake AP and i followed all the rules to create it and i didnt had any errors but still i dont have a internet access on my fake AP. when i load sites on my iphone it says no internet connection but in some sites it loads the html page. i tried to connect a samsung device too and it says no internet connection too.
June 15, 2020 at 12:09 pm #40013mz001ParticipantBesides that im gonna avail this section to ask one more thing:
i continued to lecture 4.10 and after changed the apache2 settings and add the rewrite rules the same way as zaid did on the video, im not being able to restart apache2 and im getting this error: “Job for apache2.service failed because the control process exited with error code. See “systemctl status apache2.service” and “journalctl -xe” for details”. when i run systemctl for details i get this:
“Jun 15 07:04:19 kali systemd[1]: Starting The Apache HTTP Server…
Jun 15 07:04:20 kali apachectl[4609]: AH00526: Syntax error on line 31 of /etc/apache2/sites-enabled/000-default.conf:
Jun 15 07:04:20 kali apachectl[4609]: Invalid command ‘RewriteEngine’, perhaps misspelled or defined by a module not included in the s>
Jun 15 07:04:20 kali apachectl[4606]: Action ‘start’ failed.
Jun 15 07:04:20 kali apachectl[4606]: The Apache error log may have more information.
Jun 15 07:04:20 kali systemd[1]: apache2.service: Control process exited, code=exited, status=1/FAILURE
Jun 15 07:04:20 kali systemd[1]: apache2.service: Failed with result ‘exit-code’.”
I already checked the apache2 settings and everything is equal to shown on the lectures.June 16, 2020 at 5:33 am #40085Diego PérezModeratorHi!
CAn you share a screenshot with the result of ifconfig BEFORE running the attack?Also share a screenshot with the contents of apache’s 000-default.conf.
Thanks!
DiegoJune 16, 2020 at 9:22 am #40098mz001Participant
June 16, 2020 at 9:37 am #40101mz001Participant
June 17, 2020 at 4:33 am #40155Diego PérezModeratorHi!
I can’t see the screenshots, where are they?
You can try to upload them to a free image hosting server and then share the links here.Let me know.
DiegoJune 17, 2020 at 10:40 am #40166mz001Participanthello Diego sorry i did that but idk what happend but there u go:
June 17, 2020 at 10:43 am #40167June 18, 2020 at 5:52 am #40192Diego PérezModeratorHi!
Did your fake captive portal was redirected properly before adding the rules? I mean when opening the browser and trying to navigate to any page?Have you tedted it with another PC or only with the mobile phones?
Let me know.
DiegoJune 18, 2020 at 10:58 pm #40260mz001Participanthi! i tried running hostapd and dnsmasq without and with the rules and i get the same result(on smartphones and Pcs): i dont have internet connection but when i try to go to html pages the browser redirects to my index.html page and i can capture the username&password on wireshark.
June 19, 2020 at 6:18 am #40285Diego PérezModeratorHi!
The attack on section 4 (Captive Portals) won’t provide internet connection, just a fake login to steal credentials, so you have achieve that. The only issue here would be the apache configuration.The attack of a fake AP using fluxion will provide internet connection.
So for the appache configuration, your file looks fine, can you try to add just the first block of rules again?I mean don’t include the ones for the iphones. did you have a backup of the original file?
Let me know.
Diego - AuthorPosts
- You must be logged in to reply to this topic.