Skip to content

Commit

Permalink
Update README.md for scripts
Browse files Browse the repository at this point in the history
How to use scripts was not documented and a little hard to find.
  • Loading branch information
peter17 authored Feb 8, 2023
1 parent df58696 commit 7232986
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,18 @@ $nmap
->scan([ 'example.com' ]);
```

You can run specific scripts with `setScripts()` and get the result with `getScripts()`:

``` php
$hosts = $nmap
->setTimeout(120)
->scan([ 'example.com' ], [ 443 ]);

$hosts[0]->setScripts(['ssl-heartbleed']);
$ports = $hosts[0]->getOpenPorts();

$ports[0]->getScripts();
```

Nmap XML output
-------------------------------
Expand Down

0 comments on commit 7232986

Please sign in to comment.