This repository contains all the code of our paper called 'zero-shot-pentesting'.
sudo apt install python3
curl -sSL https://install.python-poetry.org | python3 -
if you have an issue with tkinter, please install it before run the poetry env
sudo apt install python3-tk
Setup the python env:
poetry shell
poetry install
poetry update # Update dependencies
poetry shell # Activate the venv in the current shell
to launch the zero-shot model on the tiny environment of NASim
python agents/zero-shot.py --env="tiny"
to launch the zero-shot model on the small-linear environment of NASim
python agents/zero-shot.py --env="small-linear"
to launch the zero-shot model on the medium environment of NASim
python agents/zero-shot.py --env="medium"
In this repository, you can find other model to launch on the NASim environment:
- CLAP (launch agents/clap.py)
- PPO (launch agents/sb3_agent.py with argument '--agent="ppo_recurrent"')
- DQN (launch agents/sb3_agent.py with argument '--agent="dqn"')