Too many problem solver on the internet does not resolve the malware infection about kinsing. The kinsing malware also infected the network & listen into network port.
Check under the root ssh authorization
cat ~/.ssh/authorized_keys
| export default class Ip { | |
| /** | |
| * IPv4 regex | |
| */ | |
| public static readonly IPv4_REGEX = /^(?:[0-1]?[0-9]{1,2}|2[0-4][0-9]|25[0-5])\.(?:[0-1]?[0-9]{1,2}|2[0-4][0-9]|25[0-5])\.(?:[0-1]?[0-9]{1,2}|2[0-4][0-9]|25[0-5])\.(?:[0-1]?[0-9]{1,2}|2[0-4][0-9]|25[0-5])$/; | |
| /** | |
| * IPv6 regex | |
| * ::1 is also valid IPv6 address | |
| */ | |
| public static readonly IPv6_REGEX = /^([0-9a-fA-F]{0,4}:){1,7}([0-9a-fA-F]{1,4})$/; |
| /*! | |
| * IP Helper | |
| * | |
| * @author ArrayIterator<[email protected]> | |
| */ | |
| const IPv4_REGEX = /^(?:[0-1]?[0-9]{1,2}|2[0-4][0-9]|25[0-5])\.(?:[0-1]?[0-9]{1,2}|2[0-4][0-9]|25[0-5])\.(?:[0-1]?[0-9]{1,2}|2[0-4][0-9]|25[0-5])\.(?:[0-1]?[0-9]{1,2}|2[0-4][0-9]|25[0-5])$/; | |
| // ::1 is also valid IPv6 address | |
| const IPv6_REGEX = /^([0-9a-fA-F]{0,4}:){1,7}([0-9a-fA-F]{1,4})$/; |
| /** | |
| * Simple Password Strength Checker | |
| * ~ Password Score based on the following rules: | |
| * PasswordScore(password: string, username: string|null): number | |
| * ~ Generate Password based on the following rules: | |
| * GeneratePassword(length: number = 12): string | |
| * ~ Password Strength Level: | |
| * PASSWORD_WEAK: 0 | |
| * PASSWORD_MEDIUM: 1 | |
| * PASSWORD_STRONG: 2 |
| const Algorithms = { | |
| AES: { | |
| description: 'Advanced Encryption Standard', | |
| ivLength: 16, | |
| decryptionSupported: true, | |
| keySupported: true, | |
| publicKeySupported: false, | |
| signatureSupported: false, | |
| default: 'AES-128-CBC', | |
| algorithms: { |
| const createTrimRegexP = (e, position ='both') => { | |
| const charArray = {}; | |
| strval(e).split('').forEach((e) => { | |
| if (in_array(e, ['-', '/'])) { | |
| e = '\\' + e; | |
| } | |
| charArray[e] = e; | |
| }); | |
| let regex = `[${values(charArray).join('')}]`; | |
| switch (lower_trim(position)) { |
| <?php | |
| declare(strict_types=1); | |
| namespace ArrayIterator\Hashing; | |
| use Exception; | |
| use function chr; | |
| use function crypt; | |
| use function max; | |
| use function min; |
| // stpd! chatgpt 3.5 generated | |
| // phpDateConverter.js | |
| /** | |
| * Converts PHP date format to JavaScript date format. | |
| * @param {string} phpFormat - PHP date format string. | |
| * @returns {string} - JavaScript date format string. | |
| */ | |
| function convertPhpToJsDateFormat(phpFormat) { | |
| // Mapping of PHP date format characters to JavaScript equivalents |
| <?php | |
| declare(strict_types=1); | |
| // auto generated at : 2023-10-28T05:03:52+07:00 | |
| return [ | |
| '0-0' => [ | |
| 'range' => [ | |
| 0, | |
| 0, | |
| ], |
| <?php | |
| namespace MyNamespace; | |
| class FileResponder | |
| { | |
| protected $file = null; | |
| protected $mimetype = 'application/octet-stream'; | |
| /** |