Skip to content

Commit

Permalink
Nmap provider lr updates (#4983)
Browse files Browse the repository at this point in the history
  • Loading branch information
tas50 authored Dec 15, 2024
1 parent 5c0e016 commit b9bcf90
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 18 deletions.
8 changes: 0 additions & 8 deletions .github/actions/spelling/expect.txt
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,6 @@ jira
jsonbody
kqueue
labelmatchstatement
libdnet
liblua
libpcap
libpcre
libssh
libz
liveanalytics
loggingservice
managedrulegroupstatement
Expand All @@ -71,7 +65,6 @@ nmap
nodegroup
nodepool
notebookinstancedetails
nsock
nsrecord
nullgroup
nullstring
Expand Down Expand Up @@ -111,7 +104,6 @@ timestream
toplevel
tpu
vdcs
VNIC
Vtpm
vulnerabilityassessmentsettings
vulnmgmt
Expand Down
20 changes: 10 additions & 10 deletions providers/nmap/resources/nmap.lr
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
option provider = "go.mondoo.com/cnquery/v11/providers/nmap"
option go_package = "go.mondoo.com/cnquery/v11/providers/nmap/resources"

// nmap
// Nmap
nmap {
// Nmap version information
version() nmap.versionInformation
}

// nmap network
// Nmap network
nmap.network {
init(target string)
// Target IP address or hostname
Expand All @@ -21,7 +21,7 @@ nmap.network {
warnings() []string
}

// nmap host
// Nmap host
nmap.host @defaults("name") {
init(name string)
// Name of the host
Expand All @@ -46,7 +46,7 @@ nmap.host @defaults("name") {
state() string
}

// nmap port
// Nmap port
private nmap.port @defaults("port service"){
// Port number
port int
Expand All @@ -64,16 +64,16 @@ private nmap.port @defaults("port service"){
state string
}

// nmap version information
// Nmap version information
private nmap.versionInformation @defaults("version") {
// Version of nmap
// Version of Nmap
version string
// Platform nmap is running on
// Platform Nmap is running on
platform string
// libraries compiled with
// Libraries compiled with
compiledWith []string
// libraries not compiled with
// Libraries not compiled with
compiledWithout []string
// nsock engines
nsockEngines []string
}
}

0 comments on commit b9bcf90

Please sign in to comment.