Results 1 to 3 of 3

Thread: Ettercap filter problem replacing HTTP tags

  1. #1
    Just burned his ISO
    Join Date
    Jan 2010
    Posts
    6

    Default Ettercap filter problem replacing HTTP tags

    Hi all,

    I'm working with ettercap at the moment but having an issue with injecting html.

    Replacing works fine as long as you keep the content length the same but if for example I wanted to replace a body tag with a line of javascript then the content-length header is going to cause bytes to be missing off the end of the page.

    Is there a way to parse out and recalculate the content-length on the fly or just generally a better way to do this?

    Thanks

    K

  2. #2
    Senior Member MikeCa's Avatar
    Join Date
    Jan 2010
    Location
    DC
    Posts
    129

    Default

    Have you tried modifying the value of Content-length? You are right that you must make the length match your content. It should be pretty straightforward to modify the content and then record how many bytes there are.

  3. #3
    Good friend of the forums
    Join Date
    Feb 2010
    Posts
    328

    Default

    I never could get ettercap to work right .. rey squid proxy or scapy.py ;/
    Replace *.EXE with MSF payload .. - Remote Exploit Forums

    easy rickroll proxy
    RICKROLL PROXY EASY ETTERCAP ! - House of Hackers

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •