python >= 3.6.13 requests >= 2.25.1
These instructions are targeted to macOS or Linux
-
Ensure that you have docker installed on your system.
-
The BADSEC server will run on port 8888. You can start it by running in a shell:
docker run --rm -p 8888:8888 adhocteam/noclist
-
If all goes well you should see Listening on http://0.0.0.0:8888.
- Ensure that you have Python installed on your system.
- Clone the 3111931 github repository.
- Change directories into the 3111931 directory.
- Create a virtual environment.
python -m venv 3111931-env
- Activate virtual environment.
source 3111931-env/bin/activate
- Install the equirements for 3111931.
pip install -r requirements.txt
- Ensure that the BADSEC docker container is running and listening on http://0.0.0.0:8888.
- Open a command prompt and change directories into the 3111931 repository that you cloned during setup.
- Run the application.
python noc_list.py
- You should see a JSON formatted string to stdout.
["9757263792576857988", "7789651288773276582", "16283886502782682407", "...etc"]
- Ensure that the BADSEC docker container is running and listening on http://0.0.0.0:8888.
- Open a command prompt and change directories into the 3111931 repository that you cloned during setup.
- Run the test script.
python test_noc_list_api.py