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 /
tests /
[ HOME SHELL ]
Name
Size
Permission
Action
01-portscan.php
916
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : 01-portscan.php
<?php /** $Id: 01-portscan.php 124263 2003-04-22 12:03:35Z mj $ */ require_once "Net/Portscan.php"; /** Test for checkPort() and getService() */ if (Net_Portscan::checkPort("localhost", 80) == NET_PORTSCAN_SERVICE_FOUND) { echo "There is a service on your machine on port 80 (" . Net_Portscan::getService(80) . ").\n"; } /** Test for checkPortRange() */ echo "Scanning localhost ports 70-90\n"; $result = Net_Portscan::checkPortRange("localhost", 70, 90); foreach ($result as $port => $element) { echo "Port " . $port . ": "; if ($element == NET_PORTSCAN_SERVICE_FOUND) { echo " Service found.\n"; } else { echo " No service found.\n"; } } /** Test for getService() */ echo "On port 22, there service " . Net_Portscan::getService(22) . " is running.\n"; /** Test for getPort() */ echo "The finger service usually runs on port " . Net_Portscan::getPort("finger") . ".\n"; ?>
Close