Code Monkey home page Code Monkey logo

joystick's People

Contributors

jondricek 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  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  avatar

joystick's Issues

500 Errors on Evaluations route

When trying to naviagte to the evaluations portion of this app I get the following error:
INFO:aiohttp.access:127.0.0.1 [08/Apr/2020:15:36:05 +0000] "GET /evaluations HTTP/1.1" 500 334 "http://localhost:8000/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36" ERROR:aiohttp.server:Error handling request Traceback (most recent call last): File "/usr/local/lib/python3.6/dist-packages/aiohttp/web_protocol.py", line 418, in start resp = await task File "/usr/local/lib/python3.6/dist-packages/aiohttp/web_app.py", line 458, in _handle resp = await handler(request) File "/usr/local/lib/python3.6/dist-packages/aiohttp_jinja2/__init__.py", line 122, in wrapped context = await coro(*args) File "/opt/joystick/app/api/rest_api.py", line 89, in evaluations evaluations = await self.data_svc.get_evaluations() File "/opt/joystick/app/service/data_svc.py", line 105, in get_evaluations evals = await self.get_tables() File "/opt/joystick/app/service/data_svc.py", line 54, in get_tables tables = [table for table in self.db.tables()] AttributeError: 'NoneType' object has no attribute 'tables'

Is there a way to verify my local database exists / is healthy?

UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 20837: character maps to <undefined>

Missing encoding in file open, need to line 13 in update file_svc.py :
From: with open(file) as json_file:
To: with open(file, encoding="utf8") as json_file:

This is the error I'm getting:
Traceback (most recent call last):
File "joystick.py", line 55, in
main(config_host, config_port, services)
File "joystick.py", line 36, in main
loop.run_until_complete(data_svc.load_evaluations())
File "C:\Users*\AppData\Local\Programs\Python\Python38-32\lib\asyncio\base_events.py", line 616, in run_until_complete
return future.result()
File "C:\Users*
\Downloads\MITRE_JOYSTICK\joystick\app\service\data_svc.py", line 32, in load_evaluations
results = await self.get_service('file_svc').load_json_file(evaluation)
File "C:\Users*\Downloads\MITRE_JOYSTICK\joystick\app\service\file_svc.py", line 14, in load_json_file
data = json.load(json_file)
File "C:\Users*
\AppData\Local\Programs\Python\Python38-32\lib\json_init_.py", line 293, in load
return loads(fp.read(),
File "C:\Users******\AppData\Local\Programs\Python\Python38-32\lib\encodings\cp1252.py", line 23, in decode
return codecs.charmap_decode(input,self.errors,decoding_table)[0]
UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 20837: character maps to

Joystick not start after instalation

root@kali:/home/volt# git clone --recursive https://github.com/mitre-attack/joystick.git
Cloning into 'joystick'...
remote: Enumerating objects: 153, done.
remote: Counting objects: 100% (153/153), done.
remote: Compressing objects: 100% (92/92), done.
remote: Total 153 (delta 55), reused 147 (delta 49), pack-reused 0
Receiving objects: 100% (153/153), 1.04 MiB | 1.61 MiB/s, done.
Resolving deltas: 100% (55/55), done.
root@kali:/home/volt# cd joystick/
root@kali:/home/volt/joystick# pip3 install -r requirements.txt
Requirement already satisfied: aiohttp_jinja2 in /usr/local/lib/python3.8/dist-packages (from -r requirements.txt (line 1)) (1.2.0)
Requirement already satisfied: pyaml in /usr/local/lib/python3.8/dist-packages (from -r requirements.txt (line 2)) (20.4.0)
Requirement already satisfied: pandas in /usr/lib/python3/dist-packages (from -r requirements.txt (line 3)) (0.25.3)
Requirement already satisfied: jinja2>=2.10.1 in /usr/local/lib/python3.8/dist-packages (from aiohttp_jinja2->-r requirements.txt (line 1)) (2.10.3)
Requirement already satisfied: aiohttp>=3.2.0 in /usr/lib/python3/dist-packages (from aiohttp_jinja2->-r requirements.txt (line 1)) (3.6.2)
Requirement already satisfied: PyYAML in /usr/lib/python3/dist-packages (from pyaml->-r requirements.txt (line 2)) (5.3.1)
Requirement already satisfied: MarkupSafe>=0.23 in /usr/lib/python3/dist-packages (from jinja2>=2.10.1->aiohttp_jinja2->-r requirements.txt (line 1)) (1.1.1)
root@kali:/home/volt/joystick# python joystick.py
File "joystick.py", line 24
async def init(address, port, services):
^
SyntaxError: invalid syntax
root@kali:/home/volt/joystick#

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.