ronin-nmap 0.1.0.rc1 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 555ce2b5491e4a0a1ce2dd0fa9fc72f1e08b9112e278b1f867ea3e27a697ff65
4
- data.tar.gz: 1f80b02966fc0d67052da39abca3bec7da09113b1682371190803b838f4f62b7
3
+ metadata.gz: 7b759284c47b002205a2a322e506d6adefedbd8b5ac55f076a4e5556c23fa405
4
+ data.tar.gz: 3481ef2eab07dea4b2f44121fbde7fae3a153a24af6e4104b478f6a08da31666
5
5
  SHA512:
6
- metadata.gz: 2e014461fb8addf6d3fac68691b6c22c9ef7543b9d9bd6bfadf9a4789a2f9f310ea3598b42ee6c0ecb183a07816c3d4c51acb7a4dc94cd0e58a1051d7e84a11d
7
- data.tar.gz: 156d5eefea7182531f1c31f0f9222697631e057f8fc18e09c78bb86761a3635224ff3ca720869ecb9c86700b1df91472e1fb6848f7bc354ac96abfe9e0b9eb69
6
+ metadata.gz: 5fb866ad3132e1fa27d94d56ab622250c77323192587d93b3871c3531a319c2ec5e7f3fd8a9d7f51486c51fcac37dc078e6284bb4837c0fb2c1249a2d09fda0a
7
+ data.tar.gz: cfe08033e85580e8c762c141bcb11eb0265636564ecd69894d0586d14a71739bf1f6a4453f07226632d292216f0ec3ac5876584bb1008b4707b0ed77aa74016c
@@ -13,6 +13,7 @@ jobs:
13
13
  - '3.1'
14
14
  - '3.2'
15
15
  - '3.3'
16
+ - '3.4'
16
17
  - jruby
17
18
  - truffleruby
18
19
  name: Ruby ${{ matrix.ruby }}
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- ruby-3.1
1
+ ruby-3.3
data/ChangeLog.md CHANGED
@@ -1,4 +1,9 @@
1
- ### 0.1.0 / 2024-XX-XX
1
+ ### 0.1.1 / 2025-02-14
2
+
3
+ * Added the `csv` gem as a dependency for Bundler and Ruby 3.4.0.
4
+ * Use `require_relative` to improve load times.
5
+
6
+ ### 0.1.0 / 2024-07-22
2
7
 
3
8
  * Initial release:
4
9
  * Supports automating `nmap` using [ruby-nmap].
data/README.md CHANGED
@@ -216,7 +216,7 @@ gem.add_dependency 'ronin-nmap', '~> 0.1'
216
216
 
217
217
  ## License
218
218
 
219
- Copyright (c) 2023-2024 Hal Brodigan (postmodern.mod3@gmail.com)
219
+ Copyright (c) 2023-2025 Hal Brodigan (postmodern.mod3@gmail.com)
220
220
 
221
221
  ronin-nmap is free software: you can redistribute it and/or modify
222
222
  it under the terms of the GNU Lesser General Public License as published
@@ -11,7 +11,7 @@ _ronin-nmap_completions_filter() {
11
11
 
12
12
  if [[ "${cur:0:1}" == "-" ]]; then
13
13
  echo "$words"
14
-
14
+
15
15
  else
16
16
  for word in $words; do
17
17
  [[ "${word:0:1}" != "-" ]] && result+=("$word")
@@ -28,52 +28,60 @@ _ronin-nmap_completions() {
28
28
  local compline="${compwords[*]}"
29
29
 
30
30
  case "$compline" in
31
+ 'import'*'--db-file')
32
+ while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -A file -A directory -- "$cur")
33
+ ;;
34
+
31
35
  'new'*'--xml-file')
32
- while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -A file -- "$cur" )
36
+ while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -A file -- "$cur")
37
+ ;;
38
+
39
+ 'scan'*'--db-file')
40
+ while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -A file -A directory -- "$cur")
33
41
  ;;
34
42
 
35
43
  'scan'*'--output')
36
- while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -A file -- "$cur" )
44
+ while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -A file -- "$cur")
37
45
  ;;
38
46
 
39
47
  'completion'*)
40
- while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "$(_ronin-nmap_completions_filter "--print --install --uninstall")" -- "$cur" )
48
+ while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -W "$(_ronin-nmap_completions_filter "--print --install --uninstall")" -- "$cur")
41
49
  ;;
42
50
 
43
51
  'convert'*)
44
- while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -A file -W "$(_ronin-nmap_completions_filter "--format -F")" -- "$cur" )
52
+ while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -A file -W "$(_ronin-nmap_completions_filter "--format -F")" -- "$cur")
45
53
  ;;
46
54
 
47
55
  'scan'*'-o')
48
- while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -A file -- "$cur" )
56
+ while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -A file -- "$cur")
49
57
  ;;
50
58
 
51
59
  'import'*)
52
- while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -A file -W "$(_ronin-nmap_completions_filter "--db --db-uri --db-file")" -- "$cur" )
60
+ while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -A file -W "$(_ronin-nmap_completions_filter "--db --db-uri --db-file")" -- "$cur")
53
61
  ;;
54
62
 
55
63
  'print'*)
56
- while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "$(_ronin-nmap_completions_filter "--ip --ip-range --domain --with-os --with-ports --with-service --with-script --with-script-output --with-script-regex")" -- "$cur" )
64
+ while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -W "$(_ronin-nmap_completions_filter "--ip --ip-range --domain --with-os --with-ports --with-service --with-script --with-script-output --with-script-regex")" -- "$cur")
57
65
  ;;
58
66
 
59
67
  'dump'*)
60
- while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "$(_ronin-nmap_completions_filter "--print-ips --print-hosts --print-ip-ports --print-host-ports --print-uris --ip --ip-range --domain --with-os --with-ports --with-service --with-script --with-script-output --with-script-regex --ports -p --services")" -- "$cur" )
68
+ while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -W "$(_ronin-nmap_completions_filter "--print-ips --print-hosts --print-ip-ports --print-host-ports --print-uris --ip --ip-range --domain --with-os --with-ports --with-service --with-script --with-script-output --with-script-regex --ports -p --services")" -- "$cur")
61
69
  ;;
62
70
 
63
71
  'scan'*)
64
- while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "$(_ronin-nmap_completions_filter "--db --db-uri --db-file --sudo --output -o --output-format -F --import")" -- "$cur" )
72
+ while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -W "$(_ronin-nmap_completions_filter "--db --db-uri --db-file --sudo --output -o --output-format -F --import")" -- "$cur")
65
73
  ;;
66
74
 
67
75
  'new'*)
68
- while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "$(_ronin-nmap_completions_filter "--parser --scanner --printing --import --xml-file --syn-scan --ports -p --target")" -- "$cur" )
76
+ while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -A file -A directory -W "$(_ronin-nmap_completions_filter "--parser --scanner --printing --import --xml-file --syn-scan --ports -p --target")" -- "$cur")
69
77
  ;;
70
78
 
71
79
  *)
72
- while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "$(_ronin-nmap_completions_filter "--version -V help completion convert dump grep import new print scan")" -- "$cur" )
80
+ while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -W "$(_ronin-nmap_completions_filter "--version -V help completion convert dump grep import new print scan")" -- "$cur")
73
81
  ;;
74
82
 
75
83
  esac
76
84
  } &&
77
- complete -F _ronin-nmap_completions ronin-nmap
85
+ complete -F _ronin-nmap_completions ronin-nmap
78
86
 
79
87
  # ex: filetype=sh
data/gemspec.yml CHANGED
@@ -1,11 +1,11 @@
1
1
  name: ronin-nmap
2
2
  summary: A Ruby library and CLI for working with nmap.
3
3
  description: |
4
- ronin-nmap is a Ruby library for working with nmap. ronin-nmap can parse
5
- nmap XML, convert nmap XML into JSON or CSV, or import nmap XML into the
4
+ ronin-nmap is a Ruby library and CLI for working with nmap. ronin-nmap can
5
+ parse nmap XML, convert nmap XML into JSON or CSV, or import nmap XML into the
6
6
  ronin-db database.
7
7
 
8
- license: LGPL-3.0
8
+ license: LGPL-3.0-or-later
9
9
  authors: Postmodern
