From d1ebce28e093d9cdd9bcf3ebae4f2efaf1366c51 Mon Sep 17 00:00:00 2001 From: dnomd343 Date: Wed, 10 Aug 2022 21:26:36 +0800 Subject: [PATCH] feat: vlmcs check --- src/Check.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/Check.php diff --git a/src/Check.php b/src/Check.php new file mode 100644 index 0000000..4842b95 --- /dev/null +++ b/src/Check.php @@ -0,0 +1,15 @@ +isAlive()); // wait vlmcs exit + preg_match_all('/Sending activation request \(KMS V6\)/', $vlmcs->getStdout(), $match); + return count($match[0]) != 0; +} + +$host = 'kms.343.re'; +echo "check $host -> "; +echo (kmsCheck($host) ? 'yes' : 'no') . PHP_EOL;