Skip to content

ProxyFilter to exclude unwanted content such as javascript and css from the proxy

License

Notifications You must be signed in to change notification settings

gdgd009xcd/ProxyFilterForScanTool

Repository files navigation

Description

When you browsing web sites through proxy, you may browser contents sometimes looks broken or hang tight because contents consists of javascript/css based such as Angular or they consists of movie streams. This is because access through proxy invoke communication timeout or hang tight. This addon allows you to directly access content that does not need to be accessed via a proxy, depending on the conditions you set in several options. This addon uses the proxy API listener onRequest to listen for requests to visit a web page,

Disclaimer

This addon uses the proxy API listener onRequest, so if you use other addons which use same onRequest listener, you may encounter problems which may not work as you think. This addon's main usecase is for detecting website vulnerabilities through proxy.

how to use

install temporaliry in development mode

  1. clone this repository into your favorite directory.
    e.g.:

    git clone https://github.com/gdgd009xcd/ProxyFilterForScanTool.git
    
  2. copy below string and paste it to the address bar of your firefox browser and press Enter.

    about:debugging#/runtime/this-firefox
    
  3. click Load temporariry Add-on... button, and select this addon's manifest.json file.
    manifest.json file is exist under ProxyFilterForScanTool folder.

install as addon

  1. go to releases page,
    download proxyfilterforscantool-nn.nn.xpi file in Assets.

  2. start firefox and copy following string and paste address bar in your firefox and press enter.

    about:addons
    
  3. click Manage Extensions icon and select install addon from file..

  4. select proxyfilterforscantool-nn.nn.xpi file.

how to configure

you can configure following options within addon's preference page.
to access preference page,
you must type Ctrl + Shift + a (same as selecting [Add-ons and themes] menu)
and click [...] and select preference menu item.

  • Proxy Settings

    • scanTargetHosts:
      The list of host to proxy. delimiter is "\n" (Note: you do NOT need to use escape sequence "\n" in this option form. simply type [Enter] Key.)

    • proxyHost: hostname of proxy server/tool. default is "127.0.0.1"

    • proxyPort: listening port number of proxyHost. default is "8040"

    • Except when mediaType matches No Proxy MediaType:
      If checked, even if you add the host to scanTargetHosts, the addon will not make a proxy access if the request matches a No Proxy Media Type.

  • No Proxy Access(Direct Access)

    • No Proxy domains:
      The list of host to direct access. delimiter is "\n" (Note: you do NOT need to use escape sequence "\n" in this option form. simply type [Enter] Key.)
      if you typed preceded "." hostname such as ".mozilla.com" then it matches any subdomain hosts of "mozilla.com"

    • Except above all No Proxy:
      If this is checked, all hosts will be accessed directly unless it is in scanTargetHosts.
      It doesn't matter if the host is in the No Proxy domains list or not.

    • No Proxy MediaType:
      The list of mediaType to direct access.
      This type is webRequest.ResourceType.
      The type of resource being requested: for example, "image", "script", or "stylesheet".

    • The PrimeHeader Regex for no proxy access:
      if request's primeheader matches this regex, then request will be send host directly.
      The primeHeader consists of HttpMethod and URL
      HttpMethod:POST/GET/PUT/HEAD ...etc.
      Regex example:

        POST http://arbitary-somewhere-domain.com.*
      
  • Option Settings Management

    • Import option settings from file: you can import settings from file which was exported by this addon.
    • Export option settings to file: you can export current option settings to file.
    • Restore option settings to factory default: if you want to reset option settings to default, you can click this button.

how to see what this addon is doing

you can see this addon's console.log by typing Ctrl + Shift + J for opening console log.
select Multiprocess(Slower) to display the log of this addon.

About

ProxyFilter to exclude unwanted content such as javascript and css from the proxy

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published