mitmdump is a proxy which can store and modify content.
Change content of a third-party site
Scenario:
- You want to manipulate some content from a website $target visits.
- Perform ARP-poisening with Bettercap, Ettercap, the http_hijack.py script or somehow else.
- Start mitmdump in transparent mode:
mitmdump --mode transparent --replace /~s/wars/trek/
or alternatively to read the new content from a file. Note that the separator character can be changed.mitmdump --mode transparent --replace :~s:wars:@/tmp/trekfile:
This replaces all strings wars with trek in the responses (~s) filter. See here for all filter expressions. Note that you probably want to create a very specific filter expression to not create side effects or problems with other pages.
Remove HTTPS references
Add the -s sslstrip.py command and do the same as before in the change content section.
Leave a Reply
You must be logged in to post a comment.