A web application firewall (WAF) has been installed on a CentOS server, with the root username and password known, but the administrator account password unknown. The question arises, how to recover the forgotten password or reset it? Moreover, is anyone familiar with the hardware binding authorization of this WAF? The virtual machine needs to be migrated, and it is necessary to re-authorize the hardware after the migration. This article aims to provide guidance on recovering the administrator account password and authorizing the hardware binding for seamless migration.