Python3 script in order to crawl through koodous api to retrieve malwares.
You can directly install the dependencies on your python with requirements.txt:
pip install -r requirements.txt
You can also create a new conda environment that will be dedicated to this project:
# create a new conda environment
conda create -n <environment_name> python=3.7
# activate the environment
conda activate <environment_name>
# install dependencies
pip install --user --requirement requirements.txt
To launch the download script, you need to either hardcode your token in malware_downloading.py or create a .env file containing your token in the following way:
KOODOUS_TOKEN=<your_koodous_tokent>
Then you can launch the script like this to download a specific number of malwares:
python malware_downloading.py <number_of_malwares>
docker build -t <image-name> .
docker run -v <local-directory-apk>:/app/apk -e KOODOUS_TOKEN=<koodous_token> <image-name> <nb-apk-to-download>
# you can add some parameters:
# --rm: remove the container at the end (highly recommended)
# -d: to run in detached mode (background)
# --name=<name>: to add a name to the container