This API will an analyze uploaded file with CAPEv2 and return analysis result as JSON files
You can start by downloading this repo with git command below
git clone https://github.com/kevoreilly/CAPEv2.git
sudo python3 utils/rooter.py -g cape
sudo -u cape python3 cuckoo.py
sudo -u cape python3 utils/process.py -p7 auto
sudo -u cape python3 manage.py runserver 0.0.0.0:8000
git clone https://github.com/omer832/capev2-api.git
Ensure you are in CAPE's web directory
cd /opt/CAPEv2/web
To create super user aka admin
python3 manage.py createsuperuser
To create normal user, use web interface /admin/ (in case if you not changed path)
By hand, only required if auth enabled and user MUST exist
python3 manage.py drf_create_token <your_user>
python3 main.py
for docker:
docker build . -t cape-api:latest
docker run -p 8001:8001 cape-api:latest
- This request gives you a task id
curl -F file=@/path/to/file http://0.0.0.0:8001/file-upload
curl -L "http://0.0.0.0:8001/ready?task_id=<your_task_id>"