get persistence in Linux systems w\o root permisions
1. CronJobs
The script will add these two lines of code to the Crontab configuration file.
Thanks to this you will be receiving a shell EVERY MINUTE
2. SHELL CONFIG FILE
The script will add these two lines of code to the BASH and ZSH terminal configuration file.
Thanks to this you will be receiving a shell every time the user opens a terminal
3. SSH PRIVATE KEY
This part of the code simply gives you the id_rsa file to be able to login via SSH
4. WEB SERVER
This part simply checks if there is any web server available and adds a PHP file with which you can execute system commands thanks to the CMD parameter that travels via GET
Finally the script deletes itself and a file created during its execution permanently and untraceable with the command: shred