Skip to content

collectvars collects JavaScript variables, highlights risky ones, and helps you understand code structure, while you casually browse.

License

Notifications You must be signed in to change notification settings

sametsahinnet/collectvars

Repository files navigation


collectvars
collectvars

collectvars highlights risky variables, and helps you understand code structure, while you casually browse.

Key FeaturesInstallDemoCreditsSimilar ProjectsLicense

collectvars demo

Key Features

  • No effort required
    • Alerts you when risky variables are detected while browsing
  • Customizable
    • Use custom wordlists and variable names for scanning (list/watchlist.txt)
    • Supports RegExp, examples:
      • ^.*secret.*$
      • ^.*password.*$
      • ^.*api[_-]?key.*$
      • ^.token.$
  • Scan external libraries
    • Checks variables from imported JS files
  • Highlight dangerous variables
    • Shows only risky variables
  • Ignore common libraries
    • Skips popular libraries like Google Analytics, Tracking, Advertising (list/denylist.txt)
  • Ignore short variables
    • Doesn't display variables shorter than 3 chars, as they are likely minified variables
  • Copy all variables/values with one click

Install

  1. Download as ZIP and unpack, or git clone
  2. Enable Developer Mode in Extensions tab
  3. Click Load Unpacked
  4. Select collectvars folder
  5. Done!

Here is a video showing how to install a Chrome extension: How to install unpacked extensions in chrome

Demo

See collectvars in action here: https://sametsahin.net/posts/bug-bounty-top-programs/

Credits

Similar Projects

Contributing

This was a weekend project with no plans for new features. However, I'm open to ideas and contributions. Feel free to implement something if you'd like :)

License

GPLv3