Linux evo.fastest-server.com 5.14.0-284.1101.el9.tuxcare.11.els11.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Aug 14 13:30:35 UTC 2026 x86_64
LiteSpeed
Server IP : 103.249.112.113 & Your IP : 216.73.217.135
Domains : 988 Domain
User : tanishks
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
src /
lsws /
lsws-6.1.2 /
admin /
misc /
Delete
Unzip
Name
Size
Permission
Date
Action
RSAKeyImport.php
5.33
KB
-rw-r--r--
2013-12-22 23:42
admpass.sh
1.17
KB
-rwxr-xr-x
2015-09-01 14:03
ap_lsws.sh.in
1.82
KB
-rwxr-xr-x
2019-10-02 15:23
awstats_install.sh
2.06
KB
-rwxr-xr-x
2019-01-09 15:40
build_ap_wrapper.sh
624
B
-rwxr-xr-x
2013-12-22 23:42
chroot.sh
7.31
KB
-rwxr-xr-x
2023-06-16 14:32
cleancache.sh
1.46
KB
-rw-r--r--
2021-07-13 22:21
cleanlitemage.sh
2.4
KB
-rw-r--r--
2016-02-15 17:49
cp_switch_ws.sh
22.12
KB
-rw-r--r--
2023-03-02 20:05
cpanel_restart_httpd.in
732
B
-rwxr-xr-x
2013-12-22 23:42
create_admin_keypair.sh
336
B
-rwxr-xr-x
2015-09-01 14:03
enable_ruby_python_selector.sh
4.12
KB
-rwxr-xr-x
2023-06-09 17:15
fix_cagefs.sh
766
B
-rwxr-xr-x
2022-01-14 21:16
fp_install.sh
1.65
KB
-rwxr-xr-x
2016-11-22 15:20
gdb-bt
25
B
-rw-r--r--
2016-06-26 22:16
genjCryptionKeyPair.php
6.43
KB
-rw-r--r--
2015-09-01 14:03
gzipStatic.sh
272
B
-rwxr-xr-x
2013-12-22 23:42
htpasswd.php
103
B
-rw-r--r--
2023-02-17 17:37
lscmctl
14.58
KB
-rwxr-xr-x
2021-12-08 15:14
lshttpd.service
658
B
-rw-r--r--
2026-09-04 10:51
lshttpd.service.in
607
B
-rw-r--r--
2022-11-29 18:30
lsup.sh
2.8
KB
-rwxr-xr-x
2013-12-22 23:42
lsup5.sh
4.17
KB
-rwxr-xr-x
2019-02-26 18:00
lsup5v2.sh
5.63
KB
-rw-r--r--
2020-06-18 22:27
lsup6.sh
5.65
KB
-rwxr-xr-x
2022-12-30 17:26
lsws.rc
1.78
KB
-rw-r--r--
2026-09-04 10:51
lsws.rc.gentoo
441
B
-rw-r--r--
2026-09-04 10:51
lsws.rc.gentoo.in
390
B
-rw-r--r--
2013-12-22 23:42
lsws.rc.in
1.77
KB
-rw-r--r--
2017-10-26 18:15
mgr_ver.sh
1.93
KB
-rwxr-xr-x
2018-08-27 16:46
php.ini
37.11
KB
-rw-r--r--
2017-10-26 18:15
purge_cache_by_url
3.23
KB
-rwxr-xr-x
2018-12-13 02:48
rc-inst.sh
5.99
KB
-rwxr-xr-x
2022-12-12 22:18
rc-uninst.sh
4.61
KB
-rwxr-xr-x
2022-12-12 22:18
uninstall.sh
2.9
KB
-rwxr-xr-x
2020-02-13 21:58
update.sh
1.85
KB
-rwxr-xr-x
2019-09-30 22:24
Save
Rename
<?php /** * RSAKeyImport * * PHP versions 4 and 5 * * LICENSE: This source file is subject to version 3.0 of the PHP license * that is available through the world-wide-web at the following URI: * http://www.php.net/license/3_0.txt. If you did not receive a copy of * the PHP License and are unable to obtain it through the web, please * send a note to license@php.net so we can mail you a copy immediately. * * Many of the functions in this class are from the PEAR Crypt_RSA package ... * So most of the credits goes to the original creator of this package Alexander Valyalkin * you can get the package under http://pear.php.net/package/Crypt_RSA * * This is just a simplified extraction for the PEM key import functionality and requires bcmath. * * @author Lite Speed Technologies <info@litespeedtech.com> * @copyright 2009 Lite Speed Technologies * @license http://www.php.net/license/3_0.txt PHP License 3.0 * @version 1.0.0 */ class RSAKeyImport { function bin2int($str) { $result = '0'; $n = strlen($str); do { $result = bcadd(bcmul($result, '256'), ord($str{--$n})); } while ($n > 0); return $result; } function fromPEMString($str) { // search for base64-encoded private key if (!preg_match('/-----BEGIN RSA PRIVATE KEY-----([^-]+)-----END RSA PRIVATE KEY-----/', $str, $matches)) { echo ("can't find RSA private key in the string [{$str}]"); return false; } // parse private key. It is ASN.1-encoded $str = base64_decode($matches[1]); $pos = 0; $tmp = RSAKeyImport::_ASN1Parse($str, $pos); if ($tmp == false) return false; if ($tmp['tag'] != 0x10) { echo "Expected 0x10 (SEQUENCE) wrong ASN tag value: " . $tmp['tag']; return false; } // parse ASN.1 SEQUENCE for RSA private key $attr_names = array('version', 'n', 'e', 'd', 'p', 'q', 'dmp1', 'dmq1', 'iqmp'); $n = sizeof($attr_names); $rsa_attrs = array(); for ($i = 0; $i < $n; $i++) { $tmp = RSAKeyImport::_ASN1ParseInt($str, $pos); if ($tmp === false) { echo "fail to parse int"; return false; } $attr = $attr_names[$i]; $rsa_attrs[$attr] = $tmp; } return $rsa_attrs; // create Crypt_RSA_KeyPair object. $keypair = &new KeyPair($rsa_attrs); if ($keypair == false) { return false; } return $keypair; } function _ASN1Parse($str, &$pos) { $max_pos = strlen($str); if ($max_pos < 2) { echo ("ASN.1 string too short"); return false; } // get ASN.1 tag value $tag = ord($str[$pos++]) & 0x1f; if ($tag == 0x1f) { $tag = 0; do { $n = ord($str[$pos++]); $tag <<= 7; $tag |= $n & 0x7f; } while (($n & 0x80) && $pos < $max_pos); } if ($pos >= $max_pos) { echo("ASN.1 string too short"); return false; } // get ASN.1 object length $len = ord($str[$pos++]); if ($len & 0x80) { $n = $len & 0x1f; $len = 0; while ($n-- && $pos < $max_pos) { $len <<= 8; $len |= ord($str[$pos++]); } } if ($pos >= $max_pos || $len > $max_pos - $pos) { echo ("ASN.1 string too short"); return false; } // get string value of ASN.1 object $str = substr($str, $pos, $len); return array( 'tag' => $tag, 'str' => $str, ); } function _ASN1ParseInt($str, &$pos) { $tmp = RSAKeyImport::_ASN1Parse($str, $pos); if ($tmp == false) { return false; } if ($tmp['tag'] != 0x02) { echo "Expected 0x02 (INTEGER) wrong ASN tag value: " . $tmp['tag']; return false; } $pos += strlen($tmp['str']); return strrev($tmp['str']); } function dec2string($decimal, $base) { $string = null; $base = (int) $base; if ($base < 2 | $base > 36 | $base == 10) { echo 'BASE must be in the range 2-9 or 11-36'; exit; } $charset = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ'; $charset = substr($charset, 0, $base); do { $remainder = bcmod($decimal, $base); $char = substr($charset, $remainder, 1); $string = "$char$string"; $decimal = bcdiv(bcsub($decimal, $remainder), $base); } while ($decimal > 0); return strtolower($string); } function import_and_convert($pem_filename) { $str1 = file_get_contents($pem_filename); if ($str1 == false) { echo "failed to open file $pem_filename"; return false; } $attrs = RSAKeyImport::fromPEMString($str1); if ($attrs == false) { echo "failed to parse $pem_filename"; return false; } $n_int = RSAKeyImport::bin2int($attrs['n']); $d_int = RSAKeyImport::bin2int($attrs['d']); $e_int = RSAKeyImport::bin2int($attrs['e']); $e_hex = RSAKeyImport::dec2string($e_int,16); $n_hex = RSAKeyImport::dec2string($n_int,16); $mykeys = array( 'e_hex' => $e_hex, 'n_hex' => $n_hex, 'd_int' => $d_int, 'n_int' => $n_int); return $mykeys; } } ## main # openssl genrsa -out key.pem 512 ?>