Jump to content

DNSSpoof JQuery Javascript load error


Go to solution Solved by NotTheBeez,

Recommended Posts

Hello everyone.

So I've been playing around with DNS spoof for a few weeks now, and I developed a page that runs some simple javascript and jQery elements.

When I run DNS Spoof from the pineapple I have been running into a weird problem.

If I edit my DNSSpoof configurations to say.

172.16.42.1 example.com.

Then run example.com from browser the page loads up perfectly and all the Javascript and JQery elements loads and runs perfectly.

However if I edit my DNSSpoof configurations to say.

172.16.42.1 *.*

or

172.16.42.1 *

Then run any website from IE or Firefox the page loads perfectly however all the Javascript and JQery elements refuse to load.

Chrome still loads the Javascript and JQery elements no matter what I point it at.

All browsers are up to date and when tested in apache load the Javascript and JQery elements perfectly.

I'm wondering if this has something to do with the redirect page inhibiting the Javascript and JQery source files from loading, but I just don't know.

Any help would be greatly appreciated.

Link to post
Share on other sites
I'm wondering if this has something to do with the redirect page inhibiting the Javascript and JQery source files from loading, but I just don't know.

Most likely this is the problem. Are you referencing jQuery from the web or directly from the Pineapple? If it's from the web then the problem is obvious. If it's on the Pineapple it needs to be in the /www directory and you should probably try to give it a full path in the web page:

http://172.16.42.1/jquery.min.js

Since you are using *.* I'm not sure if it will attempt to redirect the reference back to 172.16.42.1 (the main page) but it might. The easiest way to figure it out is to view source in your browser and click the link that leads to the jQuery script. If it loads the source then there is no access issue. If not then you know what the problem is.

Edited by sud0nick
Link to post
Share on other sites
  • Solution

Thank you so much Hak5 Pirate,

After a half hr of newbie fumbling I managed to fallow your instructions and fix the problem.

So I downloaded jquery.min.js from Jquery.com, I dropped it into the www directory.

Then I went into my php files and changed the scripts tag to

<script type="text/javascript" src="jquery-1.11.2.min.js"></script>.

Now it's working perfectly.

Its still curious that chrome was able to managing to load the javascript from source while running in DNSspoof from the pineapple while IE and Firfox couldn't.

Maybe chrome comes with javascript already installed, I don't know enough about any of this to say either way.

anyway thanks again,

Hak5 is the best.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...