Giter Site home page Giter Site logo

fallibleinc / retirejslib Goto Github PK

View Code? Open in Web Editor NEW
46.0 46.0 7.0 38 KB

Scan for vulnerabilities in JavaScript libraries you use (Python port of retirejs)

Home Page: https://pypi.python.org/pypi/retirejs

License: Apache License 2.0

Python 100.00%

retirejslib's People

Contributors

abhishek-anand avatar mkagenius avatar sitz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

retirejslib's Issues

IndexError: no such group

retirejs.scan_endpoint("https://apis.google.com/js/plusone.js")

---------------------------------------------------------------------------
IndexError                                Traceback (most recent call last)
<ipython-input-16-994defb48f3e> in <module>()
----> 1 retirejs.scan_endpoint("https://apis.google.com/js/plusone.js")

~/Jupyter/venv/lib/python3.6/site-packages/retirejs/retirejs.py in scan_endpoint(uri, definitions)
    172     hosted at that uri
    173     """
--> 174     uri_scan_result = scan_uri(uri, definitions)
    175 
    176     filecontent = requests.get(uri, verify=False).text

~/Jupyter/venv/lib/python3.6/site-packages/retirejs/retirejs.py in scan_uri(uri, definitions)
    144 
    145 def scan_uri(uri, definitions=definitions):
--> 146     result = scan(uri, 'uri', definitions=definitions)
    147     return check(result)
    148 

~/Jupyter/venv/lib/python3.6/site-packages/retirejs/retirejs.py in scan(data, extractor, matcher, definitions)
     23             continue
     24         for i in extractors:
---> 25             match = matcher(i, data)
     26             if (match):
     27                 detected.append({"version": match,

~/Jupyter/venv/lib/python3.6/site-packages/retirejs/retirejs.py in _simple_match(regex, data)
     33 def _simple_match(regex, data):
     34     match = re.search(regex, data)
---> 35     return match.group(1) if match else None
     36 
     37 

IndexError: no such group

ImportError: No module named 'vulnerabilities'

When trying to import retirejs after installing it with pip I get the following error:

Python 3.5.1 (default, Mar 3 2016, 09:29:07)
[GCC 5.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.

import retirejs
Traceback (most recent call last):
File "", line 1, in
File "/usr/lib/python3.5/site-packages/retirejs/init.py", line 2, in
from .retirejs import (scan_endpoint,
File "/usr/lib/python3.5/site-packages/retirejs/retirejs.py", line 2, in
from vulnerabilities import definitions
ImportError: No module named 'vulnerabilities'

Any ideas on what could cause this?

Recommend Projects

  • React photo React

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

  • Vue.js photo Vue.js

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

  • Typescript photo Typescript

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

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

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

Recommend Topics

  • javascript

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

  • web

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

  • server

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

  • Machine learning

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

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

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

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

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

  • D3 photo D3

    Data-Driven Documents codes.