Using FTP (file transfer protocol) to do code injection into the web sites.
By the way, the files are downloaded as temporary files .
The teacher wanted one file script only.
Debian 5.17.11-1kali1 GNU/Linux
https://linuxconfig.org/how-to-setup-and-use-ftp-server-in-ubuntu-linux
sudo apt-get update
sudo apt-get install vsftpd
sudo systemctl start vsftpd
pip install -r requirements
A redirect link (to my github) was injected into localhost page: