Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not run #131

Open
emilyanncr opened this issue Jan 14, 2023 · 0 comments
Open

Does not run #131

emilyanncr opened this issue Jan 14, 2023 · 0 comments

Comments

@emilyanncr
Copy link

Hello,
I'm unable to run the python files. See the below output.
You can see I've installed the requirements and am attempting to run the file using: python3, python2.7, python2 and python. All resulted in an error. This is the umpteenth tool on github that faces this issue. I don't think there's an API attack tool that even works anymore, which is disappointing.

┌──(kali㉿kali)-[~/Astra]
└─$ ls
API Dashboard LICENSE modules requirements.txt
astra.py Dockerfile logs Payloads utils
core docs mkdocs.yml README.md

┌──(kali㉿kali)-[~/Astra]
└─$ pip3 install -r requirements.txt
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: requests in /usr/lib/python3/dist-packages (from -r requirements.txt (line 1)) (2.28.1)
Requirement already satisfied: logger in /usr/local/lib/python3.10/dist-packages (from -r requirements.txt (line 2)) (1.4)
Requirement already satisfied: pymongo in /usr/local/lib/python3.10/dist-packages (from -r requirements.txt (line 3)) (4.3.3)
Requirement already satisfied: ConfigParser in /usr/local/lib/python3.10/dist-packages (from -r requirements.txt (line 4)) (5.3.0)
Requirement already satisfied: pyjwt in /usr/lib/python3/dist-packages (from -r requirements.txt (line 5)) (2.6.0)
Requirement already satisfied: flask in /usr/lib/python3/dist-packages (from -r requirements.txt (line 6)) (2.2.2)
Requirement already satisfied: sqlmap in /usr/local/lib/python3.10/dist-packages (from -r requirements.txt (line 7)) (1.7)
Requirement already satisfied: dnspython<3.0.0,>=1.16.0 in /usr/lib/python3/dist-packages (from pymongo->-r requirements.txt (line 3)) (2.2.1)

┌──(kali㉿kali)-[~/Astra]
└─$ python3 astra.py
File "/home/kali/Astra/astra.py", line 46
print "[-]Failed to Parse collection"
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?

┌──(kali㉿kali)-[~/Astra]
└─$ python2 astra.py
Traceback (most recent call last):
File "astra.py", line 14, in
from core.zapscan import *
File "/home/kali/Astra/core/zapscan.py", line 20, in
from utils.db import Database_update
File "/home/kali/Astra/utils/db.py", line 1, in
from pymongo import MongoClient
ImportError: No module named pymongo

┌──(kali㉿kali)-[~/Astra]
└─$ python2.7 astra.py
Traceback (most recent call last):
File "astra.py", line 14, in
from core.zapscan import *
File "/home/kali/Astra/core/zapscan.py", line 20, in
from utils.db import Database_update
File "/home/kali/Astra/utils/db.py", line 1, in
from pymongo import MongoClient
ImportError: No module named pymongo

┌──(kali㉿kali)-[~/Astra]
└─$ python astra.py
File "/home/kali/Astra/astra.py", line 46
print "[-]Failed to Parse collection"
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?

┌──(kali㉿kali)-[~/Astra]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant