You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 31, 2022. It is now read-only.
Hey! Hey! Hey!
i just wanted to try nmap, but php doesn't find the class "Nmap".
i installed nmap via "composer require willdurand/nmap" successfully.
I created the following script:
test.php:
`<?php
Hey! Hey! Hey!
i just wanted to try nmap, but php doesn't find the class "Nmap".
i installed nmap via "composer require willdurand/nmap" successfully.
I created the following script:
test.php:
`<?php
require DIR . '/vendor/autoload.php';
$nmap = new Nmap();
//$nmap->scan([ 'williamdurand.fr' ], [ 21, 22, 80 ]);
//$hosts = Nmap::create()->scan([ 'williamdurand.fr' ]);
//$ports = $hosts->getOpenPorts();
//echo $ports;
?>
`
and my error output:
PHP Fatal error: Uncaught Error: Class 'Nmap' not found in /var/www/start/nmap/test.php
Where's my mistake?
The text was updated successfully, but these errors were encountered: