Browse Source

add decryptor

andre 5 years ago
commit
f1b06ea1db
1 changed files with 7 additions and 0 deletions
  1. 7 0
      whmcs_decrypt.php

+ 7 - 0
whmcs_decrypt.php

@@ -0,0 +1,7 @@
+<?php
+require_once(__DIR__ . '/../../../init.php');
+$decrypt = localAPI('DecryptPassword', array('password2' => "$argv[1]"));
+if ($decrypt['result'] == 'success') {
+	   echo $decrypt['password'] . PHP_EOL;
+}
+