Jump to content

[Official] DNSMasq Spoof


Recommended Posts

  • 4 weeks later...
Posted

Hello Whistle Master,

First of all I realy appreciate what you are doing in here.

I just want to report that it is also not working for me!

It is not even showing outputs, the domain that I entered to be redirected is as follow:

172.16.42.1 *

I use "*" to redirect everything for now. I ran PS via SSH and it show me the process running. Also with DNSMasq you can tell it on wish interface to run. I am here if you need any more details.

Posted

You cannot use wildcards (*) or regex within that file (e.g. you cannot say 172.16.42.1 *).

You need to know the shorthand hostname or the FQDN of what you want to return a falsified DNS A record for.

Example: 172.16.42.1 example.com www.example.com

  • 4 weeks later...
Posted

Uhm I know this is a kinda old threat but i have a Newbie Question for DNSSpoof ... it ask's me what interface i want to Spoof which one should I select ?

Posted

So when im out in the field and i have for example My mobile for a hotspot and i connect the pineapple to that Hotspot with Client mode then Wlan0 is my interface ?

  • 2 weeks later...
Posted

Have you entered a list of domains to be redirected ?

In the correct format (DNSMasq format) ?

Hi,

i entered the list of domains as "17.16.42.1 www.facebook.com facebook.com".

It worked before, but not on browsers like chrome,firefox etc. It only worked on the stock web browser of my android phone.

Also now i checked it again and it is not working at all. It is not spoofing facebook, however it did spoofed example.com.

Please tell me what the issue could be Whistle Master.

Posted

Hi,

i entered the list of domains as "17.16.42.1 www.facebook.com facebook.com".

It worked before, but not on browsers like chrome,firefox etc. It only worked on the stock web browser of my android phone.

Also now i checked it again and it is not working at all. It is not spoofing facebook, however it did spoofed example.com.

Please tell me what the issue could be Whistle Master.

The secret is to make sure your clients only use crummy browsers and they hate the letter 'S' in https. Or the onces with broken 'S' buttons.

Posted

Spoonish, does this mean Chrome on Android for example, is not a crummy browser? Lets see, crummy, do you mean IE for Windows maybe?

Where can I find information about the proper operating conditions for either DNS Spoof or DNS Masq ? What clients will / wont be fooled, etc

  • 4 months later...
Posted

I have started configuring and using DnsMarkSpoof on both Tetra and Nano and it does the job. Nevertheless, the page shown instead of the real website is not the one I want. It's always the index.php file included in the www folder. To change this, I have edited the file module.php included in /pineapple/modules/DNSMasqSpoof/api/ to point to a folder called dnsspoof at /www/dnsspoof/

            $filename = '/www/dnsspoof/index.php';
            file_put_contents($filename, $this->request->configurationData);
    }

    private function getLandingPageData()
    {
            $configurationData = file_get_contents('/www/dnsspoof/index.php');
            $this->response = array("configurationData" => $configurationData);
    }

despite this change, it's still pointing to www/index.php. What am I doing wrong?
Thank you for your help.

Posted

Nobody to resolve this issue? Not even the author of this module? I have completely analyzed the code but unfortunately, I have not found the solution. If some has gotten it or has any idea, thanks in advance... ;-)

Posted

I have started configuring and using DnsMarkSpoof on both Tetra and Nano and it does the job. Nevertheless, the page shown instead of the real website is not the one I want. It's always the index.php file included in the www folder. To change this, I have edited the file module.php included in /pineapple/modules/DNSMasqSpoof/api/ to point to a folder called dnsspoof at /www/dnsspoof/

            $filename = '/www/dnsspoof/index.php';
            file_put_contents($filename, $this->request->configurationData);
    }

    private function getLandingPageData()
    {
            $configurationData = file_get_contents('/www/dnsspoof/index.php');
            $this->response = array("configurationData" => $configurationData);
    }

despite this change, it's still pointing to www/index.php. What am I doing wrong?
Thank you for your help.

Posted
3 hours ago, Super Shaft said:

I have started configuring and using DnsMarkSpoof on both Tetra and Nano and it does the job. Nevertheless, the page shown instead of the real website is not the one I want. It's always the index.php file included in the www folder. To change this, I have edited the file module.php included in /pineapple/modules/DNSMasqSpoof/api/ to point to a folder called dnsspoof at /www/dnsspoof/

            $filename = '/www/dnsspoof/index.php';
            file_put_contents($filename, $this->request->configurationData);
    }

    private function getLandingPageData()
    {
            $configurationData = file_get_contents('/www/dnsspoof/index.php');
            $this->response = array("configurationData" => $configurationData);
    }

despite this change, it's still pointing to www/index.php. What am I doing wrong?
Thank you for your help.

I'd suggest leaving everything as-is with the module, especially if you're not familiar with programming or the module's source and use a solution like the one I've put up on pastebin. The code here would go in your index.php file.

Posted

Thank you Torrey for your help, I have found a way to resolve this issue. FYI, I use the Work Bench of "evil portal" module to get the right page in the DnsMaskSpoof module, and it works.
About your solution, it seems great. I'll test it soon. Thx.

  • 2 weeks later...

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...