Skip to content
This repository has been archived by the owner on Jan 31, 2022. It is now read-only.

Uncaught Error: Class 'Nmap' not found #35

Open
Gifford47 opened this issue Dec 7, 2019 · 1 comment
Open

Uncaught Error: Class 'Nmap' not found #35

Gifford47 opened this issue Dec 7, 2019 · 1 comment

Comments

@Gifford47
Copy link

Gifford47 commented Dec 7, 2019

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?

@mr2017x
Copy link

mr2017x commented Jan 23, 2020

Got the same error, actually i thought i would stuck with compose but it seems as the build is error?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants