M47H3W Posted March 6, 2016 Share Posted March 6, 2016 (edited) 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 March 6, 2016 by M47H3W Quote Link to comment Share on other sites More sharing options...
Sebkinne Posted March 6, 2016 Share Posted March 6, 2016 You can send cache expiration headers, so pages do not get cached, but once a page is cached, you'll not be able to force a refresh. Best regards, Sebkinne Quote Link to comment Share on other sites More sharing options...
fugu Posted March 6, 2016 Share Posted March 6, 2016 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. Quote Link to comment Share on other sites More sharing options...
Sebkinne Posted March 6, 2016 Share Posted March 6, 2016 I think the neatest tool for injection is BeEF (which is on the kali distro): cd /usr/share/beef-xss/ ./beefits 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 Quote Link to comment Share on other sites More sharing options...
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.