Jump to content

Injecting HTML via MITM requires refreshing.


M47H3W

Recommended Posts

Whenever I try injecting HTML into a webpage or anything else that modifies the page through MITM it doesn't work unless I explicitly press the refresh button in the browser. I believe the pages are being cached. Is there a way to get around this?

Edited by M47H3W
Link to comment
Share on other sites

I think the neatest tool for injection is BeEF (which is on the kali distro):

cd /usr/share/beef-xss/

./beef

its has a small bit of javascript that sort of automatically refreshes the browser (hook), and allows you to inject your javascript/html on demand. At the very least, it might give you some ideas around how to correct your current problem.

Link to comment
Share on other sites

I think the neatest tool for injection is BeEF (which is on the kali distro):

cd /usr/share/beef-xss/
./beef
its has a small bit of javascript that sort of automatically refreshes the browser (hook), and allows you to inject your javascript/html on demand. At the very least, it might give you some ideas around how to correct your current problem.

While neat, it won't be injected until the previous cache expires. There is no real way to force a browser to refresh a page without loading code (such as js).

Best regards,

Sebkinne

Link to comment
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...