10
10
  email: postmodern.mod3@gmail.com
11
11
  homepage: https://ronin-rb.dev/
@@ -33,10 +33,11 @@ generated_files:
33
33
  required_ruby_version: ">= 3.0.0"
34
34
 
35
35
  dependencies:
36
+ csv: ~> 3.0
36
37
  ruby-nmap: ~> 1.0
37
38
  # Ronin dependencies:
38
- ronin-core: ~> 0.2.0.rc1
39
- ronin-db: ~> 0.2.0.rc1
39
+ ronin-core: ~> 0.2
40
+ ronin-db: ~> 0.2
40
41
 
41
42
  development_dependencies:
42
43
  bundler: ~> 2.0
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # ronin-nmap - A Ruby library for automating nmap and importing nmap scans.
4
4
  #
5
- # Copyright (c) 2023-2024 Hal Brodigan (postmodern.mod3@gmail.com)
5
+ # Copyright (c) 2023-2025 Hal Brodigan (postmodern.mod3@gmail.com)
6
6
  #
7
7
  # ronin-nmap is free software: you can redistribute it and/or modify
8
8
  # it under the terms of the GNU Lesser General Public License as published
@@ -18,7 +18,7 @@
18
18
  # along with ronin-nmap. If not, see <https://www.gnu.org/licenses/>.
19
19
  #
20
20
 
21
- require 'ronin/nmap/root'
21
+ require_relative '../root'
22
22
 
23
23
  require 'ronin/core/cli/command'
24
24
 
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # ronin-nmap - A Ruby library for automating nmap and importing nmap scans.
4
4
  #
5
- # Copyright (c) 2023-2024 Hal Brodigan (postmodern.mod3@gmail.com)
5
+ # Copyright (c) 2023-2025 Hal Brodigan (postmodern.mod3@gmail.com)
6
6
  #
7
7
  # ronin-nmap is free software: you can redistribute it and/or modify
8
8
  # it under the terms of the GNU Lesser General Public License as published
@@ -18,9 +18,10 @@
18
18
  # along with ronin-nmap. If not, see <https://www.gnu.org/licenses/>.
19
19
  #
20
20
 
21
- require 'ronin/nmap/root'
22
21
  require 'ronin/core/cli/completion_command'
23
22
 
23
+ require_relative '../../root'
24
+
24
25
  module Ronin
25
26
  module Nmap
26
27
  class CLI
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # ronin-nmap - A Ruby library for automating nmap and importing nmap scans.
4
4
  #
5
- # Copyright (c) 2023-2024 Hal Brodigan (postmodern.mod3@gmail.com)
5
+ # Copyright (c) 2023-2025 Hal Brodigan (postmodern.mod3@gmail.com)
6
6
  #
7
7
  # ronin-nmap is free software: you can redistribute it and/or modify
8
8
  # it under the terms of the GNU Lesser General Public License as published
@@ -18,8 +18,8 @@
18
18
  # along with ronin-nmap. If not, see <https://www.gnu.org/licenses/>.
19
19
  #
20
20
 
21
- require 'ronin/nmap/cli/command'
22
- require 'ronin/nmap/converter'
21
+ require_relative '../command'
22
+ require_relative '../../converter'
23
23
 
24
24
  module Ronin
25
25
  module Nmap
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # ronin-nmap - A Ruby library for automating nmap and importing nmap scans.
4
4
  #
5
- # Copyright (c) 2023-2024 Hal Brodigan (postmodern.mod3@gmail.com)
5
+ # Copyright (c) 2023-2025 Hal Brodigan (postmodern.mod3@gmail.com)
6
6
  #
7
7
  # ronin-nmap is free software: you can redistribute it and/or modify
8
8
  # it under the terms of the GNU Lesser General Public License as published
@@ -18,10 +18,10 @@
18
18
  # along with ronin-nmap. If not, see <https://www.gnu.org/licenses/>.
19
19
  #
20
20
 
21
- require 'ronin/nmap/cli/command'
22
- require 'ronin/nmap/cli/filtering_options'
23
- require 'nmap/xml'
21
+ require_relative '../command'
22
+ require_relative '../filtering_options'
24
23
 
24
+ require 'nmap/xml'
25
25
  require 'set'
26
26
 
27
27
  module Ronin
@@ -18,7 +18,7 @@
18
18
  # along with ronin-nmap. If not, see <https://www.gnu.org/licenses/>.
19
19
  #
20
20
 
21
- require 'ronin/nmap/cli/command'
21
+ require_relative '../command'
22
22
 
23
23
  require 'command_kit/colors'
24
24
  require 'command_kit/printing/indent'
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # ronin-nmap - A Ruby library for automating nmap and importing nmap scans.
4
4
  #
5
- # Copyright (c) 2023-2024 Hal Brodigan (postmodern.mod3@gmail.com)
5
+ # Copyright (c) 2023-2025 Hal Brodigan (postmodern.mod3@gmail.com)
6
6
  #
7
7
  # ronin-nmap is free software: you can redistribute it and/or modify
8
8
  # it under the terms of the GNU Lesser General Public License as published
@@ -18,9 +18,9 @@
18
18
  # along with ronin-nmap. If not, see <https://www.gnu.org/licenses/>.
19
19
  #
20
20
 
21
- require 'ronin/nmap/cli/command'
22
- require 'ronin/nmap/cli/importable'
23
- require 'ronin/nmap/importer'
21
+ require_relative '../command'
22
+ require_relative '../importable'
23
+ require_relative '../../importer'
24
24
 
25
25
  module Ronin
26
26
  module Nmap
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # ronin-nmap - A Ruby library for automating nmap and importing nmap scans.
4
4
  #
5
- # Copyright (c) 2023-2024 Hal Brodigan (postmodern.mod3@gmail.com)
5
+ # Copyright (c) 2023-2025 Hal Brodigan (postmodern.mod3@gmail.com)
6
6
  #
7
7
  # ronin-nmap is free software: you can redistribute it and/or modify
8
8
  # it under the terms of the GNU Lesser General Public License as published
@@ -18,8 +18,8 @@
18
18
  # along with ronin-nmap. If not, see <https://www.gnu.org/licenses/>.
19
19
  #
20
20
 
21
- require 'ronin/nmap/cli/command'
22
- require 'ronin/nmap/root'
21
+ require_relative '../command'
22
+ require_relative '../../root'
23
23
 
24
24
  require 'ronin/core/cli/generator'
25
25
 
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # ronin-nmap - A Ruby library for automating nmap and importing nmap scans.
4
4
  #
5
- # Copyright (c) 2023-2024 Hal Brodigan (postmodern.mod3@gmail.com)
5
+ # Copyright (c) 2023-2025 Hal Brodigan (postmodern.mod3@gmail.com)
6
6
  #
7
7
  # ronin-nmap is free software: you can redistribute it and/or modify
8
8
  # it under the terms of the GNU Lesser General Public License as published
@@ -18,8 +18,9 @@
18
18
  # along with ronin-nmap. If not, see <https://www.gnu.org/licenses/>.
19
19
  #
20
20
 
21
- require 'ronin/nmap/cli/command'
22
- require 'ronin/nmap/cli/filtering_options'
21
+ require_relative '../command'
22
+ require_relative '../filtering_options'
23
+
23
24
  require 'nmap/xml'
24
25
 
25
26
  module Ronin
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # ronin-nmap - A Ruby library for automating nmap and importing nmap scans.
4
4
  #
5
- # Copyright (c) 2023-2024 Hal Brodigan (postmodern.mod3@gmail.com)
5
+ # Copyright (c) 2023-2025 Hal Brodigan (postmodern.mod3@gmail.com)
6
6
  #
7
7
  # ronin-nmap is free software: you can redistribute it and/or modify
8
8
  # it under the terms of the GNU Lesser General Public License as published
@@ -18,11 +18,11 @@
18
18
  # along with ronin-nmap. If not, see <https://www.gnu.org/licenses/>.
19
19
  #
20
20
 
21
- require 'ronin/nmap/cli/command'
22
- require 'ronin/nmap/cli/importable'
23
- require 'ronin/nmap/converter'
24
- require 'ronin/core/cli/logging'
21
+ require_relative '../command'
22
+ require_relative '../importable'
23
+ require_relative '../../converter'
25
24
 
25
+ require 'ronin/core/cli/logging'
26
26
  require 'tempfile'
27
27
  require 'set'
28
28
 
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # ronin-nmap - A Ruby library for automating nmap and importing nmap scans.
4
4
  #
5
- # Copyright (c) 2023-2024 Hal Brodigan (postmodern.mod3@gmail.com)
5
+ # Copyright (c) 2023-2025 Hal Brodigan (postmodern.mod3@gmail.com)
6
6
  #
7
7
  # ronin-nmap is free software: you can redistribute it and/or modify
8
8
  # it under the terms of the GNU Lesser General Public License as published
@@ -18,7 +18,7 @@
18
18
  # along with ronin-nmap. If not, see <https://www.gnu.org/licenses/>.
19
19
  #
20
20
 
21
- require 'ronin/nmap/cli/port_list'
21
+ require_relative 'port_list'
22
22
 
23
23
  module Ronin
24
24
  module Nmap
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # ronin-nmap - A Ruby library for automating nmap and importing nmap scans.
4
4
  #
5
- # Copyright (c) 2023-2024 Hal Brodigan (postmodern.mod3@gmail.com)
5
+ # Copyright (c) 2023-2025 Hal Brodigan (postmodern.mod3@gmail.com)
6
6
  #
7
7
  # ronin-nmap is free software: you can redistribute it and/or modify
8
8
  # it under the terms of the GNU Lesser General Public License as published
@@ -18,7 +18,8 @@
18
18
  # along with ronin-nmap. If not, see <https://www.gnu.org/licenses/>.
19
19
  #
20
20
 
21
- require 'ronin/nmap/importer'
21
+ require_relative '../importer'
22
+
22
23
  require 'ronin/db/cli/database_options'
23
24
  require 'ronin/db/cli/printing'
24
25
  require 'ronin/core/cli/logging'
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # ronin-nmap - A Ruby library for automating nmap and importing nmap scans.
4
4
  #
5
- # Copyright (c) 2023-2024 Hal Brodigan (postmodern.mod3@gmail.com)
5
+ # Copyright (c) 2023-2025 Hal Brodigan (postmodern.mod3@gmail.com)
6
6
  #
7
7
  # ronin-nmap is free software: you can redistribute it and/or modify
8
8
  # it under the terms of the GNU Lesser General Public License as published
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # ronin-nmap - A Ruby library for automating nmap and importing nmap scans.
4
4
  #
5
- # Copyright (c) 2023-2024 Hal Brodigan (postmodern.mod3@gmail.com)
5
+ # Copyright (c) 2023-2025 Hal Brodigan (postmodern.mod3@gmail.com)
6
6
  #
7
7
  # ronin-nmap is free software: you can redistribute it and/or modify
8
8
  # it under the terms of the GNU Lesser General Public License as published
@@ -18,13 +18,14 @@
18
18
  # along with ronin-nmap. If not, see <https://www.gnu.org/licenses/>.
19
19
  #
20
20
 
21
- require 'ronin/nmap/version'
22
21
  require 'ronin/core/cli/help/banner'
23
22
 
24
23
  require 'command_kit/commands'
25
24
  require 'command_kit/commands/auto_load'
26
25
  require 'command_kit/options/version'
27
26
 
27
+ require_relative 'version'
28
+
28
29
  module Ronin
29
30
  module Nmap
30
31
  #
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # ronin-nmap - A Ruby library for automating nmap and importing nmap scans.
4
4
  #
5
- # Copyright (c) 2023-2024 Hal Brodigan (postmodern.mod3@gmail.com)
5
+ # Copyright (c) 2023-2025 Hal Brodigan (postmodern.mod3@gmail.com)
6
6
  #
7
7
  # ronin-nmap is free software: you can redistribute it and/or modify
8
8
  # it under the terms of the GNU Lesser General Public License as published
@@ -18,7 +18,7 @@
18
18
  # along with ronin-nmap. If not, see <https://www.gnu.org/licenses/>.
19
19
  #
20
20
 
21
- require 'ronin/nmap/converters'
21
+ require_relative 'converters'
22
22
 
23
23
  require 'nmap/xml'
24
24
 
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # ronin-nmap - A Ruby library for automating nmap and importing nmap scans.
4
4
  #
5
- # Copyright (c) 2023-2024 Hal Brodigan (postmodern.mod3@gmail.com)
5
+ # Copyright (c) 2023-2025 Hal Brodigan (postmodern.mod3@gmail.com)
6
6
  #
7
7
  # ronin-nmap is free software: you can redistribute it and/or modify
8
8
  # it under the terms of the GNU Lesser General Public License as published
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # ronin-nmap - A Ruby library for automating nmap and importing nmap scans.
4
4
  #
5
- # Copyright (c) 2023-2024 Hal Brodigan (postmodern.mod3@gmail.com)
5
+ # Copyright (c) 2023-2025 Hal Brodigan (postmodern.mod3@gmail.com)
6
6
  #
7
7
  # ronin-nmap is free software: you can redistribute it and/or modify
8
8
  # it under the terms of the GNU Lesser General Public License as published
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # ronin-nmap - A Ruby library for automating nmap and importing nmap scans.
4
4
  #
5
- # Copyright (c) 2023-2024 Hal Brodigan (postmodern.mod3@gmail.com)
5
+ # Copyright (c) 2023-2025 Hal Brodigan (postmodern.mod3@gmail.com)
6
6
  #
7
7
  # ronin-nmap is free software: you can redistribute it and/or modify
8
8
  # it under the terms of the GNU Lesser General Public License as published
@@ -18,8 +18,8 @@
18
18
  # along with ronin-nmap. If not, see <https://www.gnu.org/licenses/>.
19
19
  #
20
20
 
21
- require 'ronin/nmap/converters/json'
22
- require 'ronin/nmap/converters/csv'
21
+ require_relative 'converters/json'
22
+ require_relative 'converters/csv'
23
23
 
24
24
  module Ronin
25
25
  module Nmap
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # ronin-nmap - A Ruby library for automating nmap and importing nmap scans.
4
4
  #
5
- # Copyright (c) 2023-2024 Hal Brodigan (postmodern.mod3@gmail.com)
5
+ # Copyright (c) 2023-2025 Hal Brodigan (postmodern.mod3@gmail.com)
6
6
  #
7
7
  # ronin-nmap is free software: you can redistribute it and/or modify
8
8
  # it under the terms of the GNU Lesser General Public License as published
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # ronin-nmap - A Ruby library for automating nmap and importing nmap scans.
4
4
  #
5
- # Copyright (c) 2023-2024 Hal Brodigan (postmodern.mod3@gmail.com)
5
+ # Copyright (c) 2023-2025 Hal Brodigan (postmodern.mod3@gmail.com)
6
6
  #
7
7
  # ronin-nmap is free software: you can redistribute it and/or modify
8
8
  # it under the terms of the GNU Lesser General Public License as published
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # ronin-nmap - A Ruby library for automating nmap and importing nmap scans.
4
4
  #
5
- # Copyright (c) 2023-2024 Hal Brodigan (postmodern.mod3@gmail.com)
5
+ # Copyright (c) 2023-2025 Hal Brodigan (postmodern.mod3@gmail.com)
6
6
  #
7
7
  # ronin-nmap is free software: you can redistribute it and/or modify
8
8
  # it under the terms of the GNU Lesser General Public License as published
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # ronin-nmap - A Ruby library for automating nmap and importing nmap scans.
4
4
  #
5
- # Copyright (c) 2023-2024 Hal Brodigan (postmodern.mod3@gmail.com)
5
+ # Copyright (c) 2023-2025 Hal Brodigan (postmodern.mod3@gmail.com)
6
6
  #
7
7
  # ronin-nmap is free software: you can redistribute it and/or modify
8
8
  # it under the terms of the GNU Lesser General Public License as published
@@ -21,6 +21,6 @@
21
21
  module Ronin
22
22
  module Nmap
23
23
  # ronin-nmap version
24
- VERSION = '0.1.0.rc1'
24
+ VERSION = '0.1.1'
25
25
  end
