Last active
April 12, 2022 18:13
-
-
Save ertugrulturan/ec1eba7219babf52177c9bb5a5dc2eca to your computer and use it in GitHub Desktop.
Yoncu Hide User Remover
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if [ $(id -u) != 0 ] | |
then | |
echo "Root yetkisi olmadan calistiramazsiniz!" | |
exit 1 | |
fi | |
#zarari kullaniciyi ekrana yazdir | |
echo "zarari kullanici(varsa yazar yoksa bostur):" | |
cat /etc/passwd | grep psalics | |
sleep 3 | |
#temiz kurulum plesk root cron unda tek olan veriyi tum icerigi silerek guncelliyoruz | |
echo '47 23 * * * /usr/sbin/ntpdate -b -s 0.pool.ntp.org' > /var/spool/cron/root | |
#zararli kullaniciyi sistem uzerinden siliyoruz | |
sed -i '/psalics ALL=(ALL) NOPASSWD:ALL/d' /etc/sudoers | |
killall -u psalics | |
userdel -r psalics | |
#gozden kacmis gecmiste olmus olabilicek her turlu isleme karsilik baglatıyı engelliyoruz | |
echo '127.0.0.1 plesktrial.yoncu.com' >> /etc/hosts | |
echo '127.0.0.1 yoncu.com' >> /etc/hosts | |
clear | |
echo "Islem Tamamlandi! -Layer.web.tr- Zehri bilmeyen panzehir uretemez." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment