(App Install/Uninstall Automation)
- The project automates the installation and uninstallation of various linux softwares using web-browser.
- Uses python-cgi for the implementation.
- The project makes system vulnerable at port 80 (http) by giving apache2 created user
www-data
sudo priviledges.
- python3
- cgi enabled
- apache2 webserver
- web browser
- Refer https://techexpert.tips/apache/apache-enable-python-cgi/ for installing and enabling python-cgi.
- Here, 2 apps are used i.e. elinks and stress for demonstration of this automation project.
- Install all the requirements.
- Paste both
test.py
andscript
at the path/usr/lib/cgi-bin/
- Not recommended step, goto file path
/etc/sudoers
and givewww-data
permission to get sudo priviledges with no-password - Restart the apache2 server and use the address
http://localhost/cgi-bin/test.py
in web-browser