26
26
  end
data/lib/ronin/nmap.rb CHANGED
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # ronin-nmap - A Ruby library for automating nmap and importing nmap scans.
4
4
  #
5
- # Copyright (c) 2023-2024 Hal Brodigan (postmodern.mod3@gmail.com)
5
+ # Copyright (c) 2023-2025 Hal Brodigan (postmodern.mod3@gmail.com)
6
6
  #
7
7
  # ronin-nmap is free software: you can redistribute it and/or modify
8
8
  # it under the terms of the GNU Lesser General Public License as published
@@ -18,8 +18,9 @@
18
18
  # along with ronin-nmap. If not, see <https://www.gnu.org/licenses/>.
19
19
  #
20
20
 
21
- require 'ronin/nmap/exceptions'
22
- require 'ronin/nmap/importer'
21
+ require_relative 'nmap/exceptions'
22
+ require_relative 'nmap/importer'
23
+
23
24
  require 'ronin/core/home'
24
25
  require 'nmap/command'
25
26
  require 'nmap/xml'
metadata CHANGED
@@ -1,15 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ronin-nmap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0.rc1
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Postmodern
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-06-23 00:00:00.000000000 Z
11
+ date: 2025-02-15 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: csv
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '3.0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '3.0'
13
27
  - !ruby/object:Gem::Dependency
14
28
  name: ruby-nmap
15
29
  requirement: !ruby/object:Gem::Requirement
@@ -30,28 +44,28 @@ dependencies:
30
44
  requirements:
31
45
  - - "~>"
32
46
  - !ruby/object:Gem::Version
33
- version: 0.2.0.rc1
47
+ version: '0.2'
34
48
  type: :runtime
35
49
  prerelease: false
36
50
  version_requirements: !ruby/object:Gem::Requirement
37
51
  requirements:
38
52
  - - "~>"
39
53
  - !ruby/object:Gem::Version
40
- version: 0.2.0.rc1
54
+ version: '0.2'
41
55
  - !ruby/object:Gem::Dependency
42
56
  name: ronin-db
43
57
  requirement: !ruby/object:Gem::Requirement
44
58
  requirements:
45
59
  - - "~>"
46
60
  - !ruby/object:Gem::Version
47
- version: 0.2.0.rc1
61
+ version: '0.2'
48
62
  type: :runtime
49
63
  prerelease: false
50
64
  version_requirements: !ruby/object:Gem::Requirement
51
65
  requirements:
52
66
  - - "~>"
53
67
  - !ruby/object:Gem::Version
54
- version: 0.2.0.rc1
68
+ version: '0.2'
55
69
  - !ruby/object:Gem::Dependency
56
70
  name: bundler
57
71
  requirement: !ruby/object:Gem::Requirement
@@ -67,8 +81,8 @@ dependencies:
67
81
  - !ruby/object:Gem::Version
68
82
  version: '2.0'
69
83
  description: |
70
- ronin-nmap is a Ruby library for working with nmap. ronin-nmap can parse
71
- nmap XML, convert nmap XML into JSON or CSV, or import nmap XML into the
84
+ ronin-nmap is a Ruby library and CLI for working with nmap. ronin-nmap can
85
+ parse nmap XML, convert nmap XML into JSON or CSV, or import nmap XML into the
72
86
  ronin-db database.
73
87
  email: postmodern.mod3@gmail.com
74
88
  executables:
@@ -139,7 +153,7 @@ files:
139
153
  - scripts/setup
140
154
  homepage: https://ronin-rb.dev/
141
155
  licenses:
142
- - LGPL-3.0
156
+ - LGPL-3.0-or-later
143
157
  metadata:
144
158
  documentation_uri: https://ronin-rb.dev/docs/ronin-nmap
145
159
  source_code_uri: https://github.com/ronin-rb/ronin-nmap
@@ -161,7 +175,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
161
175
  - !ruby/object:Gem::Version
162
176
  version: '0'
163
177
  requirements: []
164
- rubygems_version: 3.3.27
178
+ rubygems_version: 3.5.22
165
179
  signing_key:
166
180
  specification_version: 4
167
181
  summary: A Ruby library and CLI for working with nmap.