How to tamper a MS word document being downloaded from a website

4 posts, 1 answers
  1. jjs
    jjs avatar
    2 posts
    Member since:
    Dec 2015

    Posted 27 Dec 2015 Link to this post

    I am testing a website.  I had success in altering the HTTP request and headers etc - as a man in the middle.  Now I want to be able to alter the contents of an MS Word (.doc or .docx) or .txt file being downloaded by the browser.  I am unable to do it. Can any body tell me how this can be done.  Please help. 
  2. Answer
    Eric Lawrence
    Admin
    Eric Lawrence avatar
    833 posts

    Posted 28 Dec 2015 Link to this post

    Hi, jjs--

    It would be helpful if you explain exactly what you've tried to do thus far, and what exactly happened when you did it. Modification of text files is no different than modification of HTML files; modification of .doc/.docx files is only slightly different insofar as you need to use the Inspectors that work with binary content (e.g. the HexView) and avoid those that only work with textual content (e.g. the TextView).

    Regards,
    Eric Lawrence
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. jjs
    jjs avatar
    2 posts
    Member since:
    Dec 2015

    Posted 03 Jan in reply to Eric Lawrence Link to this post

    Hi Eric, thank you for your reply.  It helped me take another look at the HTTP response being intercepted and I realised that the content of the file being downloaded too was available in the intercepted response body.  I was able to make modifications to the text portions of the .doc or .xls file that was being downloaded.  I was able to get my work done.  

    Thank you.

    Regards,

    JJS Anand.

  4. Boyan Boev
    Admin
    Boyan Boev avatar
    1045 posts

    Posted 04 Jan Link to this post

    Hello JJS Anand,

    We are glad you have done your work!

    Regards,
    Boyan Boev
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top