RJC588 Posted September 5, 2024 Posted September 5, 2024 I understand how the module works, but I cannot figure out where the files should go in the pineapple. There is a website that talks about how to host a php server and reroute the traffic to it, but I would like to host it off of the pineapple. Can I use html off of the pineapple? Where should the file go and what should it be named? NOTE: I tried placing in the /www folder and /pineapple/modules/DNSspoof as some forums suggested but with no luck. If the website was example.com, I had the file named example.com or example.com.html, but neither worked. Quote
dark_pyrro Posted September 5, 2024 Posted September 5, 2024 Create a directory on the pineapple Put some html files that are relevant for the engagement there Start a Python http server on port 80 on the Pineapple Enter spoofed URLs that points to 172.16.42.1 in the DNSSpoof module Quote
RJC588 Posted September 6, 2024 Author Posted September 6, 2024 I was unable to serve it on port 80. I get a traceback error saying it is in use. Everything else I replicated. Does it matter what the html files are named? Quote
dark_pyrro Posted September 6, 2024 Posted September 6, 2024 You have most likely installed the Evil Portal module which makes nginx run and occupy port 80 on the Pineapple. Quote
RJC588 Posted September 6, 2024 Author Posted September 6, 2024 I have. That makes sense. Thank you. I ended up scrapping the idea altogether and attempting to host a php server on my local machine and redirect devices to it instead. So far, I have the php server running on my local ip address, I have the set website domain example.com. Whenever I am on my test device, I can pull up the local IP and confirm that the php file is being hosted. Whenever I try to visit example.com; however, it does not redirect, but instead times out. More specifically, I followed every step in this guide https://softwaretester.info/dns-hijacking-with-wifi-pineapple/ Quote
Solution RJC588 Posted September 7, 2024 Author Solution Posted September 7, 2024 I forgot to set the dnsmasq.conf file, but after setting that file, it started working. Thank you for your help. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.