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

Uncaught Error: Class 'Nmap' not found #35

Description

@Gifford47

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions