WPZ

berkas terminal database massal sistem
/web/1/000/076/129/313906/htdocs/shop_styroporzuschnitte24_de/engine/Shopware/Components/Random.php (5.7 KB)
<?php
/**
 * Shopware 5
 * Copyright (c) shopware AG
 *
 * According to our dual licensing model, this program can be used either
 * under the terms of the GNU Affero General Public License, version 3,
 * or under a proprietary license.
 *
 * The texts of the GNU Affero General Public License with an additional
 * permission and of our proprietary license can be found at and
 * in the LICENSE file you have received along with this program.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU Affero General Public License for more details.
 *
 * "Shopware" is a registered trademark of shopware AG.
 * The licensing of the program under the AGPLv3 does not imply a
 * trademark license. Therefore any rights, title and interest in
 * our trademarks remain entirely with us.
 */

namespace Shopware\Components;

/**
 * Pseudorandom number generator (PRNG).
 *
 * This class is highly based on Rand.php of Component_ZendMath
 *
 * @category  Shopware
 * @package   Shopware\Components
 *
 * @link      https://github.com/zendframework/zf2/blob/master/library/Zend/Math/Rand.php
 * @link      https://github.com/ircmaxell/RandomLib
 *
 * @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
 * @license   http://opensource.org/licenses/bsd-license.php New BSD License
 */
abstract class Random
{
    /**
     * Generate random bytes using OpenSSL, Mcrypt, /dev/urandom and mt_rand() as fallback
     *
     * @param  integer $length
     * @param  bool $strong If true, an exception is thrown if no secure random generator is available
     * @return string
     * @throws \Exception
     */
    public static function getBytes($length, $strong = false)
    {
        if ($length <= 0) {
            return false;
        }

        return random_bytes($length);
    }

    /**
     * Generate random boolean
     *
     * @param  bool $strong true if you need a strong random generator (cryptography)
     * @return bool
     */
    public static function getBoolean($strong = false)
    {
        $byte = static::getBytes(1, $strong);

        return (bool) (ord($byte) % 2);
    }

    /**
     * Generate a random integer between $min and $max inclusive
     *
     * @param  integer $min
     * @param  integer $max
     * @param  bool $strong true if you need a strong random generator (cryptography)
     * @return integer
     * @throws \DomainException
     */
    public static function getInteger($min, $max, $strong = false)
    {
        if ($min > $max) {
            throw new \DomainException(
                'The min parameter must be lower than max parameter'
            );
        }

        return random_int($min, $max);
    }

    /**
     * Generate random float (0..1)
     * This function generates floats with platform-dependent precision
     *
     * PHP uses double precision floating-point format (64-bit) which has
     * 52-bits of significand precision. We gather 7 bytes of random data,
     * and we fix the exponent to the bias (1023). In this way we generate
     * a float of 1.mantissa.
     *
     * @param  bool $strong  true if you need a strong random generator (cryptography)
     * @return float
     */
    public static function getFloat($strong = false)
    {
        $bytes    = static::getBytes(7, $strong);
        $bytes[6] = $bytes[6] | chr(0xF0);
        $bytes   .= chr(63); // exponent bias (1023)
        list(, $float) = unpack('d', $bytes);

        return ($float - 1);
    }

    /**
     * Generate a random string of specified length.
     * Prioritizes secure random generators (OpenSSL/Mcrypt)
     * and uses a non-secure random generator as fallback
     *
     * Uses supplied character list for generating the new string.
     * If no character list provided - uses Base 64 character set.
     *
     * @param  integer $length
     * @param  string|null $charlist
     * @param  bool $strong If true, an exception is thrown if no secure random generator is available
     * @return string
     * @throws \DomainException
     */
    public static function getString($length, $charlist = null, $strong = false)
    {
        if ($length < 1) {
            throw new \DomainException('Length should be >= 1');
        }

        // charlist is empty or not provided
        if (empty($charlist)) {
            $numBytes = ceil($length * 0.75);
            $bytes    = static::getBytes($numBytes, $strong);
            return substr(rtrim(base64_encode($bytes), '='), 0, $length);
        }

        $listLen = strlen($charlist);

        if ($listLen == 1) {
            return str_repeat($charlist, $length);
        }

        $bytes  = static::getBytes($length, $strong);
        $pos    = 0;
        $result = '';
        for ($i = 0; $i < $length; $i++) {
            $pos     = ($pos + ord($bytes[$i])) % $listLen;
            $result .= $charlist[$pos];
        }

        return $result;
    }

