⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.124
Server IP:
50.28.103.30
Server:
Linux host.jcukjv-lwsites.com 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
Server Software:
nginx/1.28.0
PHP Version:
8.3.12
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
www
/
server
/
mysql
/
mysql-test
/
include
/
View File Name :
check_keys_after_migration.inc
--echo # now master key is migrated --echo # access to this table should pass SELECT * FROM T; let $wl9769_destination_key1 = `SELECT hex(keyring_key_fetch('$key_name1'))`; let $wl9769_destination_key2 = `SELECT hex(keyring_key_fetch('$key_name2'))`; let $wl9769_destination_key3 = `SELECT hex(keyring_key_fetch('$key_name3'))`; let $wl9769_destination_key1_type = `SELECT keyring_key_type_fetch('$key_name1')`; let $wl9769_destination_key2_type = `SELECT keyring_key_type_fetch('$key_name2')`; let $wl9769_destination_key3_type = `SELECT keyring_key_type_fetch('$key_name3')`; let $wl9769_destination_key1_len = `SELECT keyring_key_length_fetch('$key_name1')`; let $wl9769_destination_key2_len = `SELECT keyring_key_length_fetch('$key_name2')`; let $wl9769_destination_key3_len = `SELECT keyring_key_length_fetch('$key_name3')`; --echo check if migration took place correctly --replace_result $wl9769_destination_key1 <wl9769_destination_key1> $wl9769_source_key1 <wl9769_source_key1> eval SELECT '$wl9769_destination_key1' = '$wl9769_source_key1'; --replace_result $wl9769_destination_key2 <wl9769_destination_key2> $wl9769_source_key2 <wl9769_source_key2> eval SELECT '$wl9769_destination_key2' = '$wl9769_source_key2'; --replace_result $wl9769_destination_key3 <wl9769_destination_key3> $wl9769_source_key3 <wl9769_source_key3> eval SELECT '$wl9769_destination_key3' = '$wl9769_source_key3'; eval SELECT '$wl9769_destination_key1_type' = '$wl9769_source_key1_type'; eval SELECT '$wl9769_destination_key2_type' = '$wl9769_source_key2_type'; eval SELECT '$wl9769_destination_key3_type' = '$wl9769_source_key3_type'; eval SELECT '$wl9769_destination_key1_len' = '$wl9769_source_key1_len'; eval SELECT '$wl9769_destination_key2_len' = '$wl9769_source_key2_len'; eval SELECT '$wl9769_destination_key3_len' = '$wl9769_source_key3_len'; --replace_regex /[0-9]*-[0-9]*-[0-9]* [0-9]*:[0-9]*:[0-9]*.[0-9]*/key1_timestamp/ eval SELECT keyring_key_remove('$key_name1'); --replace_regex /[0-9]*-[0-9]*-[0-9]* [0-9]*:[0-9]*:[0-9]*.[0-9]*/key2_timestamp/ eval SELECT keyring_key_remove('$key_name2'); --replace_regex /[0-9]*-[0-9]*-[0-9]* [0-9]*:[0-9]*:[0-9]*.[0-9]*/key3_timestamp/ eval SELECT keyring_key_remove('$key_name3');