navicat 试用

仅供学习交流

Windows篇

$keys = $clsid = [];
 
@exec('reg query HKEY_CURRENT_USER\Software\PremiumSoft\Data', $keys);
$keys = array_filter($keys);
 
@exec('reg query HKEY_CURRENT_USER\Software\Classes\CLSID', $clsid);
$clsid = array_filter($clsid);
 
$info = [];
foreach ($clsid as $val) {
  @exec("reg query {$val}", $info);
  foreach ($info as $v) {
    if ($val.'\Info'==$v) {
      $keys[] = $v;
      break;
    }
  }
  unset($info);
}
 
if (empty($keys)) {
  echo "navicat has been actived!!!\n";
  die;
}
 
foreach ($keys as $val) {
  @exec("reg delete {$val} /f");
}
 
echo "navicat actived\n";

 

你可能感兴趣的:(navicat 试用)