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(...)?
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]