Giter Site home page Giter Site logo

kxws888 / tamperchrome Goto Github PK

View Code? Open in Web Editor NEW

This project forked from google/tamperchrome

0.0 1.0 0.0 41 KB

Tamper Chrome is a Chrome extension that allows you to modify HTTP requests on the fly and aid on web security testing. Tamper Chrome works across all operating systems (including Chrome OS).

Home Page: https://chrome.google.com/webstore/detail/tamper-chrome-extension/hifhgpdkfodlpnlmlnmhchnkepplebkb/

License: Apache License 2.0

JavaScript 87.54% CSS 8.92% HTML 3.54%

tamperchrome's Introduction

Tamper Chrome is a Chrome extension that allows you to modify HTTP requests on the fly and aid on web security testing. Tamper Chrome works across all operating systems (including Chrome OS).

Want to know how to use Tamper Chrome?

If you have any more questions feel free to post to the group.

How to open Tamper Chrome?

  1. First of all, you need to open Google Chrome DevTools.

    To do that, open the Chrome menu Chrome menu at the top-right of your browser window, then select More Tools > Developer Tools.

    Chrome Developer Tools

    You can find more help here.

    Make sure to close and re-open every Dev Tools after installing Tamper Chrome.

  2. After that, you will find a new tab called "Tamper" at the top-right side, and click on it.

    Tamper menu

How to use Tamper Chrome?

Tamper Chrome

Tamper Chrome has 6 different tools which do slightly different things as described below. You have to individually activate each tool.

To do so, simply click on the checkbox next to the tool's name, and this will mark the tool as active.

Active

In the following section we explain how to use each tool.

Block / Reroute Requests

This tool allows you to either block or redirect a request from the browser, for example, if a website is requesting a minified version of jQuery, you can redirect it to the unminified version of jQuery.

You can do that by simply changing the URL and clicking Allow.

Block

You can also click on Edit javascript and Edit stylesheets, which will allow you to modify the javascript and CSS code itself.

Note that by clicking ignore requests, you will let all requests pass through.

Request Headers

While Block / Reroute requests is useful to tamper with a website, and cancel some requests, in many cases you might want to modify HTTP request headers.

This tool will allow you to do just that.

Headers

You can drop a header by clicking on the Trash icon, or copy it's value by clicking on the Copy icon. You can add a new header by clicking on the [ new ] button.

Response Headers

The response headers work exactly the same as the request headers. It allows you to drop, modify or add new headers.

Response

Very useful for dropping or modifying many security headers like Content-Security-Policy, X-Frame-Options, X-XSS-Protection, etcetera.

Monitor PostMessages

Unlike the other tools, this tool is mostly only useful for monitoring websites that use the HTML5 postMessage API.

When activated, it does the following:

  • It logs every message received on all iframes in the current tab. log
  • It sets a breakpoint on every handler that listens to postMessage. breakpoint

Monitor Reflected XSS

Another very cool feature of Tamper Chrome is that it allows you to debug XSS vulnerabilities a bit better.

When testing for XSS, you can use <tc-xss> as an HTML element (it also works as an attribute, and as a javascript variable - you can also use <tamperchrome> and <tcxss>), and Tamper Chrome will automatically detect it, and show you where it is and the stack trace from where it was generated. Particularly useful for DOM XSS.

tcxss

Replay Requests (Experimental)

The last tool in Tamper Chrome is to replay and modify requests. This is particularly useful because it allows you to modify POST requests including their body (or make POST requests into GET requests), that otherwise would be difficult or impossible.

replay

Note that if you modify the request, then a new request will be generated, which in turn you will be allowed to modify. So make sure to leave at least one request unmodified so the requests stop showing up.

NOTE

This is not an official Google product.

tamperchrome's People

Contributors

sirdarckcat avatar

Watchers

guanhui.fu avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.