    /**
     * Generate a random alphanumeric string of specified length.
     * Prioritizes secure random generators (OpenSSL/Mcrypt)
     * and uses a non-secure random generator as fallback
     *
     * Charlist: a-zA-Z0-9
     *
     * @param  integer $length
     * @param  bool $strong If true, an exception is thrown if no secure random generator is available
     * @return string
     * @throws \DomainException
     */
    public static function getAlphanumericString($length, $strong = false)
    {
        if ($length < 1) {
            throw new \DomainException('Length should be >= 1');
        }

        $charlist = implode(range('a', 'z')) . implode(range('A', 'Z')) . implode(range(0, 9));

        return static::getString($length, $charlist, $strong);
    }
}
namawaktuukuranownerpermaksi
..
Api/ 2016-11-07 16:02287.29 KB 76129f60960:kundendxwrx-rx-r
Auth/ 2016-11-07 16:029.48 KB 76129f60960:kundendxwrx-rx-r
Benchmark/ 2016-11-07 15:592.97 KB 76129f60960:kundendxwrx-rx-r
CategoryHandling/ 2016-11-07 15:596.7 KB 76129f60960:kundendxwrx-rx-r
Check/ 2016-11-07 16:02137.23 KB 76129f60960:kundendxwrx-rx-r
Compatibility/ 2016-11-07 15:5940.29 KB 76129f60960:kundendxwrx-rx-r
Console/ 2016-11-07 15:599.29 KB 76129f60960:kundendxwrx-rx-r
Convert/ 2016-11-07 15:5921.31 KB 76129f60960:kundendxwrx-rx-r
Cron/ 2016-11-07 15:591.8 KB 76129f60960:kundendxwrx-rx-r
DependencyInjection/ 2016-11-07 16:0289.93 KB 76129f60960:kundendxwrx-rx-r
Emotion/ 2016-11-07 15:596.4 KB 76129f60960:kundendxwrx-rx-r
Escaper/ 2016-11-07 15:595.38 KB 76129f60960:kundendxwrx-rx-r
Form/ 2016-11-07 16:0245.21 KB 76129f60960:kundendxwrx-rx-r
HttpCache/ 2016-11-07 15:5927.91 KB 76129f60960:kundendxwrx-rx-r
HttpClient/ 2016-11-07 15:59261.1 KB 76129f60960:kundendxwrx-rx-r
Install/ 2016-11-07 15:593.59 KB 76129f60960:kundendxwrx-rx-r
LegacyRequestWrapper/ 2016-11-07 15:599.77 KB 76129f60960:kundendxwrx-rx-r
License/ 2016-11-07 16:0218.86 KB 76129f60960:kundendxwrx-rx-r
Log/ 2016-11-07 16:0233.09 KB 76129f60960:kundendxwrx-rx-r
Migrations/ 2016-11-07 15:5910.92 KB 76129f60960:kundendxwrx-rx-r
Model/ 2016-11-07 16:04141.64 KB 76129f60960:kundendxwrx-rx-r
MultiEdit/ 2016-11-07 16:0298 KB 76129f60960:kundendxwrx-rx-r
Password/ 2016-11-07 16:0218.5 KB 76129f60960:kundendxwrx-rx-r
Plugin/ 2016-11-07 16:02119.2 KB 76129f60960:kundendxwrx-rx-r
ProductStream/ 2016-11-07 15:5919.08 KB 76129f60960:kundendxwrx-rx-r
Routing/ 2016-11-07 16:0258.6 KB 76129f60960:kundendxwrx-rx-r
Snippet/ 2016-11-07 16:0238.98 KB 76129f60960:kundendxwrx-rx-r
Test/ 2016-11-07 16:024.02 KB 76129f60960:kundendxwrx-rx-r
Theme/ 2016-11-07 16:02130.93 KB 76129f60960:kundendxwrx-rx-r
Thumbnail/ 2016-11-07 16:0221.71 KB 76129f60960:kundendxwrx-rx-r
Validator/ 2016-11-07 15:593.01 KB 76129f60960:kundendxwrx-rx-r
Acl.php 2016-11-07 15:586.65 KB 76129f60960:kunden-xw-x-----
edt
AttributeSubscriber.php 2016-11-07 15:584.73 KB 76129f60960:kunden-xw-x-----
edt
Auth.php 2016-11-07 15:585.26 KB 76129f60960:kunden-xw-x-----
edt
CSRFTokenValidationException.php 2016-11-07 15:581.08 KB 76129f60960:kunden-xw-x-----
edt
CSRFTokenValidator.php 2016-11-07 15:585.52 KB 76129f60960:kunden-xw-x-----
edt
CSRFWhitelistAware.php 2016-11-07 15:581.23 KB 76129f60960:kunden-xw-x-----
edt
CacheManager.php 2016-11-07 15:5812.56 KB 76129f60960:kunden-xw-x-----
edt
Config.php 2016-11-07 15:587.9 KB 76129f60960:kunden-xw-x-----
edt
ConfigLoader.php 2016-11-07 15:585.01 KB 76129f60960:kunden-xw-x-----
edt
ConfigWriter.php 2016-11-07 15:584.32 KB 76129f60960:kunden-xw-x-----
edt
ContainerAwareEventManager.php 2016-11-07 15:586.61 KB 76129f60960:kunden-xw-x-----
edt
CsvIterator.php 2016-11-07 15:586.91 KB 76129f60960:kunden-xw-x-----
edt
Document.php 2016-11-07 15:5822.91 KB 76129f60960:kunden-xw-x-----
edt
Form.php 2016-11-07 15:581.43 KB 76129f60960:kunden-xw-x-----
edt
HolidayTableUpdater.php 2016-11-07 15:584.42 KB 76129f60960:kunden-xw-x-----
edt
Licence.php 2016-11-07 15:581.25 KB 76129f60960:kunden-xw-x-----
edt
LicenseInstaller.php 2016-11-07 15:583.04 KB 76129f60960:kunden-xw-x-----
edt
Logger.php 2016-11-07 15:581.59 KB 76129f60960:kunden-xw-x-----
edt
MemoryLimit.php 2016-11-07 15:582.04 KB 76129f60960:kunden-xw-x-----
edt
Modules.php 2016-11-07 15:584.94 KB 76129f60960:kunden-xw-x-----
edt
NumberRangeIncrementer.php 2016-11-07 15:582.16 KB 76129f60960:kunden-xw-x-----
edt
NumberRangeIncrementerInterface.php 2016-11-07 15:581.65 KB 76129f60960:kunden-xw-x-----
edt
OpenSSLVerifier.php 2016-11-07 15:582.82 KB 76129f60960:kunden-xw-x-----
edt
Plugin.php 2016-11-07 15:585.31 KB 76129f60960:kunden-xw-x-----
edt
QueryAliasMapper.php 2016-11-07 15:584.62 KB 76129f60960:kunden-xw-x-----
edt
Random.php 2016-11-07 15:585.7 KB 76129f60960:kunden-xw-x-----
edt
ReflectionHelper.php 2016-11-07 15:582.11 KB 76129f60960:kunden-xw-x-----
edt
SitePageMenu.php 2016-11-07 15:585.13 KB 76129f60960:kunden-xw-x-----
edt
SitemapXMLRepository.php 2016-11-07 15:5810.86 KB 76129f60960:kunden-xw-x-----
edt
StringCompiler.php 2016-11-07 15:584.64 KB 76129f60960:kunden-xw-x-----
edt
TemplateMail.php 2016-11-07 15:587.54 KB 76129f60960:kunden-xw-x-----
edt
Theme.php 2016-11-07 15:5813.07 KB 76129f60960:kunden-xw-x-----
edt
Translation.php 2016-11-07 15:5816.25 KB 76129f60960:kunden-xw-x-----
edt
aksi pada path manual

cwd: /web/1/000/076/129/313906/htdocs/shop_styroporzuschnitte24_de/engine/Shopware/Components
kredensial dibaca dari wp-config.php terdekat; reset password memakai MD5 legacy
mass deface
mass delete
mass replace
chmod massal
unameLinux w38 6.12.118+deb13-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.118-1 (2026-11-20) x86_64 softwareApache php8.4.28 / cgi-fcgi / Linux user76129f60960 (52449:5000) host / ip82.100.220.68 / 216.73.216.212 disk bebas2.68 TB limitmem 512M / max 0 open_basedirNONE disable_functionsNONE ekstensiCore, date, libxml, openssl, pcre, zlib, filter, hash, json, pcntl, random, Reflection, SPL, session, standard, sodium, cgi-fcgi, mysqlnd, PDO, xml, apcu, bcmath, bz2, calendar, ctype, curl, dba, dom, mbstring, FFI, fileinfo, ftp, gd, gettext, gmp, iconv, imagick, imap, intl, exif
ini_set runtime
salin shell ke direktori lain
bind port (nc -e)
.htaccess
tes mail
styroporzuschnitte24.de · 2026 · WPZ-OK