mirror of
https://github.com/nmap/nmap.git
synced 2025-12-07 13:11:28 +00:00
Use stdnse.silent_require where needed.
This is required for scripts that require "openssl", but also transitively for script that require a library that requires "openssl".
This commit is contained in:
@@ -40,8 +40,9 @@ categories = {"default", "discovery", "safe"}
|
||||
dependencies = {"mongodb-brute"}
|
||||
|
||||
require "creds"
|
||||
require "mongodb"
|
||||
require "shortport"
|
||||
require 'stdnse'
|
||||
stdnse.silent_require('mongodb')
|
||||
|
||||
portrule = shortport.port_or_service({27017}, {"mongodb"